text:
*> \brief  DSYEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for SY matrices
*
*  @precisions fortran d -> s
*
*  =========== DOCUMENTATION ===========
*
* Online html documentation available at
*            http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DSYEVD_2STAGE + dependencies
*>
*> [TGZ]
*>
*> [ZIP]
*>
*> [TXT]
*> \endhtmlonly
*
*  Definition:
*  ===========
*
*       SUBROUTINE DSYEVD_2STAGE( JOBZ, UPLO, N, A, LDA, W, WORK, LWORK,
*                                IWORK, LIWORK, INFO )
*
*       IMPLICIT NONE
*
*       .. Scalar Arguments ..
*       CHARACTER          JOBZ, UPLO
*       INTEGER            INFO, LDA, LIWORK, LWORK, N
*       ..
*       .. Array Arguments ..
*       INTEGER            IWORK( * )
*       DOUBLE PRECISION   A( LDA, * ), W( * ), WORK( * )
*       ..
*
*
*> \par Purpose:
*  =============
*>
*> \verbatim
*>
*> DSYEVD_2STAGE computes all eigenvalues and, optionally, eigenvectors of a
*> real symmetric matrix A using the 2stage technique for
*> the reduction to tridiagonal. If eigenvectors are desired, it uses a
*> divide and conquer algorithm.
*>
*> The divide and conquer algorithm makes very mild assumptions about
*> floating point arithmetic. It will work on machines with a guard
*> digit in add/subtract, or on those binary machines without guard
*> digits which subtract like the Cray X-MP, Cray Y-MP, Cray C-90, or
*> Cray-2. It could conceivably fail on hexadecimal or decimal machines
*> without guard digits, but we know of none.
*> \endverbatim
*
*  Arguments:
*  ==========
*
*> \param[in] JOBZ
*> \verbatim
*>          JOBZ is CHARACTER*1
*>          = 'N':  Compute eigenvalues only;
*>          = 'V':  Compute eigenvalues and eigenvectors.
*>                  Not available in this release.
*> \endverbatim
*>
*> \param[in] UPLO
*> \verbatim
*>          UPLO is CHARACTER*1
*>          = 'U':  Upper triangle of A is stored;
*>          = 'L':  Lower triangle of A is stored.
*> \endverbatim
*>
*> \param[in] N
*> \verbatim
*>          N is INTEGER
*>          The order of the matrix A.  N >= 0.
*> \endverbatim
*>
*> \param[in,out] A
*> \verbatim
*>          A is DOUBLE PRECISION array, dimension (LDA, N)
*>          On entry, the symmetric matrix A.  If UPLO = 'U', the
*>          leading N-by-N upper triangular part of A contains the
*>          upper triangular part of the matrix A.  If UPLO = 'L',
*>          the leading N-by-N lower triangular part of A contains
*>          the lower triangular part of the matrix A.
*>          On exit, if JOBZ = 'V', then if INFO = 0, A contains the
*>          orthonormal eigenvectors of the matrix A.
*>          If JOBZ = 'N', then on exit the lower triangle (if UPLO='L')
*>          or the upper triangle (if UPLO='U') of A, including the
*>          diagonal, is destroyed.
*> \endverbatim
*>
*> \param[in] LDA
*> \verbatim
*>          LDA is INTEGER
*>          The leading dimension of the array A.  LDA >= max(1,N).
*> \endverbatim
*>
*> \param[out] W
*> \verbatim
*>          W is DOUBLE PRECISION array, dimension (N)
*>          If INFO = 0, the eigenvalues in ascending order.
*> \endverbatim
*>
*> \param[out] WORK
*> \verbatim
*>          WORK is DOUBLE PRECISION array,
*>                                         dimension (LWORK)
*>          On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
*> \endverbatim
*>
*> \param[in] LWORK
*> \verbatim
*>          LWORK is INTEGER
*>          The dimension of the array WORK.
*>          If N <= 1,               LWORK must be at least 1.
*>          If JOBZ = 'N' and N > 1, LWORK must be queried.
*>                                   LWORK = MAX(1, dimension) where
*>                                   dimension = max(stage1,stage2) + (KD+1)*N + 2*N+1
*>                                             = N*KD + N*max(KD+1,FACTOPTNB)
*>                                               + max(2*KD*KD, KD*NTHREADS)
*>                                               + (KD+1)*N + 2*N+1
*>                                   where KD is the blocking size of the reduction,
*>                                   FACTOPTNB is the blocking used by the QR or LQ
*>                                   algorithm, usually FACTOPTNB=128 is a good choice
*>                                   NTHREADS is the number of threads used when
*>                                   openMP compilation is enabled, otherwise =1.
*>          If JOBZ = 'V' and N > 1, LWORK must be at least
*>                                                1 + 6*N + 2*N**2.
*>
*>          If LWORK = -1, then a workspace query is assumed; the routine
*>          only calculates the optimal sizes of the WORK and IWORK
*>          arrays, returns these values as the first entries of the WORK
*>          and IWORK arrays, and no error message related to LWORK or
*>          LIWORK is issued by XERBLA.
*> \endverbatim
*>
*> \param[out] IWORK
*> \verbatim
*>          IWORK is INTEGER array, dimension (MAX(1,LIWORK))
*>          On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.
*> \endverbatim
*>
*> \param[in] LIWORK
*> \verbatim
*>          LIWORK is INTEGER
*>          The dimension of the array IWORK.
*>          If N <= 1,                LIWORK must be at least 1.
*>          If JOBZ  = 'N' and N > 1, LIWORK must be at least 1.
*>          If JOBZ  = 'V' and N > 1, LIWORK must be at least 3 + 5*N.
*>
*>          If LIWORK = -1, then a workspace query is assumed; the
*>          routine only calculates the optimal sizes of the WORK and
*>          IWORK arrays, returns these values as the first entries of
*>          the WORK and IWORK arrays, and no error message related to
*>          LWORK or LIWORK is issued by XERBLA.
*> \endverbatim
*>
*> \param[out] INFO
*> \verbatim
*>          INFO is INTEGER
*>          = 0:  successful exit
*>          < 0:  if INFO = -i, the i-th argument had an illegal value
*>          > 0:  if INFO = i and JOBZ = 'N', then the algorithm failed
*>                to converge; i off-diagonal elements of an intermediate
*>                tridiagonal form did not converge to zero;
*>                if INFO = i and JOBZ = 'V', then the algorithm failed
*>                to compute an eigenvalue while working on the submatrix
*>                lying in rows and columns INFO/(N+1) through
*>                mod(INFO,N+1).
*> \endverbatim
*
*  Authors:
*  ========
*
*> \author Univ. of Tennessee
*> \author Univ. of California Berkeley
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup doubleSYeigen
*
*> \par Contributors:
*  ==================
*>
*> Jeff Rutter, Computer Science Division, University of California
*> at Berkeley, USA \n
*>  Modified by Francoise Tisseur, University of Tennessee \n
*>  Modified description of INFO. Sven, 16 Feb 05. \n
*> \par Further Details:
*  =====================
*>
*> \verbatim
*>
*>  All details about the 2stage techniques are available in:
*>
*>  Azzam Haidar, Hatem Ltaief, and Jack Dongarra.
*>  Parallel reduction to condensed forms for symmetric eigenvalue problems
*>  using aggregated fine-grained and memory-aware kernels. In Proceedings
*>  of 2011 International Conference for High Performance Computing,
*>  Networking, Storage and Analysis (SC '11), New York, NY, USA,
*>  Article 8 , 11 pages.
*>  http://doi.acm.org/10.1145/2063384.2063394
*>
*>  A. Haidar, J. Kurzak, P. Luszczek, 2013.
*>  An improved parallel singular value algorithm and its implementation
*>  for multicore hardware, In Proceedings of 2013 International Conference
*>  for High Performance Computing, Networking, Storage and Analysis (SC '13).
*>  Denver, Colorado, USA, 2013.
*>  Article 90, 12 pages.
*>  http://doi.acm.org/10.1145/2503210.2503292
*>
*>  A. Haidar, R. Solca, S. Tomov, T. Schulthess and J. Dongarra.
*>  A novel hybrid CPU-GPU generalized eigensolver for electronic structure
*>  calculations based on fine-grained memory aware tasks.
*>  International Journal of High Performance Computing Applications.
*>  Volume 28 Issue 2, Pages 196-209, May 2014.
*>  http://hpc.sagepub.com/content/28/2/196
*>
*> \endverbatim
*
*  =====================================================================
      SUBROUTINE DSYEVD_2STAGE( JOBZ, UPLO, N, A, LDA, W, WORK, LWORK,
     $                          IWORK, LIWORK, INFO )
*
      IMPLICIT NONE
*
*  -- LAPACK driver routine --
*  -- LAPACK is a software package provided by Univ. of Tennessee,    --
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
*
*     .. Scalar Arguments ..
      CHARACTER          JOBZ, UPLO
      INTEGER            INFO, LDA, LIWORK, LWORK, N
*     ..
*     .. Array Arguments ..
      INTEGER            IWORK( * )
      DOUBLE PRECISION   A( LDA, * ), W( * ), WORK( * )
*     ..
*
*  =====================================================================
*
*     .. Parameters ..
      DOUBLE PRECISION   ZERO, ONE
      PARAMETER          ( ZERO = 0.0D+0, ONE = 1.0D+0 )
*     ..
*     .. Local Scalars ..
*
      LOGICAL            LOWER, LQUERY, WANTZ
      INTEGER            IINFO, INDE, INDTAU, INDWK2, INDWRK, ISCALE,
     $                   LIWMIN, LLWORK, LLWRK2, LWMIN,
     $                   LHTRD, LWTRD, KD, IB, INDHOUS
      DOUBLE PRECISION   ANRM, BIGNUM, EPS, RMAX, RMIN, SAFMIN, SIGMA,
     $                   SMLNUM
*     ..
*     .. External Functions ..
      LOGICAL            LSAME
      INTEGER            ILAENV2STAGE
      DOUBLE PRECISION   DLAMCH, DLANSY
      EXTERNAL           LSAME, DLAMCH, DLANSY, ILAENV2STAGE
*     ..
*     .. External Subroutines ..
      EXTERNAL           DLACPY, DLASCL, DORMTR, DSCAL, DSTEDC, DSTERF,
     $                   DSYTRD_2STAGE, XERBLA
*     ..
*     .. Intrinsic Functions ..
      INTRINSIC          MAX, SQRT
*     ..
*     .. Executable Statements ..
*
*     Test the input parameters.
*
      WANTZ = LSAME( JOBZ, 'V' )
      LOWER = LSAME( UPLO, 'L' )
      LQUERY = ( LWORK.EQ.-1 .OR. LIWORK.EQ.-1 )
*
      INFO = 0
      IF( .NOT.( LSAME( JOBZ, 'N' ) ) ) THEN
         INFO = -1
      ELSE IF( .NOT.( LOWER .OR. LSAME( UPLO, 'U' ) ) ) THEN
         INFO = -2
      ELSE IF( N.LT.0 ) THEN
         INFO = -3
      ELSE IF( LDA.LT.MAX( 1, N ) ) THEN
         INFO = -5
      END IF
*
      IF( INFO.EQ.0 ) THEN
         IF( N.LE.1 ) THEN
            LIWMIN = 1
            LWMIN = 1
         ELSE
            KD    = ILAENV2STAGE( 1, 'DSYTRD_2STAGE', JOBZ,
     $                            N, -1, -1, -1 )
            IB    = ILAENV2STAGE( 2, 'DSYTRD_2STAGE', JOBZ,
     $                            N, KD, -1, -1 )
            LHTRD = ILAENV2STAGE( 3, 'DSYTRD_2STAGE', JOBZ,
     $                            N, KD, IB, -1 )
            LWTRD = ILAENV2STAGE( 4, 'DSYTRD_2STAGE', JOBZ,
     $                            N, KD, IB, -1 )
            IF( WANTZ ) THEN
               LIWMIN = 3 + 5*N
               LWMIN = 1 + 6*N + 2*N**2
            ELSE
               LIWMIN = 1
               LWMIN = 2*N + 1 + LHTRD + LWTRD
            END IF
         END IF
         WORK( 1 )  = LWMIN
         IWORK( 1 ) = LIWMIN
*
         IF( LWORK.LT.LWMIN .AND. .NOT.LQUERY ) THEN
            INFO = -8
         ELSE IF( LIWORK.LT.LIWMIN .AND. .NOT.LQUERY ) THEN
            INFO = -10
         END IF
      END IF
*
      IF( INFO.NE.0 ) THEN
         CALL XERBLA( 'DSYEVD_2STAGE', -INFO )
         RETURN
      ELSE IF( LQUERY ) THEN
         RETURN
      END IF
*
*     Quick return if possible
*
      IF( N.EQ.0 )
     $   RETURN
*
      IF( N.EQ.1 ) THEN
         W( 1 ) = A( 1, 1 )
         IF( WANTZ )
     $      A( 1, 1 ) = ONE
         RETURN
      END IF
*
*     Get machine constants.
*
      SAFMIN = DLAMCH( 'Safe minimum' )
      EPS    = DLAMCH( 'Precision' )
      SMLNUM = SAFMIN / EPS
      BIGNUM = ONE / SMLNUM
      RMIN   = SQRT( SMLNUM )
      RMAX   = SQRT( BIGNUM )
*
*     Scale matrix to allowable range, if necessary.
*
      ANRM = DLANSY( 'M', UPLO, N, A, LDA, WORK )
      ISCALE = 0
      IF( ANRM.GT.ZERO .AND. ANRM.LT.RMIN ) THEN
         ISCALE = 1
         SIGMA = RMIN / ANRM
      ELSE IF( ANRM.GT.RMAX ) THEN
         ISCALE = 1
         SIGMA = RMAX / ANRM
      END IF
      IF( ISCALE.EQ.1 )
     $   CALL DLASCL( UPLO, 0, 0, ONE, SIGMA, N, N, A, LDA, INFO )
*
*     Call DSYTRD_2STAGE to reduce symmetric matrix to tridiagonal form.
*
      INDE    = 1
      INDTAU  = INDE + N
      INDHOUS = INDTAU + N
      INDWRK  = INDHOUS + LHTRD
      LLWORK  = LWORK - INDWRK + 1
      INDWK2  = INDWRK + N*N
      LLWRK2  = LWORK - INDWK2 + 1
*
      CALL DSYTRD_2STAGE( JOBZ, UPLO, N, A, LDA, W, WORK( INDE ),
     $                    WORK( INDTAU ), WORK( INDHOUS ), LHTRD,
     $                    WORK( INDWRK ), LLWORK, IINFO )
*
*     For eigenvalues only, call DSTERF.  For eigenvectors, first call
*     DSTEDC to generate the eigenvector matrix, WORK(INDWRK), of the
*     tridiagonal matrix, then call DORMTR to multiply it by the
*     Householder transformations stored in A.
*
      IF( .NOT.WANTZ ) THEN
         CALL DSTERF( N, W, WORK( INDE ), INFO )
      ELSE
*        Not available in this release, and argument checking should not
*        let it getting here
         RETURN
         CALL DSTEDC( 'I', N, W, WORK( INDE ), WORK( INDWRK ), N,
     $                WORK( INDWK2 ), LLWRK2, IWORK, LIWORK, INFO )
         CALL DORMTR( 'L', UPLO, 'N', N, N, A, LDA, WORK( INDTAU ),
     $                WORK( INDWRK ), N, WORK( INDWK2 ), LLWRK2, IINFO )
         CALL DLACPY( 'A', N, N, WORK( INDWRK ), N, A, LDA )
      END IF
*
*     If matrix was scaled, then rescale eigenvalues appropriately.
*
      IF( ISCALE.EQ.1 )
     $   CALL DSCAL( N, ONE / SIGMA, W, 1 )
*
      WORK( 1 )  = LWMIN
      IWORK( 1 ) = LIWMIN
*
      RETURN
*
*     End of DSYEVD_2STAGE
*
      END


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FoursquareApi.Models.OAuth
{
    public class AccessTokenModel
    {
        public string Access_Token { get; set; }
    }
}

redpajama_set_name: RedPajamaGithub


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

About What's New

What's New, located on the Host >  What's New page, displays an expandable section for the current release and prior releases. Users can expand a section to view a summary of the major features for each release including lists of the Major Highlights, Security Fixes, and Updated Modules/Providers.

Module Version:  The version number is always the same as the DNN framework version number.

The What's New page

            <MadCap:snippetText src="../../../../../Resources/Snippets/Project Links.flsnp" />

Project Home: http://dnnwhatsnew.codeplex.com/

Issue Tracker: http://dnnwhatsnew.codeplex.com/


text:
// =========================================================================== //
//                                                                             //
// Copyright 2011 Jesse Doherty and McGill University.                         //
//                                                                             //
//   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 analysis;

/**
 * @author Jesse Doherty
 */
public abstract class AbstractStructuralForwardAnalysis<A> extends analysis.natlab.NatlabAbstractStructuralForwardAnalysis<A>
{
    public AbstractStructuralForwardAnalysis(ast.ASTNode tree){
        super( tree );
    }

}


text:
require 'test_helper'

module Florensia
  class Item::FreeMarketTest < ActiveSupport::TestCase
    # test "the truth" do
    #   assert true
    # end
  end
end


text:
<?php

declare(strict_types=1);

namespace App\Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
final class Version20211223175512 extends AbstractMigration
{
    public function getDescription(): string
    {
        return '';
    }

    public function up(Schema $schema): void
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE page ADD keywords VARCHAR(255) DEFAULT NULL, ADD template VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE `page` CHANGE `page_id` `page_id` INT NOT NULL auto_increment FIRST, CHANGE `page_parent_id` `page_parent_id` INT NULL DEFAULT NULL AFTER `page_id`, CHANGE `title` `title` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL AFTER `page_parent_id`, CHANGE `url` `url` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL AFTER `title`, CHANGE `keywords` `keywords` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL AFTER `url`, CHANGE `template` `template` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL AFTER `keywords`');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE page DROP keywords, DROP template');
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>rc.championship.platform</groupId>
        <artifactId>rc-championship-platform-parent</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <groupId>rc.championship.platform.decoder</groupId>
    <artifactId>rc-championship-decoders</artifactId>
    <packaging>pom</packaging>
    <modules>
        <module>decoder-mylaps</module>
        <module>decoder-control</module>
        <module>lap-publisher</module>
    </modules>
</project>


text:
using Core.Commands;
using Core.Marten.Events;
using Core.Marten.Repository;
using MediatR;

namespace Carts.ShoppingCarts.CancelingCart;

public record CancelShoppingCart(
    Guid CartId
): ICommand
{
    public static CancelShoppingCart Create(Guid cartId)
    {
        if (cartId == Guid.Empty)
            throw new ArgumentOutOfRangeException(nameof(cartId));

        return new CancelShoppingCart(cartId);
    }
}

internal class HandleCancelShoppingCart:
    ICommandHandler<CancelShoppingCart>
{
    private readonly IMartenRepository<ShoppingCart> cartRepository;
    private readonly IMartenAppendScope scope;

    public HandleCancelShoppingCart(
        IMartenRepository<ShoppingCart> cartRepository,
        IMartenAppendScope scope
    )
    {
        this.cartRepository = cartRepository;
        this.scope = scope;
    }

    public async Task<Unit> Handle(CancelShoppingCart command, CancellationToken cancellationToken)
    {
        await scope.Do((expectedVersion, traceMetadata) =>
            cartRepository.GetAndUpdate(
                command.CartId,
                cart => cart.Cancel(),
                expectedVersion,
                traceMetadata,
                cancellationToken
            )
        );
        return Unit.Value;
    }
}


text:
if ( document.readyState == "loading" ) {
	document.addEventListener( "DOMContentLoaded", main );
} else {
	main();
}

import { streamPlayerMain } from "./components/stream-player.js";

import { homeMain } from "./pages/home.js";
import { statusMain } from "./pages/status.js";

function main() {
	streamPlayerMain();

	let ndMain = document.querySelector("main")
	if ( ndMain ) {
		let c = ndMain.classList;
		if ( c.contains("home") ) {
			homeMain();
		} else if ( c.contains("status") ) {
			statusMain();
		}
	}
}


text:
const durabilityMetricsSelectable: Immutable.OrderedSet<
  SomeReportingMetric,
> = myExperienceSelectable.concat(otherDurabilityMetricsSelectable);


text:
//-----------------------------------------------
//
//	This file is part of the Siv3D Engine.
//
//	Copyright (c) 2008-2018 Ryo Suzuki
//	Copyright (c) 2016-2018 OpenSiv3D Project
//
//	Licensed under the MIT License.
//
//-----------------------------------------------

# include <Siv3D/Platform.hpp>
# if defined(SIV3D_TARGET_LINUX)

# include <Siv3D/MessageBox.hpp>

namespace s3d
{
	namespace System
	{
		MessageBoxSelection ShowMessageBox(const String& title, const String& text, MessageBoxStyle style, MessageBoxButtons buttons)
		{
			return MessageBoxSelection::None;
		}
	}
}

# endif


text:
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Vevo;
using Vevo.Domain;
using Vevo.Domain.Stores;
using Vevo.WebAppLib;
using Vevo.Shared.DataAccess;

public partial class AdminAdvanced_MainControls_QuickBooksConfig : AdminAdvancedBaseUserControl
{
    #region private

    private void PopulateControls()
    {
        if (!IsAdminModifiable())
        {
            uxUpdateButton.Visible = false;
        }

            uxAccountNameText.Text = DataAccessContext.Configurations.GetValue( "QBIncomeAccountName" ).ToString();
            uxTaxItemText.Text = DataAccessContext.Configurations.GetValue( "QBTaxItem" ).ToString();
            uxDiscountItemText.Text = DataAccessContext.Configurations.GetValue( "QBDiscountItem" ).ToString();
            uxShippingItemText.Text = DataAccessContext.Configurations.GetValue( "QBShippingItem" ).ToString();
            uxCustomerNameDrop.SelectedValue = DataAccessContext.Configurations.GetValue( "QBCustomerNameFormat" ).ToString();
            uxAdminAccountText.Text = DataAccessContext.Configurations.GetValue( "QBVevoAdminUser" ).ToString();
            uxStoreDrop.SelectedValue = DataAccessContext.Configurations.GetValue( "QBSelectStoreExport" ).ToString();
            uxEnableCustomerModifyDrop.SelectedValue = DataAccessContext.Configurations.GetValue( "QBEnableCustomerModify" );
            uxEnableProductModifyDrop.SelectedValue = DataAccessContext.Configurations.GetValue( "QBEnableProductModify" );
    }

    private void Update()
    {
        try
        {
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBIncomeAccountName"],
                uxAccountNameText.Text.Trim() );
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBTaxItem"],
                uxTaxItemText.Text.Trim() );
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBDiscountItem"],
                uxDiscountItemText.Text.Trim() );
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBShippingItem"],
                uxShippingItemText.Text.Trim() );
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBCustomerNameFormat"],
                uxCustomerNameDrop.SelectedValue );
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBVevoAdminUser"],
                uxAdminAccountText.Text.Trim() );
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBSelectStoreExport"],
                uxStoreDrop.SelectedValue );
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBEnableCustomerModify"], "False" );
            //uxEnableCustomerModifyDrop.SelectedValue );
            DataAccessContext.ConfigurationRepository.UpdateValue(
                DataAccessContext.Configurations["QBEnableProductModify"], "False" );
            //uxEnableProductModifyDrop.SelectedValue );

            SystemConfig.Load();
        }
        catch (Exception ex)
        {
            uxMessage.DisplayException( ex );
        }
    }

    private void OpenLog()
    {
        MainContext.RedirectMainControl( "QuickBooksLog.ascx" );
    }

    private void PopulateStoreFilterDropDown()
    {
        IList<Store> stores = DataAccessContext.StoreRepository.GetAll( "StoreID" );

        uxStoreDrop.Items.Clear();
        foreach (Store store in stores)
        {
            uxStoreDrop.Items.Add( new ListItem( store.StoreName, store.StoreID ) );
        }
    }

    #endregion

    #region protected

    protected void Page_Load( object sender, EventArgs e )
    {
        if (!KeyUtilities.IsDeluxeLicense( DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName ))
            MainContext.RedirectMainControl( "Default.ascx", String.Empty );
    }

    protected void Page_PreRender( object sender, EventArgs e )
    {
        if (!MainContext.IsPostBack)
        {
            PopulateStoreFilterDropDown();
            PopulateControls();
        }

        if (!KeyUtilities.IsMultistoreLicense())
            uxStoreTR.Visible = false;
    }

    protected void uxUpdateButton_Click( object sender, EventArgs e )
    {
        Update();
        uxMessage.DisplayMessage( Resources.SetupMessages.UpdateSuccess );
    }

    protected void uxViewLogButton_Click( object sender, EventArgs e )
    {
        OpenLog();
    }

    #endregion
}


text:
using Sitecore.Courier.Sql.Model;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

namespace Sitecore.Courier.DacPac
{
  public abstract class SqlGeneratorBase : ISqlGenerator
  {
    protected Dictionary<string, object> processedItems = new Dictionary<string, object>();

    protected virtual void AddCreateTableStatements(StringBuilder result)
    {
      result.AppendLine("CREATE TABLE #Blobs (BlobId uniqueidentifier NOT NULL, [Index] int NOT NULL, Data image NOT NULL, Created datetime NOT NULL);");
      result.AppendLine("CREATE TABLE #Items (ID uniqueidentifier NOT NULL PRIMARY KEY, Name nvarchar(256) COLLATE database_default NOT NULL, TemplateID uniqueidentifier NOT NULL, MasterID uniqueidentifier NOT NULL, ParentID uniqueidentifier NOT NULL, Created datetime NOT NULL, Updated datetime NOT NULL);");
      result.AppendLine("CREATE TABLE #SharedFields (ItemId uniqueidentifier NOT NULL, FieldId uniqueidentifier NOT NULL, Value nvarchar(max) COLLATE database_default NOT NULL, Created datetime NOT NULL, Updated datetime NOT NULL, PRIMARY KEY CLUSTERED ([ItemID], [FieldID]));");
    }

    protected virtual void AddDropTemporaryTablesStatements(StringBuilder result)
    {
      result.AppendLine("DROP TABLE #Blobs");
      result.AppendLine("DROP TABLE #Items");
      result.AppendLine("DROP TABLE #SharedFields");
    }

    protected virtual void AddMergeStatements(StringBuilder result)
    {
      result.AppendLine("\r\nMERGE [Blobs] AS target\r\nUSING #Blobs AS source\r\nON target.BlobId = source.BlobId AND target.[Index] = source.[Index]\r\nWHEN MATCHED THEN\r\n    UPDATE SET\r\n        Data = source.Data\r\nWHEN NOT MATCHED THEN\r\n    INSERT (Id, BlobId, [Index], Data, Created)\r\n    VALUES (NEWID(), source.BlobId, source.[Index], source.Data, source.Created);\r\n");
      result.AppendLine("\r\nMERGE [Items] AS target\r\nUSING #Items AS source\r\nON target.ID = source.ID\r\nWHEN MATCHED THEN\r\n    UPDATE SET\r\n        Name = source.Name,\r\n        TemplateID = source.TemplateID,\r\n        MasterID = source.MasterID,\r\n        ParentID = source.ParentID,\r\n        Updated = source.Updated\r\nWHEN NOT MATCHED THEN\r\n    INSERT (ID, Name, TemplateID, MasterID, ParentID, Created, Updated)\r\n    VALUES (source.ID, source.Name, source.TemplateID, source.MasterID, source.ParentID, source.Created, source.Updated);\r\n");
      result.AppendLine("\r\nMERGE [SharedFields] AS target\r\nUSING #SharedFields AS source\r\nON target.ItemId = source.ItemId AND target.FieldId = source.FieldId\r\nWHEN MATCHED THEN\r\n    UPDATE SET\r\n        Value = source.Value,\r\n        Updated = source.Updated\r\nWHEN NOT MATCHED THEN\r\n    INSERT (Id, ItemId, FieldId, Value, Created, Updated)\r\n    VALUES (NEWID(), source.ItemId, source.FieldId, source.Value, source.Created, source.Updated);\r\n");
    }

    protected virtual void AddPreprocessStatements(StringBuilder result)
    {
    }

    public static string FormatBlobValue(byte[] value)
    {
      StringBuilder stringBuilder = new StringBuilder((int)value.Length * 2);
      byte[] numArray = value;
      for (int i = 0; i < (int)numArray.Length; i++)
      {
        byte num = numArray[i];
        stringBuilder.Append(num.ToString("X2", CultureInfo.InvariantCulture));
      }
      return stringBuilder.ToString();
    }

    protected static string FormatValue(string value)
    {
      string str = value.Replace("'", "''").Replace("$(", "$' as nvarchar(max)),cast(N'(");
      if (str.Contains("$' as nvarchar(max)),cast(N'("))
      {
        return string.Concat("concat(cast(N'", str, "' as nvarchar(max)))");
      }
      return string.Concat("N'", str, "'");
    }

    public string GenerateAddBlobStatements(Blob blob)
    {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.AppendLine(string.Format("\r\nINSERT INTO #Blobs (BlobId, [Index], Data, Created)\r\nVALUES ('{0}', '{1}', 0x{2}, GETUTCDATE())", blob.Id, 0, FormatBlobValue(blob.Data)));
      stringBuilder.AppendLine("GO");
      return stringBuilder.ToString();
    }

    public virtual string GenerateAddItemStatements(Item item)
    {
      StringBuilder stringBuilder = new StringBuilder();
      string str = this.ScriptItemTableOperations(item);
      if (!string.IsNullOrEmpty(str))
      {
        stringBuilder.AppendLine(str);
      }
      string str1 = this.ScriptSharedFieldsTableOperations(item);
      if (!string.IsNullOrEmpty(str1))
      {
        stringBuilder.AppendLine(str1);
      }
      return stringBuilder.ToString();
    }

    public string GenerateAddRoleStatements(Role role)
    {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.AppendLine("DECLARE @applicationId nvarchar(256)");
      stringBuilder.AppendLine("SELECT TOP 1 @applicationId = [ApplicationId] FROM [aspnet_Applications] WHERE [ApplicationName] = 'sitecore'");
      stringBuilder.AppendLine(string.Concat("IF NOT EXISTS (SELECT TOP 1 [RoleId] FROM [aspnet_Roles] WHERE [ApplicationId] = @applicationId AND [RoleName] = '", role.Name, "')"));
      stringBuilder.AppendLine("BEGIN");
      stringBuilder.AppendLine("    INSERT INTO [aspnet_Roles] (ApplicationId, RoleId, RoleName, LoweredRoleName, Description)");
      stringBuilder.AppendLine(string.Concat(new string[] { "    VALUES (@applicationId, NEWID(), '", role.Name, "', LOWER('", role.Name, "'), NULL)" }));
      stringBuilder.AppendLine("END");
      foreach (string membership in role.Membership)
      {
        stringBuilder.AppendLine(string.Concat(new string[] { "IF NOT EXISTS (SELECT TOP 1 * FROM [RolesInRoles] WHERE [MemberRoleName] = '", role.Name, "' AND [TargetRoleName] = '", membership, "')" }));
        stringBuilder.AppendLine("BEGIN");
        stringBuilder.AppendLine("    INSERT INTO [RolesInRoles] (Id, MemberRoleName, TargetRoleName, ApplicationName, Created)");
        stringBuilder.AppendLine(string.Concat(new string[] { "    VALUES (NEWID(), '", role.Name, "', '", membership, "', '', SYSUTCDATETIME())" }));
        stringBuilder.AppendLine("END");
      }
      stringBuilder.AppendLine("GO");
      return stringBuilder.ToString();
    }

    public virtual string GenerateAppendStatements()
    {
      StringBuilder stringBuilder = new StringBuilder();
      this.AddPreprocessStatements(stringBuilder);
      this.AddMergeStatements(stringBuilder);
      this.AddDropTemporaryTablesStatements(stringBuilder);
      stringBuilder.AppendLine("COMMIT TRANSACTION;");
      return stringBuilder.ToString();
    }

    public virtual string GeneratePrependStatements()
    {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.AppendLine("BEGIN TRANSACTION;");
      this.AddCreateTableStatements(stringBuilder);
      return stringBuilder.ToString();
    }

    protected string ScriptItemTableOperations(Item item)
    {
      string str = string.Concat("i", item.Database, item.Id);
      if (this.processedItems.ContainsKey(str))
      {
        return string.Empty;
      }
      this.processedItems[str] = null;
      return string.Concat(new string[] { "\r\nINSERT INTO #Items (ID, Name, TemplateID, MasterID, ParentID, Created, Updated)\r\n    VALUES ('", item.Id, "', ", FormatValue(item.Name), ", '", item.TemplateId, "', '", item.MasterId, "', '", item.ParentId, "', GETUTCDATE(), GETUTCDATE());" });
    }

    protected string ScriptSharedFieldsTableOperations(Item item)
    {
      StringBuilder stringBuilder = new StringBuilder();
      foreach (Field field in
          from f in item.Fields
          where f.FieldType == FieldType.Shared
          select f)
      {
        string str = string.Concat("s", item.Database, item.Id, field.Id);
        if (this.processedItems.ContainsKey(str))
        {
          continue;
        }
        this.processedItems[str] = null;
        stringBuilder.AppendLine("INSERT INTO #SharedFields (ItemId, FieldId, Value, Created, Updated)");
        stringBuilder.AppendLine(string.Concat(new string[] { "    VALUES ('", item.Id, "', '", field.Id, "', ", FormatValue(field.Value), ", GETUTCDATE(), GETUTCDATE());" }));
      }
      return stringBuilder.ToString();
    }
  }
}


text:
PROG_NAME=`basename $0`
PROG_DIR=`dirname $0`
PROG_DIR=`cd "$PROG_DIR" && pwd`
VERSION=1.0.0

## Ensure that pipes report the exit status of the first failed job
set -o pipefail

################################################################################
##
##  Read options
##
################################################################################

while [ "$1" = "-h" ]
do
  if [ "$1" = "-h" ]
  then
    shift
    PRINT_HELP="TRUE"
  fi
done

################################################################################
##
##  Print help
##
################################################################################

if [ "$PRINT_HELP" = "TRUE" -o "$2" = "" ]
then
  echo "Usage: $PROG_NAME <GTF file> <data directory>"
  echo
  exit 0
fi

################################################################################
##
##  Read arguments
##
################################################################################

INPUT_GTF_FILE_PATH=$1
shift

if [ ! -f "$INPUT_GTF_FILE_PATH" ]
then
  echo "GTF file $INPUT_GTF_FILE_PATH not found ... exiting."
  exit 1
fi

INPUT_GTF_FILE=`basename $INPUT_GTF_FILE_PATH`
INPUT_GTF_FILE_BASE=`echo $INPUT_GTF_FILE | sed -e 's/.gz$//' | sed -e 's/.gtf$//'`
INPUT_GTF_FILE_EXT=`echo $INPUT_GTF_FILE | sed -e "s/$INPUT_GTF_FILE_BASE[.]//"`

if [ "$INPUT_GTF_FILE_EXT" = "gtf.gz" ]
then
  echo "Decompressing file $INPUT_GTF_FILE_PATH"
  gunzip $INPUT_GTF_FILE_PATH
  INPUT_GTF_FILE_PATH=`echo $INPUT_GTF_FILE_PATH | sed -e 's/[.]gz$//'`
  INPUT_GTF_FILE=`basename $INPUT_GTF_FILE_PATH`
elif [ "$INPUT_GTF_FILE_EXT" != "gtf" ]
then
  echo "Unknown extension for file $INPUT_GTF_FILE ... exiting."
  exit 1
fi

PROJECT_DATA_DIR=$1
shift

if [ ! -d $PROJECT_DATA_DIR ]
then
  echo "Creating directory $PROJECT_DATA_DIR"
  mkdir -p $PROJECT_DATA_DIR
fi

if [ ! -d $PROJECT_DATA_DIR/bin ]
then
  mkdir $PROJECT_DATA_DIR/bin
fi

GENE_MODEL_PREFIX="$INPUT_GTF_FILE_BASE"

echo "export FILE_BASE=$INPUT_GTF_FILE_BASE"  > $PROJECT_DATA_DIR/bin/setup.sh
echo "export READ_LENGTH=0"                  >> $PROJECT_DATA_DIR/bin/setup.sh
echo "export RADIUS=0"                       >> $PROJECT_DATA_DIR/bin/setup.sh
echo "export PAIRED_END=TRUE"                >> $PROJECT_DATA_DIR/bin/setup.sh
echo "export STRAND_SPECIFIC=FALSE"          >> $PROJECT_DATA_DIR/bin/setup.sh
echo "export STRAND_SPECIFIC_DIRECTION=none" >> $PROJECT_DATA_DIR/bin/setup.sh

chmod a+x $PROJECT_DATA_DIR/bin/setup.sh

R_EXE=`which R`
if [ ! -f "$R_EXE" ]
then
  echo
  echo 'R not found. Please make sure that R is available ... exiting'
  exit 1
fi

PYTHON_EXE=`which python`
if [ ! -f "$PYTHON_EXE" ]
then
  echo
  echo 'python not found. Please make sure that python is available ... exiting'
  exit 1
fi

################################################################################
##
##  Set directories
##
################################################################################

PROJECT_DIR=`dirname $PROG_DIR`

if [ ! -d $PROJECT_DATA_DIR ]
then
  echo "Creating directory $PROJECT_DATA_DIR"
  mkdir $PROJECT_DATA_DIR
fi

PROJECT_GTF_DIR=$PROJECT_DATA_DIR/gtf-files
if [ ! -d $PROJECT_GTF_DIR ]
then
  echo "Directory $PROJECT_GTF_DIR does not exist ... creating"
  mkdir $PROJECT_GTF_DIR
fi

PROJECT_BED_DIR=$PROJECT_DATA_DIR/bed-files
if [ ! -d $PROJECT_BED_DIR ]
then
  echo "Directory $PROJECT_BED_DIR does not exist ... creating"
  mkdir $PROJECT_BED_DIR
fi

PROJECT_MAP_DIR=$PROJECT_DATA_DIR/map-files
if [ ! -d $PROJECT_MAP_DIR ]
then
  echo "Directory $PROJECT_MAP_DIR does not exist ... creating"
  mkdir $PROJECT_MAP_DIR
fi

################################################################################
##
##
##  Create the reference files
##
##
################################################################################

SCRIPTS_DIR=$PROG_DIR/util-scripts

################################################################################
##
## Add exon_id field to GTF file
##
################################################################################

echo "Adding exon ids to GTF file"
GTF_FILE=$PROJECT_GTF_DIR/$GENE_MODEL_PREFIX.gtf
$SCRIPTS_DIR/addExonIdGtf.py -g $INPUT_GTF_FILE_PATH -o $GTF_FILE
if [ $? -ne 0 ]
then
  echo "Problem with addExonIdGtf.py -g $INPUT_GTF_FILE_PATH -o $GTF_FILE ... exiting"
  exit 1
fi

################################################################################
##
## Compute chromosome names
##
################################################################################

SORT_TEMP_DIR=$PROJECT_DATA_DIR/.temp
if [ ! -d $SORT_TEMP_DIR ]
then
  mkdir $SORT_TEMP_DIR
fi

cut -f 1 $GTF_FILE | sed -e 's/^/#/' | sed -e 's/$/#/' | sort -u -T $SORT_TEMP_DIR > $PROJECT_GTF_DIR/$GENE_MODEL_PREFIX-chromosomes.txt
if [ $? -ne 0 ]
then
  echo "Problem with cut -f 1 $GTF_FILE | sort -u > $PROJECT_GTF_DIR/$GENE_MODEL_PREFIX-chromosomes.txt ... exiting."
  rm -r $SORT_TEMP_DIR
  exit 1
fi

rm -r $SORT_TEMP_DIR

################################################################################
##
## Create file with mapping of junction ids to exons (junction ids are realized as the combination of two exons)
##
################################################################################

echo "Creating junction - exon mapping file - this can take a while"
export GZIPPED_JUNCTION_EXON_MAP_FILE=$PROJECT_MAP_DIR/${GENE_MODEL_PREFIX}_junction_exon.map.gz

if [ ! -f $GZIPPED_JUNCTION_EXON_MAP_FILE ]
then
  JUNCTION_EXON_MAP_FILE=$PROJECT_MAP_DIR/${GENE_MODEL_PREFIX}_junction_exon.map
  if [ ! -f $JUNCTION_EXON_MAP_FILE ]
  then
    export EXON_PIPELINE_DIR=$SCRIPTS_DIR
    export GTF_FILE
    export JUNCTION_EXON_MAP_FILE
    $R_EXE --vanilla --slave < $SCRIPTS_DIR/R/create-junction-exon-map-file.R
    if [ $? -ne 0 ]
    then
      if [ -f $JUNCTION_EXON_MAP_FILE ]
      then
        rm $JUNCTION_EXON_MAP_FILE
      fi
      echo "Problem with create-junction-exon-map-file.R ... exiting"
      exit 1
    fi
  fi

  echo "Compressing file junction - exon mapping file $JUNCTION_EXON_MAP_FILE"
  gzip -f $JUNCTION_EXON_MAP_FILE
fi

################################################################################
##
## Create the files with the mappings of GTF exon ids to EQP exon ids, the file with the mappings
## of EQP exon ids to gene ids, and the BED file with the genomic coordinates of the exons.
##
################################################################################

EXON_EXON_MAP_FILE=$PROJECT_MAP_DIR/${GENE_MODEL_PREFIX}_exon_exon.map
EXON_GENE_MAP_FILE=$PROJECT_MAP_DIR/${GENE_MODEL_PREFIX}_exon_gene.map
EXON_BED_FILE=$PROJECT_BED_DIR/${GENE_MODEL_PREFIX}_genome_exons.bed
echo "Creating exon - exon map file $EXON_EXON_MAP_FILE"
$SCRIPTS_DIR/createExonExonMapFile.py -g $EXON_GENE_MAP_FILE -b $EXON_BED_FILE $GTF_FILE $EXON_EXON_MAP_FILE
if [ $? -ne 0 ]
then
  echo "Problem with createExonExonMapFile.py -g $EXON_GENE_MAP_FILE -b $EXON_BED_FILE $GTF_FILE"
  echo " $EXON_EXON_MAP_FILE ... exiting"
  exit 1
fi

################################################################################
##
## Create file with mapping of EQP exon ids to junctions
##
################################################################################

GZIPPED_EXON_JUNCTION_MAP_FILE=$PROJECT_MAP_DIR/${GENE_MODEL_PREFIX}_exon_junction.map.gz
echo "Creating exon - junction map file $EXON_JUNCTION_MAP_FILE"
## The option -w switches on warning messages
$SCRIPTS_DIR/createExonJunctionMapFile.py -w -A -e $EXON_EXON_MAP_FILE -j $GZIPPED_JUNCTION_EXON_MAP_FILE -o $GZIPPED_EXON_JUNCTION_MAP_FILE
if [ $? -ne 0 ]
then
  echo "Problem with createExonJunctionMapFile.py -w -e $EXON_EXON_MAP_FILE -j $GZIPPED_JUNCTION_EXON_MAP_FILE -o $GZIPPED_EXON_JUNCTION_MAP_FILE"
  echo "   ... exiting"
  exit 1
fi

echo "EQP setup successfully completed."
exit 0


text:
class AddAttachmentImageToProject < ActiveRecord::Migration
  def self.up
    change_table :projects do |t|
      t.has_attached_file :image
    end
  end

  def self.down
    drop_attached_file :projects, :image
  end
end


text:
basedir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source /home/jenkins-slave/runs/devstack_params.$ZUUL_UUID.txt
source /home/jenkins-slave/tools/keystonerc_admin
source $basedir/library.sh

set +e

if [ "$IS_DEBUG_JOB" != "yes" ]
    then
        jen_date=$(date +%d/%m/%Y-%H:%M:%S)
        echo "Detaching and cleaning Hyper-V node 1"
        teardown_hyperv $hyperv01 $WIN_USER $WIN_PASS
        echo "$jen_date;$ZUUL_PROJECT;$ZUUL_BRANCH;$ZUUL_CHANGE;$ZUUL_PATCHSET;$hyperv01;FREE" >> /home/jenkins-slave/hypervnodes.log

        jen_date=$(date +%d/%m/%Y-%H:%M:%S)
        echo "Detaching and cleaning Hyper-V node 2"
        teardown_hyperv $hyperv02 $WIN_USER $WIN_PASS
        echo "$jen_date;$ZUUL_PROJECT;$ZUUL_BRANCH;$ZUUL_CHANGE;$ZUUL_PATCHSET;$hyperv02;FREE" >> /home/jenkins-slave/hypervnodes.log

        echo "Removing devstack VM"
        nova delete "$VMID"
        $basedir/../vlan_allocation.py -r $VMID

        rm -f /home/jenkins-slave/runs/devstack_params.$ZUUL_UUID.txt
fi

set -e


text:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

    <display-name>amap_client</display-name>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/applicationContext*.xml,/WEB-INF/classes/*_dao.xml,</param-value>
    </context-param>

    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <filter>
        <filter-name>encodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
        <init-param>
            <param-name>forceEncoding</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>encodingFilter</filter-name>
        <url-pattern>*.do</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>encodingFilter</filter-name>
        <url-pattern>*.html</url-pattern>
    </filter-mapping>

    <servlet>
        <servlet-name>amapDispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>amapDispatcher</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
        <welcome-file>/index.jsp</welcome-file>
    </welcome-file-list>
</web-app>


text:
function [res] = porcentajeCorrectos2(h, y)
 [val, pos] = max(h); # El maximo de los reconocedores sera el numero que predice
 comp = y' == pos;
 res = sum(comp) / columns(comp) * 100; # Calculo el porcentaje de clasificados correctamente
endfunction


text:
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dal_Individual_Delete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[dal_Individual_Delete]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[dal_Individual_Delete]
	@Id int
AS
BEGIN
    -- Statements for procedure here
	DELETE FROM [dbo].[Individual]
	WHERE
		[Id] = @Id
END
GO


text:
@interface MyRuntimeBlock : NSObject

@end


text:
using System;

namespace L4p.Common.Loggers
{
    public class NullLogFile : ILogFile
    {
        ILogFile ILogFile.Error(string msg, params object[] args) { return this; }
        ILogFile ILogFile.Error(Exception ex) { return this; }
        ILogFile ILogFile.Error(Exception ex, string msg, params object[] args) { return this; }
        ILogFile ILogFile.Warn(string msg, params object[] args) { return this; }
        ILogFile ILogFile.Warn(Exception ex, string msg, params object[] args) { return this; }
        ILogFile ILogFile.Info(string msg, params object[] args) { return this; }
        ILogFile ILogFile.Trace(string msg, params object[] args) { return this; }
        ILogFile ILogFile.NewFile() { return this; }
        string ILogFile.Name {get { return String.Empty; } }
        string ILogFile.Path { get { return String.Empty; } }
        bool ILogFile.TraceOn { get; set; }
    }

    public static class NullLogFileWrapper
    {
        public static ILogFile WrapIfNull(this ILogFile log)
        {
            return
                log ?? LogFile.Null;
        }
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Browsio.UnitTest
{
    using System.Web.Mvc;
    using Browsio.Controllers;
    using Browsio.Domain;
    using Incoding.CQRS;
    using Incoding.MSpecContrib;
    using Machine.Specifications;

    [Subject(typeof(AccountController))]
    public class When_account_controller_post_change_password_success
    {
        #region Establish value

        static MockController<AccountController> mockController;

        static ExistUserByTokenQuery query;

        static ChangeUserPasswordCommand command;

        static ActionResult result;

        #endregion

        Establish establish = () =>
        {

            command = Pleasure.Generator.Invent<ChangeUserPasswordCommand>();
            mockController = MockController<AccountController>
                    .When();

        };

        Because of = () => result = mockController.Original.ChangePassword(command);

        It should_be_push = () => mockController.ShouldBePush(command);

        It should_be_redirect = () => result.ShouldBeRedirectToAction<AccountController>(r => r.ChangePasswordByEmailSuccess());
    }
}


text:
package org.openeos.usertask.ui.internal.notification;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.PropertyUtils;
import org.osgi.service.blueprint.container.BlueprintContainer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.openeos.services.ui.notifications.Notification;
import org.openeos.services.ui.notifications.NotificationManager;

public class UsertaskNotificationFactoryBlueprint implements UsertaskNotificationFactory {

	private static final Logger LOG = LoggerFactory.getLogger(UsertaskNotificationFactoryBlueprint.class);

	private BlueprintContainer blueprintContainer;
	private String beanName;

	public UsertaskNotificationFactoryBlueprint(BlueprintContainer blueprintContainer, String beanName) {
		this.blueprintContainer = blueprintContainer;
		this.beanName = beanName;
	}

	@Override
	public Notification createUsertaskNotification(NotificationManager notificationManager) {
		Notification notification = (Notification) blueprintContainer.getComponentInstance(beanName);
		try {
			PropertyUtils.setProperty(notification, "notificationManager", notificationManager);
		} catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
			LOG.warn("Impossible set notification manager to notification object", e);
		}
		return notification;

	}

}


text:
<?xml version="1.0" encoding="iso-8859-1"?>
<!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/html; charset=iso-8859-1" />
  <title>WS02 WSF WSDL MODE MANUAL</title>
  <link href="style/api_style.css" rel="stylesheet" type="text/css"
  media="all" />
  <link href="style/api_style.css" media="all" rel="stylesheet"
  type="text/css" />

10. Using WSDL

In the WSDL mode, by providing a WSDL file, you can invoke a service or
provide a service, without having to construct the payload manually. Few
simple steps are required to configure either the client or the service to
use the WSDL mode.WSO2
    WSF/Ruby supports both WSDL 1.1 and WSDL 2.0 in WSDL mode.

10.1. Writing a Simple Client to Use the WSDL Mode

    There are two WSDL(WSDL 1.1 and WSDL 2.0) files provided in the samples\wsdl_mode folder and sample_wsdl_11.wsdl will be
used for the example in this manual. Please have a look at the samples\wsdl_mode\sample_wsdl_11.wsdl.

1.create a WSClient object as follows

 client = WSClient.new({"wsdl"=>"sample_wsdl_11.wsdl"})

 If the service endpoint is different from the location which is defined in the WSDL then you can specify it as
 client = WSClient.new({"wsdl"=>"sample_wsdl_11.wsdl",
			    "to" => "http://tempuri.org"})

2.obtain a WSProxy object from the WSClient as follows:

proxy = client.get_proxy

Now you can call any operation defined in the WSDL. For example,you can invoke the
         QueryPurchaseOrder operation defined in the wsdl, as follows.

 return_value = proxy.QueryPurchaseOrder(input);

The arguments  for the function will be either an
    object defined in a hash of arguments which can be constructed in the following two ways. First you should have understood the values
    that should be pass to the input as defined in the schema in WSDL. You should pass input and output parameters to the function in exactly the same order it is defined
    in schema.
First we will have a look at the schema for the input message.
   <xsd:element name="orderInfo">
		<xsd:complexType>
		    <xsd:sequence>
				<xsd:element name="productName" type="xsd:string"></xsd:element>
				<xsd:element name="quantity" type="xsd:float"></xsd:element>
				<xsd:element name="date" type="xsd:dateTime"></xsd:element>
				<xsd:element name="orderNo" type="xsd:int"></xsd:element>
			</xsd:sequence>
		</xsd:complexType>
  </xsd:element>

Hash of arguments
As you can see, the input message element of the operation QueryPurchaseOrder
    in WSDL , is OrderInfo which is a complex type defined in the schema. The complex type OrderInfo has four elements. So the array that you have to construct will be as follows.

input_hash ={"productName" => "Testing",
    		"quantity" => 234,
    		"date" => "2009.12.31",
   		 "orderNo" => 345}

Here the key of the hash will be the element name of the complex type and the user should provide the appropriate value for the hash. If the type of the element is another complex type, there should be another array instead of the value.
As an example, imagine if the quantity element's type is another complex type defined in the schema as follows.

    <xsd:element name="orderInfo">
        <xsd:complexType>
           <xsd:sequence>
               <xsd:element name="productName" type="xsd:string"></xsd:element>
               <xsd:element name="quantity" type="tns:quantityType"></xsd:element>
               <xsd:element name="date" type="xsd:dateTime"></xsd:element>
               <xsd:element name="orderNo" type="xsd:int"></xsd:element>
              </xsd:sequence>
          </xsd:complexType>
        </xsd:element>

        <xsd:element name="quantityType">
            <xsd:complexType>
	<xsd:sequence>
            	 <xsd:element name="amount" type="xsd:int"></xsd:element>
            	 <xsd:element name="weight_kg" type="xsd:float"></xsd:element>
	</xsd:sequence>
            </xsd:complexType>
         </xsd:element>

Now the array that you should create will be,

quantity_hash = {"amount" => 2300,
 	           "weight_kg" => 203443}
input_hash ={"productName" => "Testing",
		 "quantity" => quantity_hash,
		"date" => "2009.12.31",
		"orderNo" => 345}

After creating the array, pass it to the operation that you are going to invoke.

    proxy.QueryPurchaseOrder(input_hash);

Since you have passed the array type arrguments to the function, the return value will also be an associative array. The schema
    for the return message in the sample wsdl is as follows.
            	<xsd:element name="orderDetails">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="shipTo" type="tns:address"> </xsd:element>
				<xsd:element name="billTo" type="tns:address"></xsd:element>
				<xsd:element name="product" type="tns:orderInfo"></xsd:element>
			</xsd:sequence>
		    </xsd:complexType>
		</xsd:element>

        <xsd:complexType name="address">
            	<xsd:sequence>
            		<xsd:element name="name" type="xsd:string"></xsd:element>
            		<xsd:element name="street" type="xsd:string"></xsd:element>
            		<xsd:element name="city" type="xsd:string"></xsd:element>
            		<xsd:element name="state" type="xsd:string"></xsd:element>
            		<xsd:element name="zip" type="xsd:decimal"></xsd:element>
            	</xsd:sequence>
        </xsd:complexType>

         <xsd:complexType name="orderInfo">
            	<xsd:sequence>
            		<xsd:element name="productId" type="xsd:int"></xsd:element>
            		<xsd:element name="shippingDate" type="xsd:dateTime"></xsd:element>
            		<xsd:element name="status" type="xsd:boolean"></xsd:element>
            	</xsd:sequence>
         </xsd:complexType>

So the returned array will be of the same structure
    that we created for the input array. The returned hash has three elements shipTo,
    billTo and product. Since all of these elements are complex types, there should be a hash for the corresponding elements. Now the return array becomes,

return_hash = proxy.QueryPurchaseOrder(input_hash);

return_hash =  {"orderDetails = {"shipTo" => ship_to_hash,
    		                 "billTo" => bill_to_hash,
    		                 "product" => order_info_hash}};

ship_to_hash = {"name" => "Jane Smith",
		"street" => "YorkStreet",
		"city" => "colombo",
		"state" => "Sri Lanka" ,
		"zip" => 32343}

order_info_hash = {"productId" => 2345,
		"shippingDate" => "2008.01.01" ,
		"status" => true};

This same array structure applies for bill_to_hash as well.

10.2. Writing a Simple Service to Use the WSDL Mode

We will implement a service to accept the request sent by the above client. First write a function corresponding to the QueryPurchaseOrder operation defined in the WSDL.

def QueryPurchaseOrderFunction(input_hash)
    return return_hash;
end

The return hash should be created as the same way it is created in client side.
ship_to_hash = {"name" => "Jane Smith",
                         "street" => "YorkStreet",
                         "city" => "colombo",
                         "state" => "Sri Lanka" ,
                         "zip" => 32343}
bill_to_hash = {"name" => "John Smith",
                       "street" => "Orange Drive",
                       "city" => "Orlando",
                       "state" => "Florida" ,
                       "zip" => 32837}

order_info_hash = {"productId" => 2345,
                             "shippingDate" => "2008.01.01" ,
                             "status" => true};

return_hash = {"orderDetails = {"shipTo" => ship_to_hash,
                                               "billTo" => bill_to_hash,
                                               "product" => order_info_hash}};

Now we can map this function to the QueryPurchaseOrderFunction operation as follows.

 operations = {"QueryPurchaseOrder"=>"QueryPurchaseOrderFunction"}
 op_params = {"QueryPurchaseOrderFunction"=>"MIXED"}

Here we are indicating to the service that the QueryPurchaseOrderFunction is not a function that accepts a WSMessage instance as the sole argument, but a function with mixed arguments.

service = WSService.new({"wsdl"=>"sample_wsdl_11.wsdl",
                                        "operations" => operations,
                                        "op_params"=>op_params})
service->reply(request, response);


text:
<?php

namespace pedroac\url\normalization\rule;

use PHPUnit\Framework\TestCase;
use pedroac\url\URL;

class ReplaceSchemesRuleTest extends TestCase
{
    /**
     * @covers pedroac\url\normalization\rule\ReplaceSchemesRule::apply
     * @covers pedroac\url\normalization\rule\ReplaceSchemesRule::__construct
     */
    public function testApply()
    {
        $rule = new ReplaceSchemesRule;

        $components = (new URL('http://test.com/path'))->parse()->toComponents();
        $rule->apply($components);
        $this->assertEquals('https://test.com/path', (string)$components);
    }
}


text:
<?php

 //glyphicon glyphicon-?tion-sign

// Primary Modal
echo '
'; // aria-labelledby="shareprints_mce_modal_title"
	echo '
';
		echo '
';

			// Modal Header
			echo '
';
				echo '
'.__('SharePrints', 'shareprints').'
';
			echo '
';

			// Modal Body
			echo '
'; //row

				// Modal Tabs
				echo '
';
					echo '
';
						echo '
'.__('Gallery Select', 'shareprints').'
';
						echo '
'.__('Gallery Settings', 'shareprints').'
';
						echo '
'.__('Lightbox Settings', 'shareprints').'
';
						echo '
'.__('Save / Load', 'shareprints').'
';
					echo '
';
				echo '
'; // modal tabs

				// Modal Tab Content
				echo '
';

					// Alert Holder
					echo '

';

					// Gallery Select
					echo '
';

						// Existing Galleries
						echo '
';
							echo ''.__('All Galleries', 'shareprints').'';
							echo '
';
								echo '<select id="gallery_id" name="gallery_id" class="form-control" size="7" data-error="'.__('No gallery selected', 'shareprints').'">';
									$args = array( 'post_type' => 'shareprints', 'posts_per_page'=>-1 );
									$shareprints = get_posts($args);
									foreach($shareprints as $shareprint){
										echo '<option value="'.$shareprint->ID.'">'.$shareprint->post_title.'</option>';
									}
								echo '</select>';

								echo '
';
									echo ''.__('Add New Gallery','shareprints').'';
									echo ''.__('Edit Gallery','shareprints').'';
									echo ''.__('Move to Trash','shareprints').'';
								echo '
';

							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
'; // Existing Galleries

					echo '
'; // gallery select

					// Gallery Options
					echo '
';

						// GALLERY TYPE
						echo '
';
							echo ''.__('Gallery Type', 'shareprints').'';
							echo '
';
								echo '<select id="gallery_type" name="gallery_type" class="form-control">';
									$registered_galleries = apply_filters('shareprints/registered_galleries', array());
									foreach($registered_galleries as $k => $v){
										echo '<option value="'.$k.'">'.$v.'</option>';
									}
								echo '</select>';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// GALLERY POSITION
						echo '
';
							echo ''.__('Gallery Position', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="radio" name="gallery_position" id="gallery_position-pos_left" class="form-control" value="pos_left">'.__('Left', 'shareprints').'';
									echo '<input type="radio" name="gallery_position" id="gallery_position-pos_center" class="form-control" value="pos_center" checked="checked">'.__('Center', 'shareprints').'';
									echo '<input type="radio" name="gallery_position" id="gallery_position-pos_right" class="form-control" value="pos_right">'.__('Right', 'shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// GALLERY WIDTH
						echo '
';
							echo ''.__('Gallery Width (%)', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_20" value="width_20">20';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_30" value="width_30">30';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_40" value="width_40">40';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_50" value="width_50">50';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_60" value="width_60">60';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_70" value="width_70">70';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_80" value="width_80">80';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_90" value="width_90">90';
									echo '<input type="radio" class="form-control" name="gallery_width" id="gallery_width-width_100" value="width_100" checked="checked">100';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// IMAGE SIZE
						echo '
';
							echo ''.__('Image Size', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="radio" name="image_size" id="image_size-small" class="form-control" value="small" checked="checked">'.__('S', 'shareprints').'';
									echo '<input type="radio" name="image_size" id="image_size-medium" class="form-control" value="medium">'.__('M', 'shareprints').'';
									echo '<input type="radio" name="image_size" id="image_size-large" class="form-control" value="large">'.__('L', 'shareprints').'';
									echo '<input type="radio" name="image_size" id="image_size-xlarge" class="form-control" value="xlarge">'.__('XL', 'shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// IMAGE PADDING
						echo '
';
							echo ''.__('Image Padding', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-0" value="0" checked="checked">'.__('0','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-1" value="1">'.__('1','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-2" value="2">'.__('2','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-3" value="3">'.__('3','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-4" value="4">'.__('4','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-5" value="5">'.__('5','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-6" value="6">'.__('6','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-7" value="7">'.__('7','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-8" value="8">'.__('8','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-9" value="9">'.__('9','shareprints').'';
									echo '<input type="radio" class="form-control" name="image_padding" id="image_padding-10" value="10">'.__('10','shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// COLOR THEME
						echo '
';
							echo ''.__('Color Theme', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="radio" class="form-control" name="theme" id="theme-dark" value="dark" checked="checked">'.__('Dark', 'shareprints').'';
									echo '<input type="radio" class="form-control" name="theme" id="theme-light" value="light">'.__('Light', 'shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

					echo '
'; // GALLERY OPTIONS

					// Lightbox Options
					echo '
';

						// HOVER EFFECT
						echo '
';
							echo ''.__('Hover Effect', 'shareprints').'';
							echo '
';
								echo '<select id="image_hover" name="image_hover" class="form-control">';
									echo '<option value="false">'.__('None','shareprints').'</option>';
									echo '<optgroup label="'.__('Color Effects','shareprints').'">';
										echo '<option value="fadeoutblack">'.__('Fadeout - Black','shareprints').'</option>';
										echo '<option value="fadeoutwhite">'.__('Fadeout - White','shareprints').'</option>';
										echo '<option value="colortobw">'.__('Color - Full to B&W','shareprints').'</option>';
										echo '<option value="bwtocolor">'.__('Color - B&W to Full','shareprints').'</option>';
										echo '<option value="colorfullhalf">'.__('Color - Full to Half','shareprints').'</option>';
										echo '<option value="colorhalffull">'.__('Color - Half to Full','shareprints').'</option>';
										echo '<option value="sepiatocolor">'.__('Sepia to Color','shareprints').'</option>';
										echo '<option value="colortosepia">'.__('Color to Sepia','shareprints').'</option>';
										echo '<option value="invert">'.__('Invert Color','shareprints').'</option>';
										echo '<option value="vintage">'.__('Vintage Camera','shareprints').'</option>';
										echo '<option value="overexpose">'.__('Overexpose','shareprints').'</option>';
										echo '<option value="overexposemore">'.__('Overexpose more','shareprints').'</option>';
										echo '<option value="blur">'.__('Blur','shareprints').'</option>';
										echo '<option value="blurmore">'.__('Blur more','shareprints').'</option>';
									echo '</optgroup>';
									echo '<optgroup label="'.__('Motion Effects','shareprints').'">';
										echo '<option value="popout">'.__('Pop out','shareprints').'</option>';
										echo '<option value="popoutmore">'.__('Pop out more','shareprints').'</option>';
										echo '<option value="tilt">'.__('Tilt','shareprints').'</option>';
										echo '<option value="tiltmore">'.__('Tilt more','shareprints').'</option>';
										echo '<option value="shrink">'.__('Shrink','shareprints').'</option>';
										echo '<option value="shrinkmore">'.__('Shrink more','shareprints').'</option>';
										echo '<option value="zoomin">'.__('Zoom-in','shareprints').'</option>';
										echo '<option value="zoominmore">'.__('Zoom-in more','shareprints').'</option>';
										echo '<option value="zoomout">'.__('Zoom-out','shareprints').'</option>';
										echo '<option value="zoomoutmore">'.__('Zoom-out more','shareprints').'</option>';
									echo '</optgroup>';
								echo '</select>';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// LIGHTBOX TYPE
						echo '
';
							echo ''.__('Lightbox Type', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="radio" class="form-control" name="lightbox_type" id="lightbox_type-slide" value="slide" checked="checked">'.__('Slider', 'shareprints').'';
									echo '<input type="radio" class="form-control" name="lightbox_type" id="lightbox_type-fade" value="fade">'.__('Fader', 'shareprints').'';
									echo '<input type="radio" class="form-control" name="lightbox_type" id="lightbox_type-false" value="false">'.__('Disabled', 'shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// IMAGE INFO
						echo '
';
							echo ''.__('Image Info', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="checkbox" class="form-control" id="titles" name="titles" checked="checked" value="true">'.__('Titles', 'shareprints').'';
									echo '<input type="checkbox" class="form-control" id="captions" name="captions" checked="checked" value="true">'.__('Captions', 'shareprints').'';
									echo '<input type="checkbox" class="form-control" id="descriptions" name="descriptions" checked="checked" value="true">'.__('Descriptions', 'shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// COMMENTS
						echo '
';
							echo ''.__('Image Comments', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="radio" class="form-control" name="comments" id="comments-true" value="true" checked="checked">'.__('Enabled', 'shareprints').'';
									echo '<input type="radio" class="form-control" name="comments" id="comments-false" value="false">'.__('Disabled', 'shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

						// SOCIAL SHARING
						echo '
';
							echo ''.__('Social Sharing', 'shareprints').'';
							echo '
';
								echo '
';
									echo '<input type="radio" class="form-control" name="sharing" id="sharing-true" value="true" checked="checked">'.__('Enabled', 'shareprints').'';
									echo '<input type="radio" class="form-control" name="sharing" id="sharing-false" value="false">'.__('Disabled', 'shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';

					echo '
';// Lightbox Options

					// Save / Load
					echo '
';
						$favorites = get_option( 'shareprints_mce_favorites' ); // delete_option( 'shareprints_mce_favorites' ); // testing
						echo '
';

							echo ''.__('Save Settings', 'shareprints').'';

							echo '
';
								echo '
';
									echo '<input type="text" id="save_name" name="save_name" class="form-control" placeholder="'.__('Enter settings name here', 'shareprints').'" data-error="'.__('Enter settings name', 'shareprints').'">';
									echo '';
										echo '<button id="sp_save" class="btn btn-default" type="button">'.__('Save Settings', 'shareprints').'</button>';
									echo '';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';
						echo '
';
							echo ''.__('Load Settings', 'shareprints').'';
							echo '
';
								echo '<select id="saved_settings" class="form-control" size="7" data-success="'.__('Saved settings successfully loaded.', 'shareprints').'" data-error="'.__('No settings selected', 'shareprints').'">';
									if($favorites){
										foreach($favorites as $k => $v){
											echo '<option value="'.$k.'" data-values="'.htmlspecialchars(json_encode($v), ENT_QUOTES, get_bloginfo( 'charset' )).'">'.stripslashes($v['save_name']).'</option>';
										}
									}
								echo '</select>';
								echo '
';
									echo ''.__('Load Settings','shareprints').'';
									echo ''.__('Delete Settings','shareprints').'';
								echo '
';
							echo '
';
							echo '
';
								echo '?';
							echo '
';
						echo '
';
					echo '
';// Save / Load

				echo '
'; // Modal Tab Content

			echo '
'; // modal body

			// Modal Footer
			echo '
';
				echo '<button id="sp_cancel" type="button" class="sp_cancel btn btn-default">'.__('Cancel', 'shareprints').'</button>';
				echo '<button id="sp_submit" type="button" class="btn btn-primary">'.__('Insert Gallery', 'shareprints').'</button>';
				echo '<button id="sp_update" type="button" class="btn btn-primary" style="display:none;">'.__('Update Gallery', 'shareprints').'</button>';
			echo '
';

 		echo '
';
	echo '
';
echo '
';

// Secondary Modal
echo '
';// aria-labelledby="shareprints_gallery_editor_title"
	echo '
';
		echo '
';

			// Modal Header
			echo '
';
				echo '
'.__('SharePrints - Add New Gallery', 'shareprints').'
';
			echo '
';

			// Modal Body
			echo '

';// Modal Body

			// Modal Footer
			echo '
';
				echo '

';
				echo '<button id="sp_cancel_gallery" type="button" class="sp_cancel_gallery btn btn-default">'.__('Cancel', 'shareprints').'</button>';
				echo '<button id="sp_publish_gallery" type="button" class="btn btn-primary">'.__('Publish Gallery', 'shareprints').'</button>';
				echo '<button id="sp_update_gallery" type="button" class="btn btn-primary" style="display:none;">'.__('Update Gallery', 'shareprints').'</button>';
			echo '
';

		echo '
';
	echo '
';
echo '
';


text:
class PriceBeforeEr < ActiveRecord::Base
	belongs_to :ereport
	belongs_to :stock
	serialize :quote, Array

	validates :quote, presence: true
	validates :ereport_id, uniqueness: true
end


text:
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
// Original code is licensed as follows:

#include "xfa/src/fxbarcode/barcode.h"
#include "BC_DataMatrixVersion.h"
#include "BC_DataMatrixDataBlock.h"
CBC_DataMatrixDataBlock::~CBC_DataMatrixDataBlock() {}
CBC_DataMatrixDataBlock::CBC_DataMatrixDataBlock(int32_t numDataCodewords,
                                                 CFX_ByteArray* codewords) {
  m_codewords.Copy(*codewords);
  m_numDataCodewords = numDataCodewords;
}
CFX_PtrArray* CBC_DataMatrixDataBlock::GetDataBlocks(
    CFX_ByteArray* rawCodewords,
    CBC_DataMatrixVersion* version,
    int32_t& e) {
  ECBlocks* ecBlocks = version->GetECBlocks();
  int32_t totalBlocks = 0;
  const CFX_PtrArray& ecBlockArray = ecBlocks->GetECBlocks();
  int32_t i;
  for (i = 0; i < ecBlockArray.GetSize(); i++) {
    totalBlocks += ((ECB*)ecBlockArray[i])->GetCount();
  }
  CBC_AutoPtr<CFX_PtrArray> result(new CFX_PtrArray());
  result->SetSize(totalBlocks);
  int32_t numResultBlocks = 0;
  int32_t j;
  for (j = 0; j < ecBlockArray.GetSize(); j++) {
    for (i = 0; i < ((ECB*)ecBlockArray[j])->GetCount(); i++) {
      int32_t numDataCodewords = ((ECB*)ecBlockArray[j])->GetDataCodewords();
      int32_t numBlockCodewords = ecBlocks->GetECCodewords() + numDataCodewords;
      CFX_ByteArray codewords;
      codewords.SetSize(numBlockCodewords);
      (*result)[numResultBlocks++] =
          new CBC_DataMatrixDataBlock(numDataCodewords, &codewords);
      codewords.SetSize(0);
    }
  }
  int32_t longerBlocksTotalCodewords =
      ((CBC_DataMatrixDataBlock*)(*result)[0])->GetCodewords()->GetSize();
  int32_t longerBlocksNumDataCodewords =
      longerBlocksTotalCodewords - ecBlocks->GetECCodewords();
  int32_t shorterBlocksNumDataCodewords = longerBlocksNumDataCodewords - 1;
  int32_t rawCodewordsOffset = 0;
  for (i = 0; i < shorterBlocksNumDataCodewords; i++) {
    int32_t j;
    for (j = 0; j < numResultBlocks; j++) {
      if (rawCodewordsOffset < rawCodewords->GetSize()) {
        ((CBC_DataMatrixDataBlock*)(*result)[j])
            ->GetCodewords()
            ->
            operator[](i) = (*rawCodewords)[rawCodewordsOffset++];
      }
    }
  }
  FX_BOOL specialVersion = version->GetVersionNumber() == 24;
  int32_t numLongerBlocks = specialVersion ? 8 : numResultBlocks;
  for (j = 0; j < numLongerBlocks; j++) {
    if (rawCodewordsOffset < rawCodewords->GetSize()) {
      ((CBC_DataMatrixDataBlock*)(*result)[j])
          ->GetCodewords()
          ->
          operator[](longerBlocksNumDataCodewords - 1) =
          (*rawCodewords)[rawCodewordsOffset++];
    }
  }
  int32_t max =
      ((CBC_DataMatrixDataBlock*)(*result)[0])->GetCodewords()->GetSize();
  for (i = longerBlocksNumDataCodewords; i < max; i++) {
    int32_t j;
    for (j = 0; j < numResultBlocks; j++) {
      int32_t iOffset = specialVersion && j > 7 ? i - 1 : i;
      if (rawCodewordsOffset < rawCodewords->GetSize()) {
        ((CBC_DataMatrixDataBlock*)(*result)[j])
            ->GetCodewords()
            ->
            operator[](iOffset) = (*rawCodewords)[rawCodewordsOffset++];
      }
    }
  }
  if (rawCodewordsOffset != rawCodewords->GetSize()) {
    e = BCExceptionIllegalArgument;
    return NULL;
  }
  return result.release();
}
int32_t CBC_DataMatrixDataBlock::GetNumDataCodewords() {
  return m_numDataCodewords;
}
CFX_ByteArray* CBC_DataMatrixDataBlock::GetCodewords() {
  return &m_codewords;
}


text:
namespace cavr {

namespace math {

extern template struct vector::vec<int, 2>;
extern template struct vector::vec<int, 3>;
extern template struct vector::vec<int, 4>;
extern template struct vector::vec<float, 2>;
extern template struct vector::vec<float, 3>;
extern template struct vector::vec<float, 4>;
extern template struct vector::vec<double, 2>;
extern template struct vector::vec<double, 3>;
extern template struct vector::vec<double, 4>;

typedef vector::vec<int, 2> vec2i;
typedef vector::vec<int, 3> vec3i;
typedef vector::vec<int, 4> vec4i;
typedef vector::vec<float, 2> vec2f;
typedef vector::vec<float, 3> vec3f;
typedef vector::vec<float, 4> vec4f;
typedef vector::vec<double, 2> vec2d;
typedef vector::vec<double, 3> vec3d;
typedef vector::vec<double, 4> vec4d;

template<typename... U,
         typename T = typename vector::common_type<U...>::type,
         typename =
           typename std::enable_if<vector::dims<U...>::value >= 1>::type>
vector::vec<T, vector::dims<U...>::value> autovec(U&&... u) {
  return vector::vec<T, vector::dims<U...>::value>(std::forward<U>(u)...);
}

} // namespace math

} // namespace cavr


text:
#include <aws/glue/model/TransformStatusType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>

using namespace Aws::Utils;

namespace Aws
{
  namespace Glue
  {
    namespace Model
    {
      namespace TransformStatusTypeMapper
      {

        static const int NOT_READY_HASH = HashingUtils::HashString("NOT_READY");
        static const int READY_HASH = HashingUtils::HashString("READY");
        static const int DELETING_HASH = HashingUtils::HashString("DELETING");

        TransformStatusType GetTransformStatusTypeForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == NOT_READY_HASH)
          {
            return TransformStatusType::NOT_READY;
          }
          else if (hashCode == READY_HASH)
          {
            return TransformStatusType::READY;
          }
          else if (hashCode == DELETING_HASH)
          {
            return TransformStatusType::DELETING;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<TransformStatusType>(hashCode);
          }

          return TransformStatusType::NOT_SET;
        }

        Aws::String GetNameForTransformStatusType(TransformStatusType enumValue)
        {
          switch(enumValue)
          {
          case TransformStatusType::NOT_READY:
            return "NOT_READY";
          case TransformStatusType::READY:
            return "READY";
          case TransformStatusType::DELETING:
            return "DELETING";
          default:
            EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
            if(overflowContainer)
            {
              return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
            }

            return {};
          }
        }

      } // namespace TransformStatusTypeMapper
    } // namespace Model
  } // namespace Glue
} // namespace Aws


text:
import logging
from pyvisdk.exceptions import InvalidArgumentError

########################################
# Automatically generated, do not edit.
########################################

log = logging.getLogger(__name__)

def FailoverLevelRestored(vim, *args, **kwargs):
    '''This event records that the amount of cluster resources has increased and is
    now sufficient to satisfy the configured HA failover level.'''

    obj = vim.client.factory.create('ns0:FailoverLevelRestored')

    # do some validation checking...
    if (len(args) + len(kwargs)) < 4:
        raise IndexError('Expected at least 5 arguments got: %d' % len(args))

    required = [ 'chainId', 'createdTime', 'key', 'userName' ]
    optional = [ 'changeTag', 'computeResource', 'datacenter', 'ds', 'dvs',
        'fullFormattedMessage', 'host', 'net', 'vm', 'dynamicProperty', 'dynamicType' ]

    for name, arg in zip(required+optional, args):
        setattr(obj, name, arg)

    for name, value in kwargs.items():
        if name in required + optional:
            setattr(obj, name, value)
        else:
            raise InvalidArgumentError("Invalid argument: %s.  Expected one of %s" % (name, ", ".join(required + optional)))

    return obj


text:
namespace ServiceStack.Northwind.ServiceModel.Types
{
	using System.Runtime.Serialization;

	[DataContract]
	public class EmployeeTerritory
	{
		public string Id
		{
			get { return this.EmployeeId + "/" + this.TerritoryId; }
		}

		[DataMember]
		public int EmployeeId { get; set; }

		[DataMember]
		public string TerritoryId { get; set; }
	}
}


text:
describe('view test', function () {
    var Grape = require('grape');

    var game = {
        getScreenWidth: function () {
            return 320;
        },
        getScreenHeight: function () {
            return 240;
        },
        getScreen: function () {
            return this._screen;
        },
        _screen: document.createElement('div'),
        input: {
            mouse: {
                x: 0,
                y: 0
            }
        }
    };

    describe('abstract view test', function () {
        var View = Grape.AbstractView.extend({
            init: function () {
                this.count = 0;
            },
            'override createDom': function () {
                return document.createElement('div');
            },
            'event renderLayer': function () {
                this.el.innerHTML = 'COUNT:' + this.count;
                this.count++;
            }
        });

        it('should create and display views on the screen', function () {
            var v = new View();
            var layer = new Grape.Layer();
            layer.addView('default', v);
            layer.emit('start', game);
            layer.emit('renderLayer');
            expect(game.getScreen().innerHTML.indexOf('COUNT:0')).not.toBe(-1); //data appears on the screen
            layer.emit('renderLayer');
            expect(game.getScreen().innerHTML.indexOf('COUNT:1')).not.toBe(-1); //data appears on the screen
            layer.emit('stop');
            expect(game.getScreen().innerHTML.indexOf('COUNT:1')).toBe(-1); //teardown
        });

        it('should calculate dynamic properties', function () {
            var v = new View();
            var layer = new Grape.Layer();
            layer.addView(v);
            v.emit('start', game);

            var props = ['left', 'top', 'width', 'height', 'originX', 'originY'];
            var propFn = function (max) {
                return max * 0.4 + 40;
            };
            for (var i = 0; i < props.length; i++) {
                var prop = props[i];
                var getter = 'get' + prop.charAt(0).toUpperCase() + prop.slice(1);
                var hundredPercent;

                switch (prop) {
                    case 'left':
                    case 'width':
                        hundredPercent = game.getScreenWidth();
                        break;
                    case 'top':
                    case 'height':
                        hundredPercent = game.getScreenHeight();
                        break;
                    case 'originX':
                        hundredPercent = v.getWidth();
                        break;
                    case 'originY':
                        hundredPercent = v.getHeight();
                        break;
                }

                v[prop] = 10;
                expect(v[getter]()).toBe(10);
                v[prop] = '20';
                expect(v[getter]()).toBe(20);
                v[prop] = '30% + 30';
                expect(v[getter]()).toBe((hundredPercent * 0.3 + 30) >> 0);

                v[prop] = propFn;
                expect(v[getter]()).toBe((hundredPercent * 0.4 + 40) >> 0);
            }
        });

        it('should work with gui view', function () {
            var screen = document.createElement('div');
            var MyView = Grape.GUIView.extend({
                'event domCreated': function (el) {
                    el.innerHTML = 'test 123';
                }
            });
            var TestScene = Grape.Scene.extend({
                'override initViews': function () {
                    this.addView(new MyView());
                }
            });
            var game = new Grape.Game({initialScene: TestScene, container: screen});
            game.start();
            expect(screen.innerHTML).toContain('test 123');
            game.stop();

        });
    });
});
//todo other view tests


text:
@interface SMPushFromTop : UIStoryboardSegue <SMUnwindSegue>

@end


text:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

namespace HrdLib
{
    internal class HrdGeneratorQueue
    {
        private readonly Queue<Type> _typeQueue = new Queue<Type>();
        private readonly HashSet<Type> _types = new HashSet<Type>();
        private readonly HashSet<Type> _rootTypes = new HashSet<Type>();
        private readonly HashSet<string> _assemblies = new HashSet<string>(StringComparer.InvariantCulture);
        private readonly Dictionary<Type, int> _typeIDMap = new Dictionary<Type, int>();

        private bool _isFirst;
        private int _typeIdentity = 1;

        public bool IsRoot
        {
            get
            {
                var type = CurrentType;
                return type != null && _rootTypes.Contains(type);
            }
        }

        public Type CurrentType { get { return _typeQueue.Count == 0 ? null : _typeQueue.Peek(); } }

        public int CurrentTypeID
        {
            get
            {
                var type = CurrentType;
                int typeID;
                if (type == null || !_typeIDMap.TryGetValue(type, out typeID))
                    typeID = -1;
                return typeID;
            }
        }

        public HrdGeneratorQueue(Type rootType, params Type[] additionalRootTypes)
        {
            if (rootType == null)
                throw new ArgumentNullException("rootType");

            _isFirst = true;

            AddType(rootType, true);
            _rootTypes.Add(rootType);

            if (additionalRootTypes == null || additionalRootTypes.Length == 0)
                return;

            foreach (var additionalType in additionalRootTypes.Where(additionalType => additionalType != null))
            {
                AddType(additionalType, true);

                if (!_rootTypes.Contains(additionalType))
                    _rootTypes.Add(additionalType);
            }
        }

        public int AddType(Type type, bool enqueue)
        {
            if (type == null)
                throw new ArgumentNullException("type");

            int typeID;
            if (!_typeIDMap.TryGetValue(type, out typeID))
            {
                typeID = _typeIdentity++;
                _typeIDMap.Add(type, typeID);
            }

            if (enqueue)
                _typeQueue.Enqueue(type);
            else
                RegisterType(type);

            return typeID;
        }

        public int AddType(Type type)
        {
            return AddType(type, true);
        }

        private void RegisterType(Type type)
        {
            if (_types.Contains(type))
                return;

            _types.Add(type);
            var asmName = type.Assembly.FullName;
            Debug.Assert(asmName != null);
            if (!_assemblies.Contains(asmName))
                _assemblies.Add(asmName);
        }

        public bool MoveNext()
        {
            if (_isFirst)
                _isFirst = false;
            else if (_typeQueue.Count > 0)
                _typeQueue.Dequeue();

            var isMoved = _typeQueue.Count > 0;
            if (isMoved)
            {
                var type = _typeQueue.Peek();
                Debug.Assert(type != null);
                if (_types.Contains(type))
                    return MoveNext();

                RegisterType(type);
            }
            return isMoved;
        }

        public Type[] GetRootTypes()
        {
            return _rootTypes.ToArray();
        }

        public HashSet<string> GetReferencedAssemblies()
        {
            return new HashSet<string>(_assemblies);
        }
    }
}


text:
class RemoveQuestionTypes < ActiveRecord::Migration
  def up
    # add a qtype_name column to the questions table
    add_column :questions, :qtype_name, :string

    # update all questions to store the question type name directly
    execute("UPDATE questions q INNER JOIN question_types qt ON q.question_type_id=qt.id SET q.qtype_name = qt.name")

    # also update all old address questions to just be text questions (the address question is now obsolete)
    execute("UPDATE questions SET qtype_name = 'text' WHERE qtype_name = 'address'")

    # finally drop the old question_type_id foreign key and index
    remove_column :questions, :question_type_id
  end

  def down
  end
end


text:
package eu.cloud4soa.adapter.rest.response;

import java.io.Serializable;

/**
 *
 * @author Denis Neuling (dn@cloudcontrol.de)
 */
public class MonitorDetailResponse extends Response<MonitorDetailResponse> implements Serializable{
	private static final long serialVersionUID = 4692699083699976437L;

	public MonitorDetailResponse(){
	}

	@Override
	public String toString() {
		return "MonitorDetailResponse [Response=" + super.toString() + "]";
	}
}