text:
<?php

namespace PhpSpec\Locator\PSR0;

use PhpSpec\Locator\ResourceInterface;
use PhpSpec\Locator\ResourceLocatorInterface;
use PhpSpec\Util\Filesystem;
use InvalidArgumentException;

class PSR0Locator implements ResourceLocatorInterface
{
    /**
     * @var string
     */
    private $srcPath;
    /**
     * @var string
     */
    private $specPath;
    /**
     * @var string
     */
    private $srcNamespace;
    /**
     * @var string
     */
    private $specNamespace;
    /**
     * @var string
     */
    private $fullSrcPath;
    /**
     * @var string
     */
    private $fullSpecPath;
    /**
     * @var Filesystem
     */
    private $filesystem;

    /**
     * @var string
     */
    private $psr4Prefix;

    /**
     * @param string     $srcNamespace
     * @param string     $specNamespacePrefix
     * @param string     $srcPath
     * @param string     $specPath
     * @param Filesystem $filesystem
     * @param string     $psr4Prefix
     */
    public function __construct(
        $srcNamespace = '',
        $specNamespacePrefix = 'spec',
        $srcPath = 'src',
        $specPath = '.',
        Filesystem $filesystem = null,
        $psr4Prefix = null
    ) {
        $this->filesystem = $filesystem ?: new Filesystem();
        $sepr = DIRECTORY_SEPARATOR;

        $this->srcPath       = rtrim(realpath($srcPath), '/\\').$sepr;
        $this->specPath      = rtrim(realpath($specPath), '/\\').$sepr;
        $this->srcNamespace  = ltrim(trim($srcNamespace, ' \\').'\\', '\\');
        $this->psr4Prefix    = (null === $psr4Prefix) ? null : ltrim(trim($psr4Prefix, ' \\').'\\', '\\');
        if (null !== $this->psr4Prefix  && substr($this->srcNamespace, 0, strlen($psr4Prefix)) !== $psr4Prefix) {
            throw new InvalidArgumentException('PSR4 prefix doesn\'t match given class namespace.'.PHP_EOL);
        }
        $srcNamespacePath = null === $this->psr4Prefix ?
            $this->srcNamespace :
            substr($this->srcNamespace, strlen($this->psr4Prefix));
        $this->specNamespace = $specNamespacePrefix ?
            trim($specNamespacePrefix, ' \\').'\\'.$this->srcNamespace :
            $this->srcNamespace;
        $specNamespacePath = $specNamespacePrefix ?
            trim($specNamespacePrefix, ' \\').'\\'.$srcNamespacePath :
            $srcNamespacePath;

        $this->fullSrcPath   = $this->srcPath.str_replace('\\', $sepr, $srcNamespacePath);
        $this->fullSpecPath  = $this->specPath.str_replace('\\', $sepr, $specNamespacePath);

        if ($sepr === $this->srcPath) {
            throw new InvalidArgumentException(sprintf(
                'Source code path should be existing filesystem path, but "%s" given.',
                $srcPath
            ));
        }

        if ($sepr === $this->specPath) {
            throw new InvalidArgumentException(sprintf(
                'Specs code path should be existing filesystem path, but "%s" given.',
                $specPath
            ));
        }
    }

    /**
     * @return string
     */
    public function getFullSrcPath()
    {
        return $this->fullSrcPath;
    }

    /**
     * @return string
     */
    public function getFullSpecPath()
    {
        return $this->fullSpecPath;
    }

    /**
     * @return string
     */
    public function getSrcNamespace()
    {
        return $this->srcNamespace;
    }

    /**
     * @return string
     */
    public function getSpecNamespace()
    {
        return $this->specNamespace;
    }

    /**
     * @return ResourceInterface[]
     */
    public function getAllResources()
    {
        return $this->findSpecResources($this->fullSpecPath);
    }

    /**
     * @param string $query
     *
     * @return bool
     */
    public function supportsQuery($query)
    {
        $sepr = DIRECTORY_SEPARATOR;
        $path = rtrim(realpath(str_replace(array('\\', '/'), $sepr, $query)), $sepr);

        if (null === $path) {
            return false;
        }

        return 0 === strpos($path, $this->srcPath)
            || 0 === strpos($path, $this->specPath)
        ;
    }

    /**
     * @param string $query
     *
     * @return ResourceInterface[]
     */
    public function findResources($query)
    {
        $sepr = DIRECTORY_SEPARATOR;
        $path = rtrim(realpath(str_replace(array('\\', '/'), $sepr, $query)), $sepr);

        if ('.php' !== substr($path, -4)) {
            $path .= $sepr;
        }

        if ($path && 0 === strpos($path, $this->fullSrcPath)) {
            $path = $this->fullSpecPath.substr($path, strlen($this->fullSrcPath));
            $path = preg_replace('/\.php/', 'Spec.php', $path);

            return $this->findSpecResources($path);
        }

        if ($path && 0 === strpos($path, $this->srcPath)) {
            $path = $this->fullSpecPath.substr($path, strlen($this->srcPath));
            $path = preg_replace('/\.php/', 'Spec.php', $path);

            return $this->findSpecResources($path);
        }

        if ($path && 0 === strpos($path, $this->specPath)) {
            return $this->findSpecResources($path);
        }

        return array();
    }

    /**
     * @param string $classname
     *
     * @return bool
     */
    public function supportsClass($classname)
    {
        $classname = str_replace('/', '\\', $classname);

        return '' === $this->srcNamespace
            || 0  === strpos($classname, $this->srcNamespace)
            || 0  === strpos($classname, $this->specNamespace)
        ;
    }

    /**
     * @param string $classname
     *
     * @return null|PSR0Resource
     */
    public function createResource($classname)
    {
        $this->validatePsr0Classname($classname);

        $classname = str_replace('/', '\\', $classname);

        if (0 === strpos($classname, $this->specNamespace)) {
            $relative = substr($classname, strlen($this->specNamespace));

            return new PSR0Resource(explode('\\', $relative), $this);
        }

        if ('' === $this->srcNamespace || 0 === strpos($classname, $this->srcNamespace)) {
            $relative = substr($classname, strlen($this->srcNamespace));

            return new PSR0Resource(explode('\\', $relative), $this);
        }

        return null;
    }

    /**
     * @return int
     */
    public function getPriority()
    {
        return 0;
    }

    /**
     * @param string $path
     *
     * @return PSR0Resource[]
     */
    protected function findSpecResources($path)
    {
        if (!$this->filesystem->pathExists($path)) {
            return array();
        }

        if ('.php' === substr($path, -4)) {
            return array($this->createResourceFromSpecFile(realpath($path)));
        }

        $resources = array();
        foreach ($this->filesystem->findSpecFilesIn($path) as $file) {
            $resources[] = $this->createResourceFromSpecFile($file->getRealPath());
        }

        return $resources;
    }

    private function findSpecClassname($path)
    {
        // Find namespace and class name
        $namespace = '';
        $content   = $this->filesystem->getFileContents($path);
        $tokens    = token_get_all($content);
        $count     = count($tokens);

        for ($i = 0; $i < $count; $i++) {
            if ($tokens[$i][0] === T_NAMESPACE) {
                for ($j = $i + 1; $j < $count; $j++) {
                    if ($tokens[$j][0] === T_STRING) {
                        $namespace .= $tokens[$j][1].'\\';
                    } elseif ($tokens[$j] === '{' || $tokens[$j] === ';') {
                        break;
                    }
                }
            }

            if ($tokens[$i][0] === T_CLASS) {
                for ($j = $i+1; $j < $count; $j++) {
                    if ($tokens[$j] === '{') {
                        return $namespace.$tokens[$i+2][1];
                    }
                }
            }
        }

        // No class found
        return null;
    }

    /**
     * @param string $path
     *
     * @return PSR0Resource
     */
    private function createResourceFromSpecFile($path)
    {
        $classname = $this->findSpecClassname($path);

        if (null === $classname) {
            throw new \RuntimeException('Spec file does not contains any class definition.');
        }

        // Remove spec namespace from the begining of the classname.
        $specNamespace = trim($this->getSpecNamespace(), '\\').'\\';

        if (0 !== strpos($classname, $specNamespace)) {
            throw new \RuntimeException(sprintf(
                'Spec class `%s` must be in the base spec namespace `%s`.',
                $classname,
                $this->getSpecNamespace()
            ));
        }

        $classname = substr($classname, strlen($specNamespace));

        // cut "Spec" from the end
        $classname = preg_replace('/Spec$/', '', $classname);

        // Create the resource
        return new PSR0Resource(explode('\\', $classname), $this);
    }

    private function validatePsr0Classname($classname)
    {
        $pattern = '/^([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*[\/\\\\]?)*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/';

        if (!preg_match($pattern, $classname)) {
            throw new InvalidArgumentException(
                sprintf('String "%s" is not a valid class name.', $classname).PHP_EOL.
                'Please see reference document: '.
                'https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md'
            );
        }
    }
}


text:
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'pry'
require 'rspec/its'
require 'rack/test'
require 'timecop'
require 'rack/congestion'
Dir['./spec/support/**/*.rb'].sort.each{ |f| require f }

$REDIS_CONFIG = {
  url: ENV.fetch('CONGESTION_REDIS_URL', 'redis://localhost/0')
}

Congestion.redis = ->{
  Redis.new $REDIS_CONFIG
}

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
end

redpajama_set_name: RedPajamaGithub


text:
import sys    # this allows you to read the user input from keyboard also called "stdin"
import classOne # This imports all the classOne functions
import classTwo # This imports all the classTwo functions
import classThree # This imports all the classThree functions
import classFour # This imports all the classFour functions

TIMEOUT=10  # this is the amount of time you will wait for an answer in Seconds. 10 means 10 seconds
MAX_CLASS=5
QUIZ_INSTRUCTIONS = """
Get ready for the quiz. You will have 10 questions out of which you
will need 8 right to win the prize. You will have """ + str(TIMEOUT) +  """ seconds
to answer each question.Press Enter to start."""

def getUsersClass(): #main
    ''' This function will get the user's class. It will compare the class with MAX_CLASS and
    will return False if it is more than the MAX_CLASS. Class also has to be a natural number '''
    print("Please tell me which Class you are in? ")
    try:
        usersClass = int(sys.stdin.readline().strip())
        if (usersClass < 1 or usersClass > MAX_CLASS) :
            print("No Quiz available for Class " + str(usersClass))
            return False
        else :
            return usersClass
    except :
        print("Exception")
        return False

if __name__ == '__main__':
    while(True) :
        usersClass = getUsersClass()
        if (usersClass != False) :
            break

    print(QUIZ_INSTRUCTIONS)
    sys.stdin.readline()
    if (usersClass == 1) :
        classOne.classOneQuiz()
    elif (usersClass == 2) :
        classTwo.classTwoQuiz()
    elif(usersClass == 3):
        classThree.classThreeQuiz()
    elif(usersClass == 4):
        classFour.classFourQuiz()


text:
import Service from '@ember/service';
import config from '../config/environment';
import { inject as service } from '@ember/service';
import { all, TaskGenerator } from 'ember-concurrency';
import { task } from 'ember-concurrency-decorators';
import {
  Layer2ChainEvent,
  Layer2Web3Strategy,
  TransactionHash,
  TxnBlockNumber,
  WithdrawalLimits,
} from '../utils/web3-strategies/types';
import { MerchantSafe, PrepaidCardSafe } from '@cardstack/cardpay-sdk';
import Layer2TestWeb3Strategy from '../utils/web3-strategies/test-layer2';
import GnosisWeb3Strategy from '../utils/web3-strategies/gnosis';
import SokolWeb3Strategy from '../utils/web3-strategies/sokol';
import { reads } from 'macro-decorators';
import WalletInfo from '../utils/wallet-info';
import BN from 'bn.js';
import { DepotSafe, Safe } from '@cardstack/cardpay-sdk';
import {
  ConvertibleSymbol,
  ConversionFunction,
  BridgedTokenSymbol,
} from '@cardstack/web-client/utils/token';
import {
  Emitter,
  SimpleEmitter,
  UnbindEventListener,
} from '@cardstack/web-client/utils/events';
import { action } from '@ember/object';
import HubAuthentication from '@cardstack/web-client/services/hub-authentication';
import { taskFor } from 'ember-concurrency-ts';
import { UsdConvertibleSymbol } from './token-to-usd';
import { TransactionOptions } from '@cardstack/cardpay-sdk';
import { Safes } from '../resources/safes';
import { TransactionReceipt } from 'web3-core';
export default class Layer2Network
  extends Service
  implements Emitter<Layer2ChainEvent>
{
  @service declare hubAuthentication: HubAuthentication;
  strategy!: Layer2Web3Strategy;
  simpleEmitter = new SimpleEmitter();
  @reads('strategy.isInitializing') declare isInitializing: boolean;
  @reads('strategy.isConnected', false) isConnected!: boolean;
  @reads('strategy.walletConnectUri') walletConnectUri: string | undefined;
  @reads('strategy.walletInfo', []) walletInfo!: WalletInfo;
  @reads('strategy.waitForAccount') waitForAccount!: Promise<void>;
  @reads('strategy.usdConverters') usdConverters!: {
    [symbol: string]: (amountInWei: string) => number;
  };
  @reads('strategy.viewSafesTask') declare viewSafesTask: TaskGenerator<Safe[]>;
  @reads('strategy.safes') declare safes: Safes;
  @reads('strategy.defaultTokenBalance') defaultTokenBalance: BN | undefined;
  @reads('strategy.defaultTokenSymbol') defaultTokenSymbol!: BridgedTokenSymbol;
  @reads('strategy.bridgedDaiTokenSymbol')
  bridgedDaiTokenSymbol!: BridgedTokenSymbol;
  @reads('strategy.bridgedCardTokenSymbol')
  bridgedCardTokenSymbol!: BridgedTokenSymbol;
  @reads('strategy.cardBalance') cardBalance: BN | undefined;
  @reads('strategy.depotSafe') depotSafe: DepotSafe | undefined;
  @reads('strategy.safes.isLoading')
  declare isFetchingDepot: boolean;
  @reads('strategy.issuePrepaidCardSpendMinValue')
  declare issuePrepaidCardSpendMinValue: number;
  @reads('strategy.issuePrepaidCardDaiMinValue')
  declare issuePrepaidCardDaiMinValue: BN;

  bridgedSymbolToWithdrawalLimits: Map<BridgedTokenSymbol, WithdrawalLimits> =
    new Map();

  constructor(props: object | undefined) {
    super(props);
    switch (config.chains.layer2) {
      case 'gnosis':
        this.strategy = new GnosisWeb3Strategy();
        break;
      case 'sokol':
        this.strategy = new SokolWeb3Strategy();
        break;
      case 'test':
        this.strategy = new Layer2TestWeb3Strategy();
        break;
    }

    this.strategy.on('disconnect', this.onDisconnect);
    this.strategy.on('incorrect-chain', this.onIncorrectChain);
    this.strategy.on('account-changed', this.onAccountChanged);
    this.strategy.on('websocket-disconnected', this.onWebsocketDisconnected);
    this.strategy.on('initialized', () => {
      this.simpleEmitter.emit('initialized');
    });

    taskFor(this.strategy.initializeTask)
      .perform()
      .then(() => this.storeWithdrawalLimits());
  }

  async storeWithdrawalLimits() {
    [this.bridgedDaiTokenSymbol, this.bridgedCardTokenSymbol].forEach(
      (bridgedSymbol) => {
        this.getWithdrawalLimits(bridgedSymbol).then((limits) => {
          this.bridgedSymbolToWithdrawalLimits.set(bridgedSymbol, limits);
        });
      }
    );
  }

  async updateUsdConverters(
    symbolsToUpdate: UsdConvertibleSymbol[]
  ): Promise<Partial<Record<UsdConvertibleSymbol, ConversionFunction>>> {
    if (symbolsToUpdate.length === 0) {
      return {};
    }
    if (!this.walletInfo.firstAddress) {
      throw new Error(
        'Cannot fetch USD conversion without being connected to Layer 2'
      );
    }
    return this.strategy.updateUsdConverters(symbolsToUpdate);
  }

  async convertFromSpend(
    symbol: ConvertibleSymbol,
    amount: number
  ): Promise<string> {
    return await this.strategy.convertFromSpend(symbol, amount);
  }

  authenticate(): Promise<string> {
    return this.strategy.authenticate();
  }

  checkHubAuthenticationValid(authToken: string): Promise<boolean> {
    return this.strategy.checkHubAuthenticationValid(authToken);
  }

  bridgeExplorerUrl(txnHash: string) {
    return txnHash ? this.strategy.bridgeExplorerUrl(txnHash) : undefined;
  }

  @task *issuePrepaidCardTask(
    faceValue: number,
    sourceAddress: string,
    customizationDid: string,
    options: TransactionOptions
  ): any {
    let prepaidCardSafe = yield this.strategy.issuePrepaidCard(
      sourceAddress,
      faceValue,
      customizationDid,
      options
    );

    yield all([
      this.safes.updateOne(prepaidCardSafe.address),
      this.safes.updateOne(sourceAddress),
    ]);

    return prepaidCardSafe;
  }

  @task *resumeIssuePrepaidCardTransactionTask(
    txnHash: string
  ): TaskGenerator<PrepaidCardSafe> {
    let prepaidCardSafe = yield this.strategy.resumeIssuePrepaidCardTransaction(
      txnHash
    );

    yield all([
      this.safes.updateOne(prepaidCardSafe.address),
      this.safes.updateDepot(),
    ]);

    return prepaidCardSafe;
  }

  @task *fetchProfileRegistrationFeeTask(): TaskGenerator<number> {
    return yield this.strategy.fetchProfileRegistrationFee();
  }

  @task *registerProfileTask(
    prepaidCardAddress: string,
    infoDid: string,
    options: TransactionOptions
  ): any {
    let profile = yield this.strategy.registerProfile(
      prepaidCardAddress,
      infoDid,
      options
    );

    yield all([
      this.safes.updateOne(prepaidCardAddress),
      this.safes.updateOne(profile.address),
    ]);

    return profile;
  }

  @task *resumeRegisterProfileTransactionTask(
    prepaidCardAddress: string,
    txnHash: string
  ): TaskGenerator<MerchantSafe> {
    let profile = yield this.strategy.resumeRegisterProfileTransaction(txnHash);

    yield all([
      this.safes.updateOne(prepaidCardAddress),
      this.safes.updateOne(profile.address),
    ]);

    return profile;
  }

  disconnect() {
    return this.strategy.disconnect();
  }

  @action onDisconnect() {
    this.hubAuthentication.authToken = null;
    this.simpleEmitter.emit('disconnect');
  }

  @action onIncorrectChain() {
    this.simpleEmitter.emit('incorrect-chain');
  }

  @action onAccountChanged() {
    this.simpleEmitter.emit('account-changed');
  }

  @action onWebsocketDisconnected() {
    this.simpleEmitter.emit('websocket-disconnected');
  }

  on(event: Layer2ChainEvent, cb: Function): UnbindEventListener {
    return this.simpleEmitter.on(event, cb);
  }

  async getBlockConfirmation(
    blockNumber: TxnBlockNumber,
    duration?: number
  ): Promise<void> {
    return this.strategy.getBlockConfirmation(blockNumber, duration);
  }

  getBlockHeight() {
    return this.strategy.getBlockHeight();
  }

  async getWithdrawalLimits(tokenSymbol: BridgedTokenSymbol) {
    return this.strategy.getWithdrawalLimits(tokenSymbol);
  }

  async awaitBridgedToLayer2(fromBlock: BN) {
    return this.strategy.awaitBridgedToLayer2(
      fromBlock,
      this.walletInfo.firstAddress!
    );
  }

  blockExplorerUrl(txnHash: string | undefined): string | undefined {
    return txnHash ? this.strategy.blockExplorerUrl(txnHash) : undefined;
  }

  @action
  async refreshSafesAndBalances() {
    return this.strategy.refreshSafesAndBalances();
  }

  async bridgeToLayer1(
    safeAddress: string,
    receiverAddress: string,
    tokenSymbol: BridgedTokenSymbol,
    amount: string,
    options: TransactionOptions
  ): Promise<TransactionReceipt> {
    return this.strategy.bridgeToLayer1(
      safeAddress,
      receiverAddress,
      tokenSymbol,
      amount,
      options
    );
  }

  async resumeBridgeToLayer1(txnHash: string) {
    return this.strategy.resumeBridgeToLayer1(txnHash);
  }

  async awaitBridgedToLayer1(fromBlock: BN, transactionHash: TransactionHash) {
    return this.strategy.awaitBridgedToLayer1(fromBlock, transactionHash);
  }
}

// DO NOT DELETE: this is how TypeScript knows how to look up your services.
declare module '@ember/service' {
  interface Registry {
    'layer2-network': Layer2Network;
  }
}


text:
define(['./_baseFunctions', './keys'], function(baseFunctions, keys) {

  /**
   * Creates an array of function property names from own enumerable properties
   * of `object`.
   *
   * @static
   * @since 0.1.0
   * @memberOf _
   * @category Object
   * @param {Object} object The object to inspect.
   * @returns {Array} Returns the function names.
   * @see _.functionsIn
   * @example
   *
   * function Foo() {
   *   this.a = _.constant('a');
   *   this.b = _.constant('b');
   * }
   *
   * Foo.prototype.c = _.constant('c');
   *
   * _.functions(new Foo);
   * // => ['a', 'b']
   */
  function functions(object) {
    return object == null ? [] : baseFunctions(object, keys(object));
  }

  return functions;
});


text:
namespace Giao_diện
{
    partial class Nạp_tiền
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.lblmacode = new System.Windows.Forms.Label();
            this.btQuayLai = new System.Windows.Forms.Button();
            this.btNap = new System.Windows.Forms.Button();
            this.tb3d = new System.Windows.Forms.TextBox();
            this.tb3g = new System.Windows.Forms.TextBox();
            this.tb3c = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.dsThenap = new System.Windows.Forms.DataGridView();
            this.Msgd_nap_tien = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Stk_nap = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.So_tien_nap = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Ma_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Thoi_gian_gd = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.lblthedanap = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.dsThenap)).BeginInit();
            this.SuspendLayout();
            //
            // lblmacode
            //
            this.lblmacode.AutoSize = true;
            this.lblmacode.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblmacode.ForeColor = System.Drawing.Color.White;
            this.lblmacode.Location = new System.Drawing.Point(12, 27);
            this.lblmacode.Name = "lblmacode";
            this.lblmacode.Size = new System.Drawing.Size(125, 31);
            this.lblmacode.TabIndex = 0;
            this.lblmacode.Text = "Mã code:";
            //
            // btQuayLai
            //
            this.btQuayLai.BackColor = System.Drawing.Color.Khaki;
            this.btQuayLai.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btQuayLai.Image = global::Giao_diện.Properties.Resources.undo_26;
            this.btQuayLai.Location = new System.Drawing.Point(545, 400);
            this.btQuayLai.Name = "btQuayLai";
            this.btQuayLai.Size = new System.Drawing.Size(123, 38);
            this.btQuayLai.TabIndex = 3;
            this.btQuayLai.Text = "Quay lại";
            this.btQuayLai.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.btQuayLai.UseVisualStyleBackColor = false;
            this.btQuayLai.Click += new System.EventHandler(this.btQuayLai_Click);
            //
            // btNap
            //
            this.btNap.BackColor = System.Drawing.Color.PaleGreen;
            this.btNap.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btNap.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btNap.Image = global::Giao_diện.Properties.Resources.moneybox_48;
            this.btNap.Location = new System.Drawing.Point(426, 12);
            this.btNap.Name = "btNap";
            this.btNap.Size = new System.Drawing.Size(213, 65);
            this.btNap.TabIndex = 2;
            this.btNap.Text = "Nạp tiền";
            this.btNap.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btNap.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.btNap.UseVisualStyleBackColor = false;
            this.btNap.Click += new System.EventHandler(this.button1_Click);
            //
            // tb3d
            //
            this.tb3d.BackColor = System.Drawing.Color.Coral;
            this.tb3d.ForeColor = System.Drawing.Color.White;
            this.tb3d.Location = new System.Drawing.Point(143, 28);
            this.tb3d.MaxLength = 3;
            this.tb3d.Name = "tb3d";
            this.tb3d.Size = new System.Drawing.Size(54, 29);
            this.tb3d.TabIndex = 4;
            this.tb3d.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tb3d_KeyPress);
            //
            // tb3g
            //
            this.tb3g.BackColor = System.Drawing.Color.Coral;
            this.tb3g.ForeColor = System.Drawing.Color.White;
            this.tb3g.Location = new System.Drawing.Point(225, 28);
            this.tb3g.MaxLength = 3;
            this.tb3g.Name = "tb3g";
            this.tb3g.Size = new System.Drawing.Size(54, 29);
            this.tb3g.TabIndex = 5;
            this.tb3g.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tb3g_KeyPress);
            //
            // tb3c
            //
            this.tb3c.BackColor = System.Drawing.Color.Coral;
            this.tb3c.ForeColor = System.Drawing.Color.White;
            this.tb3c.Location = new System.Drawing.Point(305, 28);
            this.tb3c.MaxLength = 3;
            this.tb3c.Name = "tb3c";
            this.tb3c.Size = new System.Drawing.Size(54, 29);
            this.tb3c.TabIndex = 6;
            this.tb3c.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tb3c_KeyPress);
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.ForeColor = System.Drawing.Color.White;
            this.label2.Location = new System.Drawing.Point(203, 30);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(16, 24);
            this.label2.TabIndex = 7;
            this.label2.Text = "-";
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.ForeColor = System.Drawing.Color.White;
            this.label3.Location = new System.Drawing.Point(283, 30);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(16, 24);
            this.label3.TabIndex = 8;
            this.label3.Text = "-";
            //
            // dsThenap
            //
            this.dsThenap.AllowUserToAddRows = false;
            this.dsThenap.AllowUserToDeleteRows = false;
            this.dsThenap.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dsThenap.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.Msgd_nap_tien,
            this.Stk_nap,
            this.So_tien_nap,
            this.Ma_code,
            this.Thoi_gian_gd});
            this.dsThenap.Location = new System.Drawing.Point(12, 150);
            this.dsThenap.Name = "dsThenap";
            this.dsThenap.ReadOnly = true;
            this.dsThenap.RowHeadersVisible = false;
            this.dsThenap.Size = new System.Drawing.Size(656, 227);
            this.dsThenap.TabIndex = 9;
            //
            // Msgd_nap_tien
            //
            this.Msgd_nap_tien.DataPropertyName = "Msgd_nap_tien";
            this.Msgd_nap_tien.FillWeight = 47.58885F;
            this.Msgd_nap_tien.HeaderText = "Mã số";
            this.Msgd_nap_tien.Name = "Msgd_nap_tien";
            this.Msgd_nap_tien.ReadOnly = true;
            this.Msgd_nap_tien.Width = 90;
            //
            // Stk_nap
            //
            this.Stk_nap.DataPropertyName = "Stk_nap";
            this.Stk_nap.FillWeight = 309.6446F;
            this.Stk_nap.HeaderText = "Số tài khoản nạp";
            this.Stk_nap.Name = "Stk_nap";
            this.Stk_nap.ReadOnly = true;
            this.Stk_nap.Width = 180;
            //
            // So_tien_nap
            //
            this.So_tien_nap.DataPropertyName = "So_tien_nap";
            this.So_tien_nap.FillWeight = 47.58885F;
            this.So_tien_nap.HeaderText = "Mệnh giá";
            this.So_tien_nap.Name = "So_tien_nap";
            this.So_tien_nap.ReadOnly = true;
            this.So_tien_nap.Width = 120;
            //
            // Ma_code
            //
            this.Ma_code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
            this.Ma_code.DataPropertyName = "Ma_code";
            this.Ma_code.FillWeight = 47.58885F;
            this.Ma_code.HeaderText = "Mã code";
            this.Ma_code.Name = "Ma_code";
            this.Ma_code.ReadOnly = true;
            //
            // Thoi_gian_gd
            //
            this.Thoi_gian_gd.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.Thoi_gian_gd.DataPropertyName = "Thoi_gian_gd";
            this.Thoi_gian_gd.FillWeight = 47.58885F;
            this.Thoi_gian_gd.HeaderText = "Thời gian nạp";
            this.Thoi_gian_gd.Name = "Thoi_gian_gd";
            this.Thoi_gian_gd.ReadOnly = true;
            //
            // lblthedanap
            //
            this.lblthedanap.AutoSize = true;
            this.lblthedanap.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblthedanap.ForeColor = System.Drawing.Color.White;
            this.lblthedanap.Location = new System.Drawing.Point(14, 98);
            this.lblthedanap.Name = "lblthedanap";
            this.lblthedanap.Size = new System.Drawing.Size(205, 31);
            this.lblthedanap.TabIndex = 10;
            this.lblthedanap.Text = "Các thẻ đã nạp:";
            //
            // Nạp_tiền
            //
            this.AcceptButton = this.btNap;
            this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Coral;
            this.ClientSize = new System.Drawing.Size(680, 450);
            this.Controls.Add(this.lblthedanap);
            this.Controls.Add(this.dsThenap);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.tb3c);
            this.Controls.Add(this.tb3g);
            this.Controls.Add(this.tb3d);
            this.Controls.Add(this.btQuayLai);
            this.Controls.Add(this.btNap);
            this.Controls.Add(this.lblmacode);
            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Margin = new System.Windows.Forms.Padding(6);
            this.Name = "Nạp_tiền";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Nạp_tiền";
            this.Load += new System.EventHandler(this.Nạp_tiền_Load);
            ((System.ComponentModel.ISupportInitialize)(this.dsThenap)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label lblmacode;
        private System.Windows.Forms.Button btNap;
        private System.Windows.Forms.Button btQuayLai;
        private System.Windows.Forms.TextBox tb3d;
        private System.Windows.Forms.TextBox tb3g;
        private System.Windows.Forms.TextBox tb3c;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.DataGridView dsThenap;
        private System.Windows.Forms.Label lblthedanap;
        private System.Windows.Forms.DataGridViewTextBoxColumn Msgd_nap_tien;
        private System.Windows.Forms.DataGridViewTextBoxColumn Stk_nap;
        private System.Windows.Forms.DataGridViewTextBoxColumn So_tien_nap;
        private System.Windows.Forms.DataGridViewTextBoxColumn Ma_code;
        private System.Windows.Forms.DataGridViewTextBoxColumn Thoi_gian_gd;
    }
}


text:
package com.felix.unbiz.json.rpc.util;

import java.util.Collection;

/**
 * ClassName: CollectionUtils <br>
 * Function: 集合工具类
 *
 * @author wangxujin
 */
public final class CollectionUtils {

    private CollectionUtils() {
    }

    /**
     * 判断集合是否为空
     *
     * @param coll 集合对象
     *
     * @return
     */
    public static boolean isEmpty(Collection coll) {
        return coll == null || coll.isEmpty();
    }

    /**
     * 判断集合对象不为空
     *
     * @param coll 集合对象
     *
     * @return
     */
    public static boolean isNotEmpty(Collection coll) {
        return !isEmpty(coll);
    }
}


text:
//
//  AppDelegate.m
//  YXDatabaseHandlle
//
//  Created by 拓之林 on 16/3/2.
//  Copyright © 2016年 拓之林. All rights reserved.
//

#import "AppDelegate.h"
@interface AppDelegate ()

@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [self configDatabaseHandle];
    return YES;
}
/**
 *  初始化数据库操作
 */
- (void)configDatabaseHandle{
    _dbHandle = [YXDatabaseHandle shareInstance];
    //是否打印执行的sql语句记录
    [YXDatabaseHandle setYXDatabaseHandleIsShowLogs:YES];
    //数据库路径
    NSString * path =[self getDataBaseFilePath];
    NSError * error = nil;
    //打开数据库
    BOOL isSuccess = [_dbHandle openDatabaseWithPath:path Error:&error];
    if(isSuccess){
        //注册要存入数据库的模型(在这个过程里,如果没有模型对应的表就创建表)
        [_dbHandle registerClass:[UserModel class] MappingTypeType:TableFeildMappingTypeClassProperty];
        [_dbHandle registerClass:[CompanyModel class] MappingTypeType:TableFeildMappingTypeClassProperty];
        [_dbHandle registerClass:[EmployeeModel class] MappingTypeType:TableFeildMappingTypeMappingFile];
    }
}

-(NSString*) getDataBaseFilePath
{

    NSString * homeDir = NSHomeDirectory();
    NSString * documents = [homeDir stringByAppendingPathComponent:@"Documents"];
    NSString * dirctoryPath = [documents stringByAppendingPathComponent:@"DataBase/DB"];

    NSFileManager *FM = [NSFileManager defaultManager];
    BOOL isDir;
    BOOL isExist = [FM fileExistsAtPath:dirctoryPath isDirectory:&isDir];
    if(!isExist){
        NSError * error = nil;
        BOOL isSuccess = [FM createDirectoryAtPath:dirctoryPath withIntermediateDirectories:YES attributes:nil error:&error];
        if(!isSuccess){
            NSLog(@"创建数据库文件存放目录失败  defaultDataBaseFilePath error: %@",error);
        }
    }

    NSString * dbPath = [dirctoryPath stringByAppendingString:@"db.sqlite"];

    return dbPath;

}
- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end


text:
from context import crdt

import unittest

class GCounterTest(unittest.TestCase):
    def setUp(self):
        self.gc = crdt.GCounter()

    def test_initialization(self):
        self.assertEqual(0, self.gc.value())

    def test_increment(self):
        self.gc.increment(delta=3)
        self.assertEqual(3, self.gc.value())

    def test_increment_with_non_positive_delta(self):
        with self.assertRaises(crdt.GCounterException):
            self.gc.increment(delta=-5)

    def test_increment_with_multiple_nodes(self):
        self.gc.increment(node=1, delta=3)
        self.gc.increment(node=2, delta=3)
        self.gc.increment(node=3, delta=4)
        self.assertEqual(10, self.gc.value())

    def test_merge_with_different_class(self):
        with self.assertRaises(crdt.GCounterException):
            self.gc.merge('foo')

    def test_merge_with_other_g_counter(self):
        other = crdt.GCounter()
        other.increment(delta=1, node=1)
        self.gc.increment(delta=2, node=1)
        other.increment(delta=1, node=3)
        self.gc.increment(delta=2, node=2)
        other.increment(delta=1, node=3)
        self.gc.merge(other)
        self.assertEqual(6, self.gc.value())

        self.gc.increment(delta=1, node=1)
        self.assertEqual(7, self.gc.value())
        self.assertEqual(3, other.value())

if __name__ == '__main__':
    unittest.main()


text:
// Boost.Geometry (aka GGL, Generic Geometry Library)

// Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2011 Mateusz Loskot, London, UK.

// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.

// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_GEOMETRY_ALGORITHMS_NUM_INTERIOR_RINGS_HPP
#define BOOST_GEOMETRY_ALGORITHMS_NUM_INTERIOR_RINGS_HPP

#include <cstddef>

#include <boost/range.hpp>

#include <boost/geometry/core/tag.hpp>
#include <boost/geometry/core/tags.hpp>

#include <boost/geometry/core/interior_rings.hpp>

namespace boost { namespace geometry
{

#ifndef DOXYGEN_NO_DISPATCH
namespace dispatch
{

template <typename Tag, typename Geometry>
struct num_interior_rings
{
    static inline std::size_t apply(Geometry const& )
    {
        return 0;
    }
};

template <typename Polygon>
struct num_interior_rings<polygon_tag, Polygon>
{
    static inline std::size_t apply(Polygon const& polygon)
    {
        return boost::size(geometry::interior_rings(polygon));
    }

};

} // namespace dispatch
#endif

/*!
\brief \brief_calc{number of interior rings}
\ingroup num_interior_rings
\details \details_calc{num_interior_rings, number of interior rings}.
\tparam Geometry \tparam_geometry
\param geometry \param_geometry
\return \return_calc{number of interior rings}

\qbk{[include reference/algorithms/num_interior_rings.qbk]}

\note Defined by OGC as "numInteriorRing". To be consistent with "numPoints"
    letter "s" is appended
*/
template <typename Geometry>
inline std::size_t num_interior_rings(Geometry const& geometry)
{
    return dispatch::num_interior_rings
        <
            typename tag<Geometry>::type,
            Geometry
        >::apply(geometry);
}

}} // namespace boost::geometry

#endif // BOOST_GEOMETRY_ALGORITHMS_NUM_INTERIOR_RINGS_HPP


text:
from django.conf.urls import url, include

urlpatterns = [
    url(r'', include("bigbuild.urls")),
]


text:
package vc.kotori.support.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import vc.kotori.framework.common.page.PagingResult;
import vc.kotori.support.demo.dao.UserDao;
import vc.kotori.support.demo.entity.User;

/**
 * Created by kotori on 2017/6/16.
 */
@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public void test(User user) {
        System.out.println("调用test!!!!!");
        this.userDao.save(user);
    }

    public PagingResult<User> testPage(int page, int rows) {
        System.out.println("testPage!!!!!");
        return this.userDao.getPageDealsForSearch(page, rows);
    }
}


text:
package Paws::CodePipeline::ListPipelinesOutput;
  use Moose;
  has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' );
  has Pipelines => (is => 'ro', isa => 'ArrayRef[Paws::CodePipeline::PipelineSummary]', traits => ['NameInRequest'], request_name => 'pipelines' );

  has _request_id => (is => 'ro', isa => 'Str');

### main pod documentation begin ###

=head1 NAME

Paws::CodePipeline::ListPipelinesOutput

=head1 ATTRIBUTES

=head2 NextToken => Str

If the amount of returned information is significantly large, an
identifier is also returned which can be used in a subsequent list
pipelines call to return the next set of pipelines in the list.

=head2 Pipelines => ArrayRef[L<Paws::CodePipeline::PipelineSummary>]

The list of pipelines.

=head2 _request_id => Str

=cut

1;


text:
package com.prismtech.edison.display.types;

/**
* com/prismtech/edison/display/types/LCDColorHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../idl//display.idl
* Tuesday, February 16, 2016 1:52:37 AM CET
*/

abstract public class LCDColorHelper
{
  private static String  _id = "IDL:com/prismtech/edison/display/types/LCDColor:1.0";

  public static void insert (org.omg.CORBA.Any a, com.prismtech.edison.display.types.LCDColor that)
  {
    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
    a.type (type ());
    write (out, that);
    a.read_value (out.create_input_stream (), type ());
  }

  public static com.prismtech.edison.display.types.LCDColor extract (org.omg.CORBA.Any a)
  {
    return read (a.create_input_stream ());
  }

  private static org.omg.CORBA.TypeCode __typeCode = null;
  private static boolean __active = false;
  synchronized public static org.omg.CORBA.TypeCode type ()
  {
    if (__typeCode == null)
    {
      synchronized (org.omg.CORBA.TypeCode.class)
      {
        if (__typeCode == null)
        {
          if (__active)
          {
            return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
          }
          __active = true;
          org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [4];
          org.omg.CORBA.TypeCode _tcOf_members0 = null;
          _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_short);
          _members0[0] = new org.omg.CORBA.StructMember (
            "id",
            _tcOf_members0,
            null);
          _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_short);
          _members0[1] = new org.omg.CORBA.StructMember (
            "r",
            _tcOf_members0,
            null);
          _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_short);
          _members0[2] = new org.omg.CORBA.StructMember (
            "g",
            _tcOf_members0,
            null);
          _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_short);
          _members0[3] = new org.omg.CORBA.StructMember (
            "b",
            _tcOf_members0,
            null);
          __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (com.prismtech.edison.display.types.LCDColorHelper.id (), "LCDColor", _members0);
          __active = false;
        }
      }
    }
    return __typeCode;
  }

  public static String id ()
  {
    return _id;
  }

  public static com.prismtech.edison.display.types.LCDColor read (org.omg.CORBA.portable.InputStream istream)
  {
    com.prismtech.edison.display.types.LCDColor value = new com.prismtech.edison.display.types.LCDColor ();
    value.id = istream.read_short ();
    value.r = istream.read_short ();
    value.g = istream.read_short ();
    value.b = istream.read_short ();
    return value;
  }

  public static void write (org.omg.CORBA.portable.OutputStream ostream, com.prismtech.edison.display.types.LCDColor value)
  {
    ostream.write_short (value.id);
    ostream.write_short (value.r);
    ostream.write_short (value.g);
    ostream.write_short (value.b);
  }

}


text:
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF 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.
  -->

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
  <id>final-distribution</id>
  <formats>
    <format>dir</format>
    <format>tar.gz</format>
    <!-- format>zip</format -->
  </formats>
  <includeBaseDirectory>true</includeBaseDirectory>
  <baseDirectory>zeppelin-${project.version}</baseDirectory>

  <dependencySets>
    <dependencySet>
      <!-- Enable access to all projects in the current multimodule build!
      <useAllReactorProjects>true</useAllReactorProjects> -->
      <!-- Now, select which projects to include in this module-set. -->
      <includes>
        <include>${project.groupId}:zeppelin-web</include>
      </includes>
      <useProjectArtifact>false</useProjectArtifact>
      <useTransitiveDependencies>false</useTransitiveDependencies>
    </dependencySet>
    <dependencySet>
      <outputDirectory>/lib/interpreter</outputDirectory>
      <includes>
        <include>${project.groupId}:zeppelin-interpreter</include>
      </includes>
    </dependencySet>
    <dependencySet>
      <outputDirectory>/lib</outputDirectory>
      <excludes>
        <exclude>${project.groupId}:zeppelin-interpreter</exclude>
        <exclude>${project.groupId}:zeppelin-web</exclude>
      </excludes>
      <useProjectArtifact>false</useProjectArtifact>
      <useTransitiveFiltering>true</useTransitiveFiltering>
    </dependencySet>
  </dependencySets>

  <fileSets>
    <fileSet>
      <directory>../</directory>
      <includes>
        <include>README.md</include>
        <include>LICENSE*</include>
        <include>NOTICE</include>
        <include>DISCLAIMER</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../bin</directory>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </fileSet>
    <fileSet>
      <directory>../licenses</directory>
    </fileSet>
    <fileSet>
      <directory>../conf</directory>
      <excludes>
        <exclude>credentials.json</exclude>
        <exclude>interpreter.json</exclude>
        <exclude>notebook-authorization.json</exclude>
        <exclude>shiro.ini</exclude>
        <exclude>zeppelin-env.cmd</exclude>
        <exclude>zeppelin-env.sh</exclude>
        <exclude>zeppelin-site.xml</exclude>
      </excludes>
    </fileSet>
    <fileSet>
      <directory>../interpreter</directory>
    </fileSet>
    <fileSet>
      <directory>../notebook</directory>
    </fileSet>
    <fileSet>
      <directory>../plugins</directory>
    </fileSet>
    <fileSet>
      <directory>../k8s</directory>
    </fileSet>
    <fileSet>
      <outputDirectory>/lib/interpreter</outputDirectory>
      <directory>../zeppelin-interpreter/target/lib</directory>
    </fileSet>
    <fileSet>
      <outputDirectory>/lib/node_modules/zeppelin-vis</outputDirectory>
      <directory>../zeppelin-web/src/app/visualization</directory>
    </fileSet>
    <fileSet>
      <outputDirectory>/lib/node_modules/zeppelin-tabledata</outputDirectory>
      <directory>../zeppelin-web/src/app/tabledata</directory>
    </fileSet>
    <fileSet>
      <outputDirectory>/lib/node_modules/zeppelin-spell</outputDirectory>
      <directory>../zeppelin-web/src/app/spell</directory>
    </fileSet>
  </fileSets>
</assembly>


text:
<?php

namespace Yansongda\Pay\Tests\Plugin\Alipay;

use Yansongda\Pay\Plugin\Alipay\RadarPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;
use Yansongda\Supports\Collection;

class RadarPluginTest extends TestCase
{
    public function testPostNormal()
    {
        $rocket = new Rocket();
        $rocket->setParams([])->setPayload(new Collection(['name' => 'yansongda']));

        $plugin = new RadarPlugin();

        $result = $plugin->assembly($rocket, function ($rocket) { return $rocket; });

        self::assertEquals('name=yansongda', $result->getRadar()->getBody()->getContents());
        self::assertEquals('POST', $result->getRadar()->getMethod());
    }

    public function testGetNormal()
    {
        $rocket = new Rocket();
        $rocket->setParams(['_method' => 'get'])->setPayload(new Collection(['name' => 'yansongda']));

        $plugin = new RadarPlugin();

        $result = $plugin->assembly($rocket, function ($rocket) { return $rocket; });

        self::assertEquals('GET', $result->getRadar()->getMethod());
    }
}


text:
<!DOCTYPE HTML>

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

Eagle Event Planning

		Home
		Contact
		Events
		Clients
		Employees
		Logout

Add Event

Enter fields and click Save

* required field.

<form id="eventForm" method="post">
   Name: <input type="text" id="name">
   *

   DateTime: <input type="datetime-local" id="dateTime">
   *

   Location: <input type="text" id="location">
   *

   Event Planner: <select id="eventPlannerID" size="1" >
   </select>

   Client: <select id="clientID" size="1" >
   </select>

	Table Size: <input type="number" id="tableSize" min="0" >
   *

	Empty Seats: <input type="number" id="emptySeatsPerTable" min="0" >
   *

	Status:<select id="status" size="1" >
	<option value="InProgress" selected>In Progress</option>
  	<option value="Completed">Completed</option>
 	<option value="Cancelled">Cancelled</option>
   </select>

   <input type="submit" name="submit" value="Save">
</form>
<form action="events.html" method ="get">
<button type="submit" >Cancel</button>
</form>


text:
All contributions to AppAuth for Android are welcome!

Note that as this library is planned to be used in high-profile production code,
we insist on a very high standards for the code and design, but don't feel shy:
discuss your plans over
[GitHub Issues](https://github.com/openid/AppAuth-Android/issues) and the
[mailing list](http://lists.openid.net/mailman/listinfo/openid-specs-ab), and
send in those pull requests!

# Signing the Agreements

In order to contribute to this project, you need to execute two legal agreements
that cover your contributions.  Pull requests from users who have not signed
these agreements will not be merged.

## Execute the Contributor License Agreement (CLA)

1. Visit http://openid.net/contribution-license-agreement/
2. Tap *Execute OpenID Foundation Contribution License Agreement* for the
   version relevant to you (Individual or Corporate).
3. Follow the instructions to sign the agreement.

## Execute the Working Group Contribution Agreement

In addition to the Code License Agreement, the OpenID Foundation also requires
a working group contribution agreement to cover any contributions you may make
towards the OpenID Connect spec itself (e.g. in comments, bug reports, feature
requests).

1. Visit http://openid.net/intellectual-property/
2. Tap *Execute Contributor Agreement By Electronic Signature* in the box
   marked *Resources*.
3. Follow the instructions to sign the document, state `OpenID AB/Connect` as
   the Initial Working Group.

# Making a Pull Request

## Before you Start

Before you work on a big new feature, get in touch to make sure that your work
is inline with the direction of the project and get input on your architecture.
You can file an [Issue](https://github.com/openid/AppAuth-Android/issues)
discussing your proposal, or email the
[list](http://lists.openid.net/mailman/listinfo/openid-specs-ab).

## Coding Standards

The AppAuth library follows the
[Google Coding Style](https://google.github.io/styleguide/javaguide.html) for
the Java language. Please review your own code for adherence to the standard
and make sure to run the `check` gradle target.

## Pull Request Reviews

All pull requests, even by members who have repository write access need to be
reviewed and marked as "LGTM" before they will be merged.


text:
import React from 'react'
import {DeleteWrapper, DelButton} from 'rt/styles/Elements'

const DeleteButton = props => {
  return (
    <DeleteWrapper {...props}>
      <DelButton>✖</DelButton>
    </DeleteWrapper>
  )
}

export default DeleteButton


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>io.skullabs.kikaha</groupId>
        <version>2.1.10-SNAPSHOT</version>
        <artifactId>kikaha-modules</artifactId>
    </parent>

    <artifactId>kikaha-cloud-metrics</artifactId>
    <name>Kikaha: Cloud: Codahale Metrics </name>
    <packaging>jar</packaging>

    <dependencies>
        <!-- Main Dependencies -->
        <dependency>
            <groupId>io.skullabs.kikaha</groupId>
            <artifactId>kikaha-core</artifactId>
        </dependency>
        <dependency>
            <groupId>io.skullabs.kikaha</groupId>
            <artifactId>kikaha-urouting</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.skullabs.kikaha</groupId>
            <artifactId>kikaha-cloud</artifactId>
        </dependency>
        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-core</artifactId>
        </dependency>
        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-jvm</artifactId>
        </dependency>
        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-healthchecks</artifactId>
        </dependency>
    </dependencies>
</project>


text:
require 'test_helper'

class ArtefactsControllerTest < ActionController::TestCase
  setup do
    @artefact = artefacts(:one)
  end

  test 'should get index' do
    get :index
    assert_response :success
    assert_not_nil assigns(:artefacts)
  end

  test 'should get new' do
    get :new
    assert_response :success
  end

  test 'should create artefact' do
    assert_difference('Artefact.count') do
      post :create,
           artefact: {
             key: @artefact.key,
             name: @artefact.name,
             project_id: @artefact.project_id
           }
    end

    assert_redirected_to artefact_path(assigns(:artefact))
  end

  test 'should show artefact' do
    get :show, id: @artefact
    assert_response :success
  end

  test 'should get edit' do
    get :edit, id: @artefact
    assert_response :success
  end

  test 'should update artefact' do
    patch :update,
          id: @artefact,
          artefact: {
            key: @artefact.key,
            name: @artefact.name,
            project_id: @artefact.project_id
          }

    assert_redirected_to artefact_path(assigns(:artefact))
  end

  test 'should destroy artefact' do
    assert_difference('Artefact.count', -1) do
      delete :destroy, id: @artefact
    end

    assert_redirected_to artefacts_path
  end
end


text:
Flux::FunctionHead::FunctionHead()
{
}

Flux::FunctionHead::~FunctionHead()
{
}

bool Flux::FunctionHead::AddLocalVariable(Flux::Variable _variable)
{
	// Check if the variable is valid
	// ...

	// Check if we can add this variable
	// ...

	// Add the variable
	m_LocalVariables.push_back(_variable);

	return true;
}

Flux::Variable* Flux::FunctionHead::GetLocalVariable(Flux::Handle _variableHandle)
{
	// For each local variable
	for (int i = 0; i < m_LocalVariables.size(); i++)
	{
		// Get the local variable
		Flux::Variable* localVariable = &m_LocalVariables[i];

		// Compare the handle
		if (localVariable->CompareHandle(_variableHandle))
		{
			return localVariable;
		}
	}

	return nullptr;
}


text:
#ifndef DocumentThreadableLoader_h
#define DocumentThreadableLoader_h

#include "core/CoreExport.h"
#include "core/fetch/RawResource.h"
#include "core/fetch/ResourceOwner.h"
#include "core/loader/ThreadableLoader.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
#include "platform/network/HTTPHeaderMap.h"
#include "platform/network/ResourceError.h"
#include "platform/weborigin/Referrer.h"
#include "wtf/Forward.h"
#include "wtf/text/WTFString.h"
#include <memory>

namespace blink {

class Document;
class KURL;
class ResourceRequest;
class SecurityOrigin;
class ThreadableLoaderClient;

class CORE_EXPORT DocumentThreadableLoader final : public ThreadableLoader,
                                                   private RawResourceClient {
  USING_GARBAGE_COLLECTED_MIXIN(DocumentThreadableLoader);

 public:
  static void loadResourceSynchronously(Document&,
                                        const ResourceRequest&,
                                        ThreadableLoaderClient&,
                                        const ThreadableLoaderOptions&,
                                        const ResourceLoaderOptions&);
  static DocumentThreadableLoader* create(Document&,
                                          ThreadableLoaderClient*,
                                          const ThreadableLoaderOptions&,
                                          const ResourceLoaderOptions&);
  ~DocumentThreadableLoader() override;

  void start(const ResourceRequest&) override;

  void overrideTimeout(unsigned long timeout) override;

  void cancel() override;
  void setDefersLoading(bool);

  DECLARE_TRACE();

 private:
  enum BlockingBehavior { LoadSynchronously, LoadAsynchronously };

  DocumentThreadableLoader(Document&,
                           ThreadableLoaderClient*,
                           BlockingBehavior,
                           const ThreadableLoaderOptions&,
                           const ResourceLoaderOptions&);

  void clear();

  // ResourceClient
  void notifyFinished(Resource*) override;

  String debugName() const override { return "DocumentThreadableLoader"; }

  // RawResourceClient
  void dataSent(Resource*,
                unsigned long long bytesSent,
                unsigned long long totalBytesToBeSent) override;
  void responseReceived(Resource*,
                        const ResourceResponse&,
                        std::unique_ptr<WebDataConsumerHandle>) override;
  void setSerializedCachedMetadata(Resource*, const char*, size_t) override;
  void dataReceived(Resource*, const char* data, size_t dataLength) override;
  bool redirectReceived(Resource*,
                        const ResourceRequest&,
                        const ResourceResponse&) override;
  void redirectBlocked() override;
  void dataDownloaded(Resource*, int) override;
  void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) override;

  void cancelWithError(const ResourceError&);

  // Notify Inspector and log to console about resource response. Use this
  // method if response is not going to be finished normally.
  void reportResponseReceived(unsigned long identifier,
                              const ResourceResponse&);

  // Methods containing code to handle resource fetch results which are common
  // to both sync and async mode.
  void handleResponse(unsigned long identifier,
                      const ResourceResponse&,
                      std::unique_ptr<WebDataConsumerHandle>);
  void handleReceivedData(const char* data, size_t dataLength);
  void handleSuccessfulFinish(unsigned long identifier, double finishTime);

  void didTimeout(TimerBase*);
  // Calls the appropriate loading method according to policy and data about
  // origin. Only for handling the initial load (including fallback after
  // consulting ServiceWorker).
  void dispatchInitialRequest(const ResourceRequest&);
  void makeCrossOriginAccessRequest(const ResourceRequest&);
  // Loads m_fallbackRequestForServiceWorker.
  void loadFallbackRequestForServiceWorker();
  // Loads m_actualRequest.
  void loadActualRequest();
  // Clears m_actualRequest and reports access control check failure to
  // m_client.
  void handlePreflightFailure(const String& url,
                              const String& errorDescription);
  // Investigates the response for the preflight request. If successful,
  // the actual request will be made later in handleSuccessfulFinish().
  void handlePreflightResponse(const ResourceResponse&);
  void handleError(const ResourceError&);

  void loadRequestAsync(const ResourceRequest&, ResourceLoaderOptions);
  void loadRequestSync(const ResourceRequest&, ResourceLoaderOptions);

  void prepareCrossOriginRequest(ResourceRequest&);
  void loadRequest(const ResourceRequest&, ResourceLoaderOptions);
  bool isAllowedRedirect(const KURL&) const;
  // Returns DoNotAllowStoredCredentials if m_forceDoNotAllowStoredCredentials
  // is set. Otherwise, just returns allowCredentials value of
  // m_resourceLoaderOptions.
  StoredCredentials effectiveAllowCredentials() const;

  // TODO(hiroshige): After crbug.com/633696 is fixed,
  // - Remove RawResourceClientStateChecker logic,
  // - Make DocumentThreadableLoader to be a ResourceOwner and remove this
  //   re-implementation of ResourceOwner, and
  // - Consider re-applying RawResourceClientStateChecker in a more
  //   general fashion (crbug.com/640291).
  RawResource* resource() const { return m_resource.get(); }
  void clearResource() { setResource(nullptr); }
  void setResource(RawResource* newResource) {
    if (newResource == m_resource)
      return;

    if (RawResource* oldResource = m_resource.release()) {
      m_checker.willRemoveClient();
      oldResource->removeClient(this);
    }

    if (newResource) {
      m_resource = newResource;
      m_checker.willAddClient();
      m_resource->addClient(this);
    }
  }
  Member<RawResource> m_resource;
  // End of ResourceOwner re-implementation, see above.

  const SecurityOrigin* getSecurityOrigin() const;
  Document& document() const;

  ThreadableLoaderClient* m_client;
  Member<Document> m_document;

  const ThreadableLoaderOptions m_options;
  // Some items may be overridden by m_forceDoNotAllowStoredCredentials and
  // m_securityOrigin. In such a case, build a ResourceLoaderOptions with
  // up-to-date values from them and this variable, and use it.
  const ResourceLoaderOptions m_resourceLoaderOptions;

  bool m_forceDoNotAllowStoredCredentials;
  RefPtr<SecurityOrigin> m_securityOrigin;

  // True while the initial URL and all the URLs of the redirects this object
  // has followed, if any, are same-origin to getSecurityOrigin().
  bool m_sameOriginRequest;
  // Set to true if the current request is cross-origin and not simple.
  bool m_crossOriginNonSimpleRequest;

  // Set to true when the response data is given to a data consumer handle.
  bool m_isUsingDataConsumerHandle;

  const bool m_async;

  // Holds the original request context (used for sanity checks).
  WebURLRequest::RequestContext m_requestContext;

  // Holds the original request for fallback in case the Service Worker
  // does not respond.
  ResourceRequest m_fallbackRequestForServiceWorker;

  // Holds the original request and options for it during preflight request
  // handling phase.
  ResourceRequest m_actualRequest;
  ResourceLoaderOptions m_actualOptions;

  // stores request headers in case of a cross-origin redirect.
  HTTPHeaderMap m_requestHeaders;

  Timer<DocumentThreadableLoader> m_timeoutTimer;
  double
      m_requestStartedSeconds;  // Time an asynchronous fetch request is started

  // Max number of times that this DocumentThreadableLoader can follow
  // cross-origin redirects. This is used to limit the number of redirects. But
  // this value is not the max number of total redirects allowed, because
  // same-origin redirects are not counted here.
  int m_corsRedirectLimit;

  WebURLRequest::FetchRedirectMode m_redirectMode;

  // Holds the referrer after a redirect response was received. This referrer is
  // used to populate the HTTP Referer header when following the redirect.
  bool m_overrideReferrer;
  Referrer m_referrerAfterRedirect;

  RawResourceClientStateChecker m_checker;
};

}  // namespace blink

#endif  // DocumentThreadableLoader_h


text:
package trace

import (
	"fmt"
	"sort"
)

type eventBatch struct {
	events   []*Event
	selected bool
}

type orderEvent struct {
	ev    *Event
	batch int
	g     uint64
	init  gState
	next  gState
}

type gStatus int

type gState struct {
	seq    uint64
	status gStatus
}

const (
	gDead gStatus = iota
	gRunnable
	gRunning
	gWaiting

	unordered = ^uint64(0)
	garbage   = ^uint64(0) - 1
	noseq     = ^uint64(0)
	seqinc    = ^uint64(0) - 1
)

// order1007 merges a set of per-P event batches into a single, consistent stream.
// The high level idea is as follows. Events within an individual batch are in
// correct order, because they are emitted by a single P. So we need to produce
// a correct interleaving of the batches. To do this we take first unmerged event
// from each batch (frontier). Then choose subset that is "ready" to be merged,
// that is, events for which all dependencies are already merged. Then we choose
// event with the lowest timestamp from the subset, merge it and repeat.
// This approach ensures that we form a consistent stream even if timestamps are
// incorrect (condition observed on some machines).
func order1007(m map[int][]*Event) (events []*Event, err error) {
	pending := 0
	var batches []*eventBatch
	for _, v := range m {
		pending += len(v)
		batches = append(batches, &eventBatch{v, false})
	}
	gs := make(map[uint64]gState)
	var frontier []orderEvent
	for ; pending != 0; pending-- {
		for i, b := range batches {
			if b.selected || len(b.events) == 0 {
				continue
			}
			ev := b.events[0]
			g, init, next := stateTransition(ev)
			if !transitionReady(g, gs[g], init) {
				continue
			}
			frontier = append(frontier, orderEvent{ev, i, g, init, next})
			b.events = b.events[1:]
			b.selected = true
			// Get rid of "Local" events, they are intended merely for ordering.
			switch ev.Type {
			case EvGoStartLocal:
				ev.Type = EvGoStart
			case EvGoUnblockLocal:
				ev.Type = EvGoUnblock
			case EvGoSysExitLocal:
				ev.Type = EvGoSysExit
			}
		}
		if len(frontier) == 0 {
			return nil, fmt.Errorf("no consistent ordering of events possible")
		}
		sort.Sort(orderEventList(frontier))
		f := frontier[0]
		frontier[0] = frontier[len(frontier)-1]
		frontier = frontier[:len(frontier)-1]
		events = append(events, f.ev)
		transition(gs, f.g, f.init, f.next)
		if !batches[f.batch].selected {
			panic("frontier batch is not selected")
		}
		batches[f.batch].selected = false
	}

	// At this point we have a consistent stream of events.
	// Make sure time stamps respect the ordering.
	// The tests will skip (not fail) the test case if they see this error.
	if !sort.IsSorted(eventList(events)) {
		return nil, ErrTimeOrder
	}

	// The last part is giving correct timestamps to EvGoSysExit events.
	// The problem with EvGoSysExit is that actual syscall exit timestamp (ev.Args[2])
	// is potentially acquired long before event emission. So far we've used
	// timestamp of event emission (ev.Ts).
	// We could not set ev.Ts = ev.Args[2] earlier, because it would produce
	// seemingly broken timestamps (misplaced event).
	// We also can't simply update the timestamp and resort events, because
	// if timestamps are broken we will misplace the event and later report
	// logically broken trace (instead of reporting broken timestamps).
	lastSysBlock := make(map[uint64]int64)
	for _, ev := range events {
		switch ev.Type {
		case EvGoSysBlock, EvGoInSyscall:
			lastSysBlock[ev.G] = ev.Ts
		case EvGoSysExit:
			ts := int64(ev.Args[2])
			if ts == 0 {
				continue
			}
			block := lastSysBlock[ev.G]
			if block == 0 {
				return nil, fmt.Errorf("stray syscall exit")
			}
			if ts < block {
				return nil, ErrTimeOrder
			}
			ev.Ts = ts
		}
	}
	sort.Stable(eventList(events))

	return
}

// stateTransition returns goroutine state (sequence and status) when the event
// becomes ready for merging (init) and the goroutine state after the event (next).
func stateTransition(ev *Event) (g uint64, init, next gState) {
	switch ev.Type {
	case EvGoCreate:
		g = ev.Args[0]
		init = gState{0, gDead}
		next = gState{1, gRunnable}
	case EvGoWaiting, EvGoInSyscall:
		g = ev.G
		init = gState{1, gRunnable}
		next = gState{2, gWaiting}
	case EvGoStart, EvGoStartLabel:
		g = ev.G
		init = gState{ev.Args[1], gRunnable}
		next = gState{ev.Args[1] + 1, gRunning}
	case EvGoStartLocal:
		// noseq means that this event is ready for merging as soon as
		// frontier reaches it (EvGoStartLocal is emitted on the same P
		// as the corresponding EvGoCreate/EvGoUnblock, and thus the latter
		// is already merged).
		// seqinc is a stub for cases when event increments g sequence,
		// but since we don't know current seq we also don't know next seq.
		g = ev.G
		init = gState{noseq, gRunnable}
		next = gState{seqinc, gRunning}
	case EvGoBlock, EvGoBlockSend, EvGoBlockRecv, EvGoBlockSelect,
		EvGoBlockSync, EvGoBlockCond, EvGoBlockNet, EvGoSleep,
		EvGoSysBlock, EvGoBlockGC:
		g = ev.G
		init = gState{noseq, gRunning}
		next = gState{noseq, gWaiting}
	case EvGoSched, EvGoPreempt:
		g = ev.G
		init = gState{noseq, gRunning}
		next = gState{noseq, gRunnable}
	case EvGoUnblock, EvGoSysExit:
		g = ev.Args[0]
		init = gState{ev.Args[1], gWaiting}
		next = gState{ev.Args[1] + 1, gRunnable}
	case EvGoUnblockLocal, EvGoSysExitLocal:
		g = ev.Args[0]
		init = gState{noseq, gWaiting}
		next = gState{seqinc, gRunnable}
	case EvGCStart:
		g = garbage
		init = gState{ev.Args[0], gDead}
		next = gState{ev.Args[0] + 1, gDead}
	default:
		// no ordering requirements
		g = unordered
	}
	return
}

func transitionReady(g uint64, curr, init gState) bool {
	return g == unordered || (init.seq == noseq || init.seq == curr.seq) && init.status == curr.status
}

func transition(gs map[uint64]gState, g uint64, init, next gState) {
	if g == unordered {
		return
	}
	curr := gs[g]
	if !transitionReady(g, curr, init) {
		panic("event sequences are broken")
	}
	switch next.seq {
	case noseq:
		next.seq = curr.seq
	case seqinc:
		next.seq = curr.seq + 1
	}
	gs[g] = next
}

// order1005 merges a set of per-P event batches into a single, consistent stream.
func order1005(m map[int][]*Event) (events []*Event, err error) {
	for _, batch := range m {
		events = append(events, batch...)
	}
	for _, ev := range events {
		if ev.Type == EvGoSysExit {
			// EvGoSysExit emission is delayed until the thread has a P.
			// Give it the real sequence number and time stamp.
			ev.seq = int64(ev.Args[1])
			if ev.Args[2] != 0 {
				ev.Ts = int64(ev.Args[2])
			}
		}
	}
	sort.Sort(eventSeqList(events))
	if !sort.IsSorted(eventList(events)) {
		return nil, ErrTimeOrder
	}
	return
}

type orderEventList []orderEvent

func (l orderEventList) Len() int {
	return len(l)
}

func (l orderEventList) Less(i, j int) bool {
	return l[i].ev.Ts < l[j].ev.Ts
}

func (l orderEventList) Swap(i, j int) {
	l[i], l[j] = l[j], l[i]
}

type eventList []*Event

func (l eventList) Len() int {
	return len(l)
}

func (l eventList) Less(i, j int) bool {
	return l[i].Ts < l[j].Ts
}

func (l eventList) Swap(i, j int) {
	l[i], l[j] = l[j], l[i]
}

type eventSeqList []*Event

func (l eventSeqList) Len() int {
	return len(l)
}

func (l eventSeqList) Less(i, j int) bool {
	return l[i].seq < l[j].seq
}

func (l eventSeqList) Swap(i, j int) {
	l[i], l[j] = l[j], l[i]
}


text:
from erddap_management import db

from flask.ext.sqlalchemy import SQLAlchemy
from erddap_management.models.serializer_mixin import SerializerMixin

class Platform(db.Model, SerializerMixin):
    id                   = db.Column(db.Integer, primary_key=True)
    reference_designator = db.Column(db.Text(), unique=True)
    display_name         = db.Column(db.Text())

    def __init__(self, reference_designator, display_name):
        self.reference_designator = reference_designator
        self.display_name = display_name

    def __repr__(self):
        return '<Platform %r>' % self.reference_designator


text:
$(document).ready(function () {

    $("#Ad_Car_Make").change(function () {

        $("#Ad_Car_Model").removeAttr("disabled");
        $("#dummyModelToRemove").remove();
        $("#dummyMakeToRemove").remove();
        $("#Ad_Car_Model").empty();

        var chosenMake = $("#Ad_Car_Make").find(":selected").text();

        $.ajax({
            url: '/Api/Search/GetModelsOfSpecificMake?id=' + chosenMake,
            method: "POST",

            contentType: "application/json; charset=utf-8",
            dataType: "Json",

            success: function (pobrane) {

                $.each(pobrane, function (index, value) {
                    $("#Ad_Car_Model")
                        .append($('<option>', { value: index }).text(value));
                });

            },
            error: function (result) {
                alert('error occured');
                alert(result.responseText);
                window.location.href = "FrmError.aspx?Exception=" + result.responseText;
            }

        });

    });
});


text:
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/menu_logout"
        android:title="@string/menu_logout"
        android:orderInCategory="20" />
    <item android:id="@+id/menu_settings"
        android:title="@string/menu_settings"
        android:orderInCategory="100"
        android:showAsAction="never" />
</menu>


text:
using Circuit;

namespace LiveSPICEVst
{
    /// <summary>
    /// Simple wrapper around IPotControl to make UI integration easier
    /// </summary>
    public class PotWrapper : ComponentWrapper<IPotControl>
    {
        public PotWrapper(IPotControl pot, string name) : base(pot, name)
        {

        }

        public double PotValue
        {
            get
            {
                return Sections[0].PotValue;
            }

            set
            {
                if (Sections[0].PotValue != value)
                {
                    foreach (var section in Sections)
                    {
                        section.PotValue = value;
                    }

                    NeedUpdate = true;
                }
            }
        }
    }
}


text:
<!DOCTYPE html>

	<meta charset="UTF-8">
	<title>Ejercicio 1 - Probabilidad y Estadística</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<link rel="stylesheet" href="css/materialize.min.css">
	<link rel="stylesheet" href="css/Treant.css">

Generador de combinatorias

ww ww ww - 2CV2

Cantidad de representantes

<input type="range" id="www_representantes" min="2" max="10">

				Siguiente

<input type="range" id="www_datos" min="1" max="50">

				Siguiente


text:
package org.techern.rsbot.discord.events;

import org.techern.rsbot.RSBot;
import sx.blah.discord.api.events.IListener;
import sx.blah.discord.handle.impl.events.PresenceUpdateEvent;
import sx.blah.discord.handle.obj.Presences;

/**
 * An implementation of the {@link PresenceUpdateEvent}
 *
 * @since 0.0.1
 */
public class PresenceUpdateEventListener implements IListener<PresenceUpdateEvent> {

    /**
     * Handles the {@link PresenceUpdateEvent}
     *
     * @param event The {@link PresenceUpdateEvent}
     * @since 0.0.1
     */
    @Override
    public void handle(PresenceUpdateEvent event) {
        if (event.getNewPresence().equals(Presences.OFFLINE)) {
            RSBot.BOT_SESSIONS.remove(event.getUser());
        }
    }
}


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

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>MOTOR_B</title><meta name="generator" content="MATLAB 8.1"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2013-06-04"><meta name="DC.source" content="script_MOTOR_B.m">
<link type="text/css" rel="stylesheet" href="../../style.css">

MOTOR_B

Symbolic constant MOTOR_B (returns 1)

Contents

Syntax

Description

Example

See also

Signature

Syntax

<tt>portB = MOTOR_B()</tt>

Description

<tt>portB = MOTOR_B()</tt> returns <tt>1</tt> as the value <tt>portB</tt>.

Example

 portB = MOTOR_B()
 %result: >> portB = 1

See also

MOTOR_A, MOTOR_C,

Signature

Author: Linus Atorf, Alexander Behrens (see AUTHORS)

Date: 2007/10/15

Copyright: 2007-2013, RWTH Aachen University

Published with wg_publish; V1.0