text:
/**
 \file     TEncSampleAdaptiveOffset.h
 \brief    estimation part of sample adaptive offset class (header)
 */

#ifndef __TENCSAMPLEADAPTIVEOFFSET__
#define __TENCSAMPLEADAPTIVEOFFSET__

#include "TLibCommon/TComSampleAdaptiveOffset.h"
#include "TLibCommon/TComPic.h"

#include "TEncEntropy.h"
#include "TEncSbac.h"
#include "TLibCommon/TComBitCounter.h"

//! \ingroup TLibEncoder
//! \{

// ====================================================================================================================
// Class definition
// ====================================================================================================================

class TEncSampleAdaptiveOffset : public TComSampleAdaptiveOffset
{
private:
  TEncEntropy*      m_pcEntropyCoder;
  TEncSbac***       m_pppcRDSbacCoder;              ///< for CABAC
  TEncSbac*         m_pcRDGoOnSbacCoder;
#if FAST_BIT_EST
  TEncBinCABACCounter*** m_pppcBinCoderCABAC;            ///< temporal CABAC state storage for RD computation
#else
  TEncBinCABAC***   m_pppcBinCoderCABAC;            ///< temporal CABAC state storage for RD computation
#endif

  Int64  ***m_iCount;      //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
  Int64  ***m_iOffset;     //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
  Int64  ***m_iOffsetOrg;  //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
  Int64  ****m_count_PreDblk;      //[LCU][YCbCr][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
  Int64  ****m_offsetOrg_PreDblk;  //[LCU][YCbCr][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
  Int64  **m_iRate;        //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
  Int64  **m_iDist;        //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
  Double **m_dCost;        //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
  Double *m_dCostPartBest; //[MAX_NUM_SAO_PART];
  Int64  *m_iDistOrg;      //[MAX_NUM_SAO_PART];
  Int    *m_iTypePartBest; //[MAX_NUM_SAO_PART];
  Int     m_iOffsetThY;
  Int     m_iOffsetThC;
  Bool    m_bUseSBACRD;
#if SAO_ENCODING_CHOICE
#if SAO_ENCODING_CHOICE_CHROMA
  Double  m_depthSaoRate[2][4];
#else
  Double  m_depth0SaoRate;
#endif
#endif

public:
  TEncSampleAdaptiveOffset         ();
  virtual ~TEncSampleAdaptiveOffset();

  Void startSaoEnc( TComPic* pcPic, TEncEntropy* pcEntropyCoder, TEncSbac*** pppcRDSbacCoder, TEncSbac* pcRDGoOnSbacCoder);
  Void endSaoEnc();
  Void resetStats();
#if SAO_CHROMA_LAMBDA
#if SAO_ENCODING_CHOICE
  Void SAOProcess(SAOParam *pcSaoParam, Double dLambda, Double dLambdaChroma, Int depth);
#else
  Void SAOProcess(SAOParam *pcSaoParam, Double dLambda, Double dLambdaChroma);
#endif
#else
  Void SAOProcess(SAOParam *pcSaoParam, Double dLambda);
#endif

  Void runQuadTreeDecision(SAOQTPart *psQTPart, Int iPartIdx, Double &dCostFinal, Int iMaxLevel, Double dLambda, Int yCbCr);
  Void rdoSaoOnePart(SAOQTPart *psQTPart, Int iPartIdx, Double dLambda, Int yCbCr);

  Void disablePartTree(SAOQTPart *psQTPart, Int iPartIdx);
  Void getSaoStats(SAOQTPart *psQTPart, Int iYCbCr);
  Void calcSaoStatsCu(Int iAddr, Int iPartIdx, Int iYCbCr);
  Void calcSaoStatsBlock( Pel* pRecStart, Pel* pOrgStart, Int stride, Int64** ppStats, Int64** ppCount, UInt width, UInt height, Bool* pbBorderAvail, Int iYCbCr);
  Void calcSaoStatsCuOrg(Int iAddr, Int iPartIdx, Int iYCbCr);
  Void calcSaoStatsCu_BeforeDblk( TComPic* pcPic );
  Void destroyEncBuffer();
  Void createEncBuffer();
  Void assignSaoUnitSyntax(SaoLcuParam* saoLcuParam,  SAOQTPart* saoPart, Bool &oneUnitFlag, Int yCbCr);
  Void checkMerge(SaoLcuParam * lcuParamCurr,SaoLcuParam * lcuParamCheck, Int dir);
#if SAO_ENCODING_CHOICE
  Void rdoSaoUnitAll(SAOParam *saoParam, Double lambda, Double lambdaChroma, Int depth);
#else
  Void rdoSaoUnitAll(SAOParam *saoParam, Double lambda, Double lambdaChroma);
#endif
  Void saoComponentParamDist(Int allowMergeLeft, Int allowMergeUp, SAOParam *saoParam, Int addr, Int addrUp, Int addrLeft, Int yCbCr, Double lambda, SaoLcuParam *compSaoParam, Double *distortion);
  Void sao2ChromaParamDist(Int allowMergeLeft, Int allowMergeUp, SAOParam *saoParam, Int addr, Int addrUp, Int addrLeft, Double lambda, SaoLcuParam *crSaoParam, SaoLcuParam *cbSaoParam, Double *distortion);
  inline Int64 estSaoDist(Int64 count, Int64 offset, Int64 offsetOrg, Int shift);
  inline Int64 estIterOffset(Int typeIdx, Int classIdx, Double lambda, Int64 offsetInput, Int64 count, Int64 offsetOrg, Int shift, Int bitIncrease, Int *currentDistortionTableBo, Double *currentRdCostTableBo, Int offsetTh );
  inline Int64 estSaoTypeDist(Int compIdx, Int typeIdx, Int shift, Double lambda, Int *currentDistortionTableBo, Double *currentRdCostTableBo);
  Void setMaxNumOffsetsPerPic(Int iVal) {m_maxNumOffsetsPerPic = iVal; }
  Int  getMaxNumOffsetsPerPic() {return m_maxNumOffsetsPerPic; }
};

//! \}

#endif


text:
using System.Collections.Generic;
using osu.Game.Audio;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Skinning;

namespace osu.Game.Rulesets.Taiko.Audio
{
    public class DrumSampleMapping
    {
        private readonly ControlPointInfo controlPoints;
        private readonly Dictionary<double, DrumSample> mappings = new Dictionary<double, DrumSample>();

        public readonly List<SkinnableSound> Sounds = new List<SkinnableSound>();

        public DrumSampleMapping(ControlPointInfo controlPoints)
        {
            this.controlPoints = controlPoints;

            IEnumerable<SampleControlPoint> samplePoints;
            if (controlPoints.SamplePoints.Count == 0)
                // Get the default sample point
                samplePoints = new[] { controlPoints.SamplePointAt(double.MinValue) };
            else
                samplePoints = controlPoints.SamplePoints;

            foreach (var s in samplePoints)
            {
                var centre = s.GetSampleInfo();
                var rim = s.GetSampleInfo(SampleInfo.HIT_CLAP);

                // todo: this is ugly
                centre.Namespace = "taiko";
                rim.Namespace = "taiko";

                mappings[s.Time] = new DrumSample
                {
                    Centre = addSound(centre),
                    Rim = addSound(rim)
                };
            }
        }

        private SkinnableSound addSound(SampleInfo sampleInfo)
        {
            var drawable = new SkinnableSound(sampleInfo);
            Sounds.Add(drawable);
            return drawable;
        }

        public DrumSample SampleAt(double time) => mappings[controlPoints.SamplePointAt(time).Time];

        public class DrumSample
        {
            public SkinnableSound Centre;
            public SkinnableSound Rim;
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
from typing import Optional

from ConfigSpace.configuration_space import ConfigurationSpace
from ConfigSpace.hyperparameters import UniformFloatHyperparameter

from autosklearn.askl_typing import FEAT_TYPE_TYPE
from autosklearn.pipeline.components.base import AutoSklearnRegressionAlgorithm
from autosklearn.pipeline.constants import DENSE, PREDICTIONS, UNSIGNED_DATA

class GaussianProcess(AutoSklearnRegressionAlgorithm):
    def __init__(self, alpha, thetaL, thetaU, random_state=None):
        self.alpha = alpha
        self.thetaL = thetaL
        self.thetaU = thetaU
        self.random_state = random_state
        self.estimator = None

    def fit(self, X, y):
        import sklearn.gaussian_process

        self.alpha = float(self.alpha)
        self.thetaL = float(self.thetaL)
        self.thetaU = float(self.thetaU)

        n_features = X.shape[1]
        kernel = sklearn.gaussian_process.kernels.RBF(
            length_scale=[1.0] * n_features,
            length_scale_bounds=[(self.thetaL, self.thetaU)] * n_features,
        )

        # Instanciate a Gaussian Process model
        self.estimator = sklearn.gaussian_process.GaussianProcessRegressor(
            kernel=kernel,
            n_restarts_optimizer=10,
            optimizer="fmin_l_bfgs_b",
            alpha=self.alpha,
            copy_X_train=True,
            random_state=self.random_state,
            normalize_y=True,
        )

        if y.ndim == 2 and y.shape[1] == 1:
            y = y.flatten()

        self.estimator.fit(X, y)

        return self

    def predict(self, X):
        if self.estimator is None:
            raise NotImplementedError
        return self.estimator.predict(X)

    @staticmethod
    def get_properties(dataset_properties=None):
        return {
            "shortname": "GP",
            "name": "Gaussian Process",
            "handles_regression": True,
            "handles_classification": False,
            "handles_multiclass": False,
            "handles_multilabel": False,
            "handles_multioutput": True,
            "is_deterministic": True,
            "input": (DENSE, UNSIGNED_DATA),
            "output": (PREDICTIONS,),
        }

    @staticmethod
    def get_hyperparameter_search_space(
        feat_type: Optional[FEAT_TYPE_TYPE] = None, dataset_properties=None
    ):
        alpha = UniformFloatHyperparameter(
            name="alpha", lower=1e-14, upper=1.0, default_value=1e-8, log=True
        )
        thetaL = UniformFloatHyperparameter(
            name="thetaL", lower=1e-10, upper=1e-3, default_value=1e-6, log=True
        )
        thetaU = UniformFloatHyperparameter(
            name="thetaU", lower=1.0, upper=100000, default_value=100000.0, log=True
        )

        cs = ConfigurationSpace()
        cs.add_hyperparameters([alpha, thetaL, thetaU])
        return cs


text:
<!DOCTYPE html>

	<meta charset="utf-8">
	<title>Comics Bizarros</title>
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width">
	<link href='https://fonts.googleapis.com/css?family=Amatic+SC:700' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" href="css/main.css">
	<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">

"Lory Zombie es nuestra nueva serie, un western postapocaliptico lleno de freaks"

LORY Z #1

Lo que vemos está hecho de los que no vemos. En un futuro próximo los que abrazaron la palabra del verdadero Rey sobreviven al Postapocalipsis Zombie en la nueva y próspera Sandropolis. Pincha en la imagen para conseguir el primer capítulo.

IT HAPPENED IN WHITECHAPEL

Written and drawn by Adrian Fernandez Chamizo. Cover illustration by Eden Herrera. All characters were created by Adrian Fernandez Chamizo except Mister Be Nice which is based on a real person. This is an independent publication of Disappointment Comics, who gives freely distributing the work. It can be downloaded free from this website which is available in English, Asturian, and Spanish. 2012 Mile End, London. UK

UMBRA SUMUS

It's a short story, a 24-page comic book, is about a man's relationship with the occult. Language: Spanish

Download it!

Read it Online!

THE LIMEHOUSE KILLER

It is best to tread carefully through the ports of East End at night, you never know who you can find.

Download it!

Read it Online!

LORY ZOMBIE #2

Si tienes un gusto pésimo para los comics y te has te quedado con ganas de saber que va a ocurrir con Lory estate atento porque pronto saldrá el numero 2, quien dice pronto dice este año, tal vez.

DOUX COMME LÈCHER VELOUR

Una historia muy interesante que mezcla a partes iguales, sueño con consciencia y suspense con violencia en un universo enloquecido donde la magia se funde con la ciencia. Arte de Eden Herrera y guión de Adrián F Chamizo basado en personajes creados por Rubén Menéndez Fdez.

"Damas y Caballos, Gentes y Gentuzas de lo peor"

Serena Gomiero

Ilustradora veneciana afincada en Londres.

Adrián F Chamizo

Guionista y dibujante de tebeos, charlatán y pufista. Mala persona.

Eden Herrera

Artista multidisciplinar. Metida en asuntos filosóficos y mágicos.

"No te guardes nada hoooombreee!!"

					<form method="post" action="sendbymail.php">

NAME

								<input id="nombre" type="text" name="nombre" placeholder="aqui tu nombre" required>

EMAIL

								<input id="email" type="email" name="email" placeholder="aqui tu e-mail" required>

MENSAJE

								<textarea  id="ta" cols="30" name="ta" rows="10" placeholder="aqui tu spam"></textarea>

								<input class="btn btn-primary"  type="submit" value="Enviar" id="mandar">

					</form>

enviado con éxito

							COMIXOLOGY || ISSUU || WORDPRESS

 Todo el contenido de esta web y sus enlaces pertenecen a Comics Bizarros • 2016 • {bien perro code} by padrisimo


text:
var stemmer = require('lib/natural/stemmers/porter_stemmer');

describe('porter_stemmer', function() {
	it('should perform step 1a', function() {
		expect(stemmer.step1a('caresses')).toBe('caress');
		expect(stemmer.step1a('ponies')).toBe('poni');
		expect(stemmer.step1a('ties')).toBe('ti');
		expect(stemmer.step1a('caress')).toBe('caress');
		expect(stemmer.step1a('cats')).toBe('cat');
	 });

	it('should perform step 1b', function() {
		expect(stemmer.step1b('feed')).toBe('feed');
		expect(stemmer.step1b('agreed')).toBe('agree');
		expect(stemmer.step1b('plastered')).toBe('plaster');
		expect(stemmer.step1b('bled')).toBe('bled');
		expect(stemmer.step1b('motoring')).toBe('motor');
		expect(stemmer.step1b('sing')).toBe('sing');
	});

	it('should perform step 1c', function() {
		expect(stemmer.step1c('happy')).toBe('happi');
		expect(stemmer.step1c('sky')).toBe('sky');
	});

	it('should perform step 2', function() {
		expect(stemmer.step2('relational')).toBe('relate');
		expect(stemmer.step2('conditional')).toBe('condition');
		expect(stemmer.step2('rational')).toBe('rational');
		expect(stemmer.step2('valenci')).toBe('valence');
		expect(stemmer.step2('hesitanci')).toBe('hesitance');
		expect(stemmer.step2('digitizer')).toBe('digitize');
		expect(stemmer.step2('conformabli')).toBe('conformable');
		expect(stemmer.step2('radicalli')).toBe('radical');
		expect(stemmer.step2('differentli')).toBe('different');
		expect(stemmer.step2('vileli')).toBe('vile');
		expect(stemmer.step2('analogousli')).toBe('analogous');
		expect(stemmer.step2('vietnamization')).toBe('vietnamize');
		expect(stemmer.step2('predication')).toBe('predicate');
		expect(stemmer.step2('operator')).toBe('operate');
		expect(stemmer.step2('feudalism')).toBe('feudal');
		expect(stemmer.step2('decisiveness')).toBe('decisive');
		expect(stemmer.step2('hopefulness')).toBe('hopeful');
		expect(stemmer.step2('callousness')).toBe('callous');
		expect(stemmer.step2('formaliti')).toBe('formal');
		expect(stemmer.step2('sensitiviti')).toBe('sensitive');
		expect(stemmer.step2('sensibiliti')).toBe('sensible');
	});

	it('should perform step 3', function() {
		expect(stemmer.step3('triplicate')).toBe('triplic');
		expect(stemmer.step3('formative')).toBe('form');
		expect(stemmer.step3('formalize')).toBe('formal');
		expect(stemmer.step3('electriciti')).toBe('electric');
		expect(stemmer.step3('electrical')).toBe('electric');
		expect(stemmer.step3('hopeful')).toBe('hope');
		expect(stemmer.step3('goodness')).toBe('good');
	});

	it('should perform step 4', function() {
		expect(stemmer.step4('revival')).toBe('reviv');
		expect(stemmer.step4('allowance')).toBe('allow');
		expect(stemmer.step4('inference')).toBe('infer');
		expect(stemmer.step4('airliner')).toBe('airlin');
		expect(stemmer.step4('gyroscopic')).toBe('gyroscop');
		expect(stemmer.step4('adjustable')).toBe('adjust');
		expect(stemmer.step4('defensible')).toBe('defens');
		expect(stemmer.step4('irritant')).toBe('irrit');
		expect(stemmer.step4('replacement')).toBe('replac');
		expect(stemmer.step4('adjustment')).toBe('adjust');
		expect(stemmer.step4('dependent')).toBe('depend');
		expect(stemmer.step4('adoption')).toBe('adopt');
		expect(stemmer.step4('homologou')).toBe('homolog');
		expect(stemmer.step4('communism')).toBe('commun');
		expect(stemmer.step4('activate')).toBe('activ');
		expect(stemmer.step4('angulariti')).toBe('angular');
		expect(stemmer.step4('homologous')).toBe('homolog');
		expect(stemmer.step4('effective')).toBe('effect');
		expect(stemmer.step4('bowdlerize')).toBe('bowdler');
	});

	it('should perform step 5a', function() {
		expect(stemmer.step5a('probate')).toBe('probat');
		expect(stemmer.step5a('rate')).toBe('rate');
		expect(stemmer.step5a('cease')).toBe('ceas');
	});

	it('should perform step5b', function() {
		expect(stemmer.step5b('controll')).toBe('control');
		expect(stemmer.step5b('roll')).toBe('roll');
	});

	it('should perform complete stemming', function() {
		expect(stemmer.stem('scoring')).toBe('score');
		expect(stemmer.stem('scored')).toBe('score');
		expect(stemmer.stem('scores')).toBe('score');
		expect(stemmer.stem('score')).toBe('score');
		expect(stemmer.stem('SCORING')).toBe('score');
		expect(stemmer.stem('SCORED')).toBe('score');
		expect(stemmer.stem('SCORES')).toBe('score');
		expect(stemmer.stem('SCORE')).toBe('score');
		expect(stemmer.stem('nationals')).toBe('nation');
		expect(stemmer.stem('doing')).toBe('do');
	});

	it('should tokenize and stem attached', function() {
		stemmer.attach();
		expect('scoring stinks'.tokenizeAndStem()).toEqual(['score', 'stink']);
		expect('SCORING STINKS'.tokenizeAndStem()).toEqual(['score', 'stink']);
	});
});


text:
import {
  FETCH_PATIENTS_SUCCESS,
  FETCH_PATIENTS_ERROR,
  FETCH_PATIENTS_API_START,
  FETCH_PATIENTS_API_DONE,
  FETCH_LANGUAGES_SUCCESS,
  FETCH_LANGUAGES_ERROR,
  FETCH_LANGUAGES_API_START,
  FETCH_LANGUAGES_API_DONE,
  CREATE_PATIENT_SUCCESS,
  CREATE_PATIENT_ERROR,
  CREATE_PATIENT_API_START,
  CREATE_PATIENT_API_DONE
} from "./../actions/actionTypes";

export const initialFetchSucceeded = (state = false, action) => {
  if (action.type === FETCH_PATIENTS_SUCCESS) {
    return true;
  }
  return state;
};

export const createPatientIsLoading = (state = false, action) => {
  switch (action.type) {
    case CREATE_PATIENT_API_START:
      return true;

    case CREATE_PATIENT_API_DONE:
      return false;

    default:
      return state;
  }
};

export const createPatientHasErrored = (state = false, action) => {
  if (action.type === CREATE_PATIENT_ERROR) {
    return true;
  }
  return state;
};

export const patientsIsLoading = (state = false, action) => {
  switch (action.type) {
    case FETCH_PATIENTS_API_START:
      return true;

    case FETCH_PATIENTS_API_DONE:
      return false;

    default:
      return state;
  }
};

export const patientsHasErrored = (state = false, action) => {
  if (action.type === FETCH_PATIENTS_ERROR) {
    return true;
  }
  return state;
};

export const patients = (state = [], action) => {
  switch (action.type) {
    case FETCH_PATIENTS_SUCCESS:
      return action.data;

    case CREATE_PATIENT_SUCCESS:
      return [...state, Object.assign({}, action.data)];

    default:
      return state;
  }
};

export const languagesInitialFetchSucceeded = (state = false, action) => {
  if (action.type === FETCH_LANGUAGES_SUCCESS) {
    return true;
  }
  return state;
};

export const languagesIsLoading = (state = false, action) => {
  switch (action.type) {
    case FETCH_LANGUAGES_API_START:
      return true;

    case FETCH_LANGUAGES_API_DONE:
      return false;

    default:
      return state;
  }
};

export const languagesHasErrored = (state = false, action) => {
  if (action.type === FETCH_LANGUAGES_ERROR) {
    return true;
  }
  return state;
};

export const languages = (state = [], action) => {
  switch (action.type) {
    case FETCH_LANGUAGES_SUCCESS:
      return action.data;

    default:
      return state;
  }
};


text:
The [Resources](https://raku.org/resources/) page on [raku.org](https://raku.org/) contains a 'For Newcomers' section with a selection of useful material to get you up and running.

* [Raku Introduction](http://raku.guide/)
* [Learn Raku in Y minutes](https://learnxinyminutes.com/docs/perl6/)
* [Raku Tutorials](https://github.com/perlpilot/perl6-docs)

## Raku from Other Languages - Nutshell

* [Perl 5](https://docs.raku.org/language/5to6-nutshell)
* [Haskell](https://docs.raku.org/language/haskell-to-p6)
* [Python](https://docs.raku.org/language/py-nutshell)
* [Ruby](https://docs.raku.org/language/rb-nutshell)


text:
package at.or.vogt.oe1downloader.json.bean;

import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "width",
    "hashCode",
    "path"
})
public class Version {

    @JsonProperty("width")
    private Long width;
    @JsonProperty("hashCode")
    private Long hashCode;
    @JsonProperty("path")
    private String path;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();

    /**
     * No args constructor for use in serialization
     *
     */
    public Version() {
    }

    /**
     *
     * @param path
     * @param hashCode
     * @param width
     */
    public Version(Long width, Long hashCode, String path) {
        super();
        this.width = width;
        this.hashCode = hashCode;
        this.path = path;
    }

    @JsonProperty("width")
    public Long getWidth() {
        return width;
    }

    @JsonProperty("width")
    public void setWidth(Long width) {
        this.width = width;
    }

    @JsonProperty("hashCode")
    public Long getHashCode() {
        return hashCode;
    }

    @JsonProperty("hashCode")
    public void setHashCode(Long hashCode) {
        this.hashCode = hashCode;
    }

    @JsonProperty("path")
    public String getPath() {
        return path;
    }

    @JsonProperty("path")
    public void setPath(String path) {
        this.path = path;
    }

    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this).append("width", width).append("hashCode", hashCode).append("path", path).append("additionalProperties", additionalProperties).toString();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(width).append(path).append(additionalProperties).append(hashCode).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof Version) == false) {
            return false;
        }
        Version rhs = ((Version) other);
        return new EqualsBuilder().append(width, rhs.width).append(path, rhs.path).append(additionalProperties, rhs.additionalProperties).append(hashCode, rhs.hashCode).isEquals();
    }

}


text:
<!DOCTYPE html>

      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>CRM Admin Panel</title>

      <link rel="shortcut icon" href="assets/dist/img/ico/favicon.png" type="image/x-icon">

      <link href="assets/plugins/jquery-ui-1.12.1/jquery-ui.min.css" rel="stylesheet" type="text/css"/>

      <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

      <link href="assets/plugins/lobipanel/lobipanel.min.css" rel="stylesheet" type="text/css"/>

      <link href="assets/plugins/pace/flash.css" rel="stylesheet" type="text/css"/>

      <link href="assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

      <link href="assets/pe-icon-7-stroke/css/pe-icon-7-stroke.css" rel="stylesheet" type="text/css"/>

      <link href="assets/themify-icons/themify-icons.css" rel="stylesheet" type="text/css"/>

      <link href="assets/plugins/bootstrap-social/bootstrap-social.css" rel="stylesheet" type="text/css"/>

      <link href="assets/dist/css/stylecrm.css" rel="stylesheet" type="text/css"/>

                  Toggle navigation

                  <button type="button" class="close">×</button>
                  <form>
                     <input type="search" value="" placeholder="type keyword(s) here" />
                     <button type="submit" class="btn btn-add">Search...</button>
                  </form>

                        5

polo shirt

total item: 21

Kits

total item: 11

Football

total item: 16

Sports sheos

total item: 10

                        4

Ronaldo

Please oreder 10 pices of kits..

                                       15 hours ago

Leo messi

Please oreder 10 pices of Sheos..

                                       6 days ago

Modric

Please oreder 6 pices of bats..

                                       1 hour ago

Salman

Hello i want 4 uefa footballs

                                       6 days ago

Sergio Ramos

Hello i want 9 uefa footballs

                                       5 hours ago

                        7

                                    Change Your font style

                                    check the system ststus..

                                    Add more admin...

                                     Add more clients and order

                                    Add more admin...

                                     Add more clients and order

                        6

                                       50%

 Theme color should be change

                                       90%

 Fix Error and bugs

                                       80%

 Sidebar color change

                                       30%

 font-family should be change

                                       60%

 Fix the database Error

                                       20%

 data table data missing

                               Networking

 Lan settings

 Settings

                               wifi

                               User Profile

 Inbox

                               Signout

                     Dashboard

                     Customers

Add Customer

List

Groups

                     Transaction

New Deposit

New Expense

Transfer

View transaction

Balance Sheet

Transfer Report

                     Sales

Invoices

New Invoices

Recurring invoices

New Recurring invoices

quotes

New quote

Payments

Tax Rates

                     Task

Running Task

Archive Task

                     Accounting

Client payment

Expense management

Expense Category

                     Report

Project Report

Client Report

Expense Report

Income expense comparesion

                     Attendance

Time History

Time Change Request

Attendance Report

                     Recruitment

Jobs Posted

Jobs Application

                     payroll

Salary Template

Hourly

Manage salary

Employee salary list

Make payment

Generate payslip

Payroll summary

                     Stock

Stock category

Manage Stock

Assign stock

                     Tickets

Answered

Open

Inprocess

CLosed

All Tickets

                     Utilities

Activity Log

Email message log

System status

                     Charts

Flot Chart

Chart js

Morris Charts

Sparkline Charts

                     Icons

Bootstrap Icons

Fontawesome Icon

Flag Icons

Material Icons

Weather Icons

Line Icons

Pe Icons

Socicon Icons

                      Other page

Login

Register

Profile

Forget password

Lockscreen

404 Error

505 Error

Blank Page

                     UI Elements

Buttons

Tabs

Notification

Tree View

Progressber

List View

Typography

Panels

Modals

iCheck, Toggle, Pagination

Labels, Badges, Alerts

                     settings

Genaral settings

Staff settings

Email settings

Payment

                      Companies

                      Public Holiday

                     User

                     Items

                     Departments

                      Documents

                     Training

                      Calender

                      Notice Board

                      Message

                      Notes

Buttons

                  Buttons color, size and types

Buttons - Normal

Use the button classes on an <a>, <button>, or <input> element.

                           <button type="button" class="btn btn-default w-md m-b-5">Default</button>
                           <button type="button" class="btn btn-primary w-md m-b-5">Primary</button>
                           <button type="button" class="btn btn-success w-md m-b-5">Success</button>
                           <button type="button" class="btn btn-info w-md m-b-5">Info</button>
                           <button type="button" class="btn btn-warning w-md m-b-5">Warning</button>
                           <button type="button" class="btn btn-danger w-md m-b-5">Danger</button>
                           <button type="button" class="btn btn-inverse w-md m-b-5">Inverse</button>
                           <button type="button" class="btn btn-purple w-md m-b-5">Purple</button>
                           <button type="button" class="btn btn-pink w-md m-b-5">Pink</button>
                           <button type="button" class="btn btn-black w-md m-b-5">Black</button>
                           <button type="button" class="btn btn-violet w-md m-b-5">Violet</button>

Button-Rounded

Add .btn-rounded to default button to get rounded corners.

                           <button type="button" class="btn btn-default btn-rounded w-md m-b-5">Default</button>
                           <button type="button" class="btn btn-primary btn-rounded w-md m-b-5">Primary</button>
                           <button type="button" class="btn btn-success btn-rounded w-md m-b-5">Success</button>
                           <button type="button" class="btn btn-info btn-rounded w-md m-b-5">Info</button>
                           <button type="button" class="btn btn-warning btn-rounded w-md m-b-5">Warning</button>
                           <button type="button" class="btn btn-danger btn-rounded w-md m-b-5">Danger</button>
                           <button type="button" class="btn btn-inverse btn-rounded w-md m-b-5">Inverse</button>
                           <button type="button" class="btn btn-purple btn-rounded w-md m-b-5">Purple</button>
                           <button type="button" class="btn btn-pink btn-rounded w-md m-b-5">Pink</button>
                           <button type="button" class="btn btn-black btn-rounded w-md m-b-5">Black</button>
                           <button type="button" class="btn btn-violet btn-rounded w-md m-b-5">Violet</button>

 Button-Rounded

Use a classes .disabledto quickly create a Disabled btn.

                           <button type="button" class="btn btn-default disabled w-md m-b-5">Default</button>
                           <button type="button" class="btn btn-primary disabled w-md m-b-5">Primary</button>
                           <button type="button" class="btn btn-success disabled w-md m-b-5">Success</button>
                           <button type="button" class="btn btn-info disabled w-md m-b-5">Info</button>
                           <button type="button" class="btn btn-warning disabled w-md m-b-5">Warning</button>
                           <button type="button" class="btn btn-danger disabled w-md m-b-5">Danger</button>
                           <button type="button" class="btn btn-inverse disabled w-md m-b-5">Inverse</button>
                           <button type="button" class="btn btn-purple disabled w-md m-b-5">Purple</button>
                           <button type="button" class="btn btn-pink disabled w-md m-b-5">Pink</button>
                           <button type="button" class="btn btn-black disabled w-md m-b-5">Black</button>
                           <button type="button" class="btn btn-violet disabled w-md m-b-5">Violet</button>

Button-Transparent

Use a classes .btn-transparent to quickly create a bordered buttons.

                           <button type="button" class="btn btn-default btn-transparent w-md m-b-5">Default</button>
                           <button type="button" class="btn btn-primary btn-transparent w-md m-b-5">Primary</button>
                           <button type="button" class="btn btn-success btn-transparent w-md m-b-5">Success</button>
                           <button type="button" class="btn btn-info btn-transparent w-md m-b-5">Info</button>
                           <button type="button" class="btn btn-warning btn-transparent w-md m-b-5">Warning</button>
                           <button type="button" class="btn btn-danger btn-transparent w-md m-b-5">Danger</button>
                           <button type="button" class="btn btn-inverse btn-transparent w-md m-b-5">Inverse</button>
                           <button type="button" class="btn btn-purple btn-transparent w-md m-b-5">Purple</button>
                           <button type="button" class="btn btn-pink btn-transparent w-md m-b-5">Pink</button>
                           <button type="button" class="btn btn-black btn-transparent w-md m-b-5">Black</button>
                           <button type="button" class="btn btn-violet btn-transparent w-md m-b-5">Violet</button>

 Outline-Buttons

Outline-Buttons

Use a classes btn btn-default btn-outlineto quickly create a Outline btn.

                           <button type="button" class="btn btn-default btn-outline w-md m-b-5">Default</button>
                           <button type="button" class="btn btn-primary btn-outline w-md m-b-5">Primary</button>
                           <button type="button" class="btn btn-success btn-outline w-md m-b-5">Success</button>
                           <button type="button" class="btn btn-info btn-outline w-md m-b-5">Info</button>
                           <button type="button" class="btn btn-warning btn-outline w-md m-b-5">Warning</button>
                           <button type="button" class="btn btn-danger btn-outline w-md m-b-5">Danger</button>
                           <button type="button" class="btn btn-inverse btn-outline w-md m-b-5">Inverse</button>
                           <button type="button" class="btn btn-purple btn-outline w-md m-b-5">Purple</button>
                           <button type="button" class="btn btn-pink btn-outline w-md m-b-5">Pink</button>
                           <button type="button" class="btn btn-black btn-outline w-md m-b-5">Black</button>
                           <button type="button" class="btn btn-violet btn-outline w-md m-b-5">Violet</button>

Rounded-Outline-Buttons

Use a classes btn btn-default btn-outline btn-roundedto quickly create a Rounded btn.

                           <button type="button" class="btn btn-default btn-outline btn-rounded w-md m-b-5">Default</button>
                           <button type="button" class="btn btn-primary btn-outline btn-rounded w-md m-b-5">Primary</button>
                           <button type="button" class="btn btn-success btn-outline btn-rounded w-md m-b-5">Success</button>
                           <button type="button" class="btn btn-info btn-outline btn-rounded w-md m-b-5">Info</button>
                           <button type="button" class="btn btn-warning btn-outline btn-rounded w-md m-b-5">Warning</button>
                           <button type="button" class="btn btn-danger btn-outline btn-rounded w-md m-b-5">Danger</button>
                           <button type="button" class="btn btn-inverse btn-outline btn-rounded w-md m-b-5">Inverse</button>
                           <button type="button" class="btn btn-purple btn-outline btn-rounded w-md m-b-5">Purple</button>
                           <button type="button" class="btn btn-pink btn-outline btn-rounded w-md m-b-5">Pink</button>
                           <button type="button" class="btn btn-black btn-outline btn-rounded w-md m-b-5">Black</button>
                           <button type="button" class="btn btn-violet btn-outline btn-rounded w-md m-b-5">Violet</button>

Labeled-Buttons

                           <button type="button" class="btn btn-labeled btn-success m-b-5">
                           Success
                           </button>
                           <button type="button" class="btn btn-labeled btn-danger m-b-5">
                           Cancel
                           </button>
                           <button type="button" class="btn btn-labeled btn-warning m-b-5">
                           Bookmark
                           </button>
                           <button type="button" class="btn btn-labeled btn-primary m-b-5">
                           Camera
                           </button>
                           <button type="button" class="btn btn-labeled btn-pink m-b-5">
                           Left
                           </button>
                           <button type="button" class="btn btn-labeled btn-pink m-b-5">
                           Right
                           </button>
                           <button type="button" class="btn btn-labeled btn-inverse m-b-5">
                           Thumbs Up
                           </button>
                           <button type="button" class="btn btn-labeled btn-purple m-b-5">
                           Thumbs Down
                           </button>
                           <button type="button" class="btn btn-labeled btn-info m-b-5">
                           Refresh
                           </button>
                           <button type="button" class="btn btn-labeled btn-danger m-b-5">
                           Trash
                           </button>
                           <button type="button" class="btn btn-success btn-labeled m-b-5">
                           Info Web
                           </button>

 Social Buttons

Use a classes btn btn-block btn-social btn-adnto quickly create a Rounded btn.

                           <button type="button" class="btn btn-block btn-social btn-adn m-b-5">
                            Sign in with App.net
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-bitbucket m-b-5">
                            Sign in with Bitbucket
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-dropbox m-b-5">
                            Sign in with Dropbox
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-facebook m-b-5">
                            Sign in with Facebook
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-flickr m-b-5">
                            Sign in with Flickr
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-foursquare m-b-5">
                            Sign in with Foursquare
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-github m-b-5">
                            Sign in with GitHub
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-google m-b-5">
                            Sign in with Google
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-instagram m-b-5">
                            Sign in with Instagram
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-linkedin m-b-5">
                            Sign in with LinkedIn
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-microsoft m-b-5">
                            Sign in with Microsoft
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-odnoklassniki m-b-5">
                            Sign in with Odnoklassniki
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-openid m-b-5">
                            Sign in with OpenID
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-pinterest m-b-5">
                            Sign in with Pinterest
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-reddit m-b-5">
                            Sign in with Reddit
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-soundcloud m-b-5">
                            Sign in with SoundCloud
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-tumblr m-b-5">
                            Sign in with Tumblr
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-twitter m-b-5">
                            Sign in with Twitter
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-vimeo m-b-5">
                            Sign in with Vimeo
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-vk m-b-5">
                            Sign in with VK
                           </button>
                           <button type="button" class="btn btn-block btn-social btn-yahoo">
                            Sign in with Yahoo!
                           </button>

Use a classes btn btn-social-icon btn-adnto quickly create a Rounded btn.

                           <button type="button" class="btn btn-social-icon btn-adn m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-bitbucket m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-dropbox m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-facebook m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-flickr m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-foursquare m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-github m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-google m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-instagram m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-linkedin m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-microsoft m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-odnoklassniki m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-openid m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-pinterest m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-reddit m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-soundcloud m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-tumblr m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-twitter m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-vimeo m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-vk m-b-5"></button>
                           <button type="button" class="btn btn-social-icon btn-yahoo m-b-5"></button>

Circle icon, Button dropdown, Button dropdown

Circle icon

Use a classes btn btn-default btn-circleto quickly create a Rounded btn.

                           <button type="button" class="btn btn-default btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-primary btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-success btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-info btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-warning btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-danger btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-inverse btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-purple btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-pink btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-black btn-circle m-b-5"></button>
                           <button type="button" class="btn btn-violet btn-circle m-b-5"></button>

Button dropdown

Turn a button into a dropdown toggle with some basic markup changes.

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-default">default

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-primary">primary

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-success">success

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-info">info

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-warning">warning

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-danger">danger

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-inverse">inverse

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-purple">purple

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-pink">pink

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-black">black

                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-violet">violet

                              </button>

Action

Another action

Something else here

Separated link

Split button dropdown

Turn a button into a dropdown toggle with some basic markup changes.

                              <button type="button" class="btn btn-default">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-default">

                              default
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-primary">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-primary">

                              primary
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-success">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-success">

                              success
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-info">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-info">

                              info
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-warning">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-warning">

                              warning
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-danger">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-danger">

                              danger
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-inverse">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-inverse">

                              inverse
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-purple">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-purple">

                              purple
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-pink">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-pink">

                              pink
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-black">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-black">

                              black
                              </button>

Action

Another action

Something else here

Separated link

                              <button type="button" class="btn btn-violet">Action</button>
                              <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-violet">

                              violet
                              </button>

Action

Another action

Something else here

Separated link

Animate icon buttons

Use the .fa-spin class to get any icon to rotate, and use .fa-pulse to have it rotate
                              with 8 steps.

                           <button type="button" class="btn btn-default btn-rounded"></button>
                           <button type="button" class="btn btn-primary btn-rounded"></button>
                           <button type="button" class="btn btn-success btn-rounded"></button>
                           <button type="button" class="btn btn-info btn-rounded"></button>

Button groups

Basic example

Wrap a series of buttons with .btn in .btn-group.

                                    <button type="button" class="btn btn-default">Left</button>
                                    <button type="button" class="btn btn-default">Middle</button>
                                    <button type="button" class="btn btn-default">Right</button>

Button toolbar

Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.

                                       <button type="button" class="btn btn-default">1</button>
                                       <button type="button" class="btn btn-default">2</button>
                                       <button type="button" class="btn btn-default">3</button>
                                       <button type="button" class="btn btn-default">4</button>

                                       <button type="button" class="btn btn-default">5</button>
                                       <button type="button" class="btn btn-default">6</button>
                                       <button type="button" class="btn btn-default">7</button>

                                       <button type="button" class="btn btn-default">8</button>

Sizing

Instead of applying button sizing classes to every button in a group, just add .btn-group-* to each .btn-group, including when nesting multiple groups.

                                    <button type="button" class="btn btn-default">Left</button>
                                    <button type="button" class="btn btn-default">Middle</button>
                                    <button type="button" class="btn btn-default">Right</button>

                                    <button type="button" class="btn btn-default">Left</button>
                                    <button type="button" class="btn btn-default">Middle</button>
                                    <button type="button" class="btn btn-default">Right</button>

                                    <button type="button" class="btn btn-default">Left</button>
                                    <button type="button" class="btn btn-default">Middle</button>
                                    <button type="button" class="btn btn-default">Right</button>

                                    <button type="button" class="btn btn-default">Left</button>
                                    <button type="button" class="btn btn-default">Middle</button>
                                    <button type="button" class="btn btn-default">Right</button>

Vertical variation

Make a set of buttons appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.

                                    <button type="button" class="btn btn-default">Button</button>
                                    <button type="button" class="btn btn-default">Button</button>

                                       <button id="btnGroupVerticalDrop1" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Dropdown  </button>

Dropdown link

Dropdown link

                                    <button type="button" class="btn btn-default">Button</button>
                                    <button type="button" class="btn btn-default">Button</button>

                                       <button id="btnGroupVerticalDrop2" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Dropdown  </button>

Dropdown link

Dropdown link

                                       <button id="btnGroupVerticalDrop3" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Dropdown  </button>

Dropdown link

Dropdown link

                                       <button id="btnGroupVerticalDrop4" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Dropdown  </button>

Dropdown link

Dropdown link

            Copyright © 2016-2017 thememinister. All rights reserved.


text:
package xsierra.digitguesser.drawer;

import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.core.io.ClassPathResource;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import xsierra.digitguesser.drawer.pipeline.DigitPipeline;

import java.awt.image.BufferedImage;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.any;
import static org.mockito.BDDMockito.given;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Drawer.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@AutoConfigureMockMvc
public class DrawerRestControllerTest {

    @MockBean
    private DigitPipeline pipeline;

    @Autowired
    private MockMvc mvc;

    @Before
    public void setUp() {

    }

    @Test
    public void guessDigit() throws Exception {

        given(pipeline.imageGuessDigit(any(BufferedImage.class))).willReturn((byte) 7);

        ClassPathResource resource = new ClassPathResource("7.png");

        byte[] imageBytes = IOUtils.toByteArray(resource.getInputStream());

        MockHttpServletResponse response = mvc.perform(post("/digit").content(imageBytes).contentType("image/png")).andExpect(status().isOk()).andReturn().getResponse();

        String guessedDigit = response.getContentAsString();

        assertThat(guessedDigit).isEqualTo("7");

    }

}


text:
Create a project

<?php $attributes = array('id' => 'create_form', 'class' => 'form-horizontal'); ?>
<?php echo validation_errors("
"); ?>
<?php echo form_open('projects/create', $attributes); ?>

	<?php echo form_label('Project Name'); ?>
	<?php $data = array('class' => 'form-control',
						'name' => 'project_name',
						'placeholder' => 'Project Name');
	?>
	<?php echo form_input($data); ?>

	<?php echo form_label('Description'); ?>
	<?php $data = array('class' => 'form-control',
						'name' => 'project_body');
	?>
	<?php echo form_textarea($data); ?>

	<?php $data = array('class' => 'btn btn-primary',
						'name' => 'submit',
						'value' => 'Create'); ?>
	<?php echo form_submit($data); ?>

<?php echo form_close(); ?>


text:
global.test = require('pitesti')()

require('fs').readdirSync(__dirname).forEach(file => {
  if (file === 'index.js' || !file.endsWith('.js')) return
  require('./' + file)
})

global.test()


text:
namespace Zu.ChromeDevTools.Fetch
{
    using Newtonsoft.Json;

    /// <summary>
    /// Disables the fetch domain.
    /// </summary>
    public sealed class DisableCommand : ICommand
    {
        private const string ChromeRemoteInterface_CommandName = "Fetch.disable";

        [JsonIgnore]
        public string CommandName
        {
            get { return ChromeRemoteInterface_CommandName; }
        }

    }

    public sealed class DisableCommandResponse : ICommandResponse<DisableCommand>
    {
    }
}


text:
/*******************************************************************************
  System Definitions

  File Name:
    definitions.h

  Summary:
    project system definitions.

  Description:
    This file contains the system-wide prototypes and definitions for a project.

 *******************************************************************************/

//DOM-IGNORE-BEGIN
/*******************************************************************************
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* responsibility to comply with third party license terms applicable to your
* use of third party software (including open source software) that may
* accompany Microchip software.
*
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
* PARTICULAR PURPOSE.
*
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
* INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
* WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
* BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
* FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
* ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
* THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
 *******************************************************************************/
//DOM-IGNORE-END

#ifndef DEFINITIONS_H
#define DEFINITIONS_H

// *****************************************************************************
// *****************************************************************************
// Section: Included Files
// *****************************************************************************
// *****************************************************************************
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "usb/usb_device_cdc.h"
#include "usb/usb_cdc.h"
#include "peripheral/clk/plib_clk.h"
#include "peripheral/gpio/plib_gpio.h"
#include "peripheral/evic/plib_evic.h"
#include "driver/usb/usbfs/drv_usbfs.h"
#include "usb/usb_chapter_9.h"
#include "usb/usb_device.h"
#include "peripheral/spi/plib_spi1.h"
#include "FreeRTOS.h"
#include "task.h"
#include "system/int/sys_int.h"
#include "osal/osal.h"
#include "app.h"
#include "fpga.h"
#include "cdc.h"

// DOM-IGNORE-BEGIN
#ifdef __cplusplus  // Provide C++ Compatibility

extern "C" {

#endif
// DOM-IGNORE-END

// *****************************************************************************
// *****************************************************************************
// Section: System Functions
// *****************************************************************************
// *****************************************************************************

// *****************************************************************************
/* System Initialization Function

  Function:
    void SYS_Initialize( void *data )

  Summary:
    Function that initializes all modules in the system.

  Description:
    This function initializes all modules in the system, including any drivers,
    services, middleware, and applications.

  Precondition:
    None.

  Parameters:
    data            - Pointer to the data structure containing any data
                      necessary to initialize the module. This pointer may
                      be null if no data is required and default initialization
                      is to be used.

  Returns:
    None.

  Example:

    SYS_Initialize ( NULL );

    while ( true )
    {
        SYS_Tasks ( );
    }

  Remarks:
    This function will only be called once, after system reset.
*/

void SYS_Initialize( void *data );

// *****************************************************************************
/* System Tasks Function

  Function:
    void SYS_Tasks ( void );

  Summary:
    Function that performs all polled system tasks.

  Description:
    This function performs all polled system tasks by calling the state machine
    "tasks" functions for all polled modules in the system, including drivers,
    services, middleware and applications.

  Precondition:
    The SYS_Initialize function must have been called and completed.

  Parameters:
    None.

  Returns:
    None.

  Example:

    SYS_Initialize ( NULL );

    while ( true )
    {
        SYS_Tasks ( );
    }

  Remarks:
    If the module is interrupt driven, the system will call this routine from
    an interrupt context.
*/

void SYS_Tasks ( void );

// *****************************************************************************
// *****************************************************************************
// Section: Type Definitions
// *****************************************************************************
// *****************************************************************************

// *****************************************************************************
/* System Objects

  Summary:
    Structure holding the system's object handles

  Description:
    This structure contains the object handles for all objects in the
    MPLAB Harmony project's system configuration.

  Remarks:
    These handles are returned from the "Initialize" functions for each module
    and must be passed into the "Tasks" function for each module.
*/

typedef struct
{
	SYS_MODULE_OBJ  drvUSBFSObject;

	SYS_MODULE_OBJ  usbDevObject0;

} SYSTEM_OBJECTS;

// *****************************************************************************
// *****************************************************************************
// Section: extern declarations
// *****************************************************************************
// *****************************************************************************

extern const USB_DEVICE_INIT usbDevInitData;

extern SYSTEM_OBJECTS sysObj;

//DOM-IGNORE-BEGIN
#ifdef __cplusplus
}
#endif
//DOM-IGNORE-END

#endif /* DEFINITIONS_H */
/*******************************************************************************
 End of File
*/


text:
package org.gwtlib.client.table;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * A continuous array of Serializable rows.
 *
 * @author Sander Berents
 */
@SuppressWarnings("serial")
public class Rows implements Serializable {
  protected int _begin;
  protected int _sortId;
  protected boolean _ascending;
  protected List<Row> _rows;

  public Rows() {
    _sortId = -1;
    _rows = new ArrayList<Row>();
  }

  public Rows(Row[] rows, int begin) {
    this(new ArrayList<Row>(Arrays.asList(rows)), begin, -1, false);
  }

  public Rows(Row[] rows, int begin, int sortId, boolean ascending) {
    this(new ArrayList<Row>(Arrays.asList(rows)), begin, sortId, ascending);
  }

  Rows(List<Row> rows, int begin, int sortId, boolean ascending) {
    _begin = begin;
    _sortId = sortId;
    _ascending = ascending;
    _rows = rows;
  }

  public int getBegin() {
    return _begin;
  }

  public int getEnd() {
    return _begin + _rows.size();
  }

  public int size() {
    return _rows.size();
  }

  public int getSortId() {
    return _sortId;
  }

  public boolean isAscending() {
    return _ascending;
  }

  Row[] getRows() {
    return (Row[])_rows.toArray(new Row[_rows.size()]);
  }

  public Row getRow(int row) {
    return (Row)_rows.get(row);
  }

  /**
   * Tests if a position lies inside this Rows object.
   * @param pos
   * @return True if position falls inside this Rows object.
   */
  public boolean inside(int pos) {
    return pos >= _begin && pos < _begin + _rows.size();
  }

  /**
   * Merge this Rows object with the given one, if they may be merged.
   * @param other
   * @return Returns true if rows were merged, or false if not.
   */
  public boolean merge(Rows other) {
    if(_begin < other._begin) {
      int start = getEnd() - other._begin; // Skip overlapping ones
      if(start < 0) return false;
      for(int i = start; i < other._rows.size(); ++i) _rows.add(other._rows.get(i));
    } else {
      int start = other.getEnd() - _begin; // Skip overlapping ones
      if(start < 0) return false;
      List<Row> tmp = new ArrayList<Row>(other._rows);
      for(int i = start; i < _rows.size(); ++i) tmp.add(_rows.get(i));
      _begin = other._begin;
      _rows = tmp;
    }
    return true;
  }

  public Row find(int id) {
    for(int i = 0; i < _rows.size(); ++i) {
      Row row = (Row)_rows.get(i);
      if(id == row.getId()) return row;
    }
    return null;
  }
}


text:
<?php

declare(strict_types = 1);

namespace App\Tests;

use Symfony\Bundle\FrameworkBundle\Client;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase;
use Symfony\Component\HttpFoundation\Response;

class WebTestCase extends BaseWebTestCase
{
    protected const TEST_USER_USERNAME = 'tests';
    protected const TEST_USER_PASSWORD = 'tests-password';

    protected function getAuthenticatedClient(): Client
    {
        return static::createClient(
            [],
            [
                'PHP_AUTH_USER' => static::TEST_USER_USERNAME,
                'PHP_AUTH_PW' => static::TEST_USER_PASSWORD,
            ]
        );
    }

    protected function assertRedirect(Response $response, string $location)
    {
        $this->assertTrue($response->isRedirect(), 'Response is not a redirect, got status code: ' . $response->getStatusCode());
        $this->assertEquals($location, $response->headers->get('Location'));
    }
}


text:
package org.connid.bundles.unix.commands;

import org.connid.bundles.unix.UnixConfiguration;

public class DelUser {

    private static final String USERDEL_COMMAND = "deluser";

    /**
     * Remove the home directory of the user and its mailspool. If --backup is specified, the files are deleted after
     * having per- formed the backup.
     */
    private static final String DELETE_USER_DIR_OPTION = "--remove-home";

    private UnixConfiguration unixConfiguration = null;
    private String username = "";

    public DelUser(final UnixConfiguration configuration,
            final String username) {
        unixConfiguration = configuration;
        this.username = username;
    }

    private String createUserDelCommand() {
        StringBuilder userdelCommand = new StringBuilder(USERDEL_COMMAND);
        userdelCommand.append(" ");
        if (unixConfiguration.isDeleteHomeDirectory()) {
            userdelCommand.append(DELETE_USER_DIR_OPTION).append(" ");
        }
        userdelCommand.append(username);
        return userdelCommand.toString();
    }

    public String deluser() {
        return createUserDelCommand();
    }

}


text:
package com.intel.analytics.bigdl.nn.ops

import com.intel.analytics.bigdl.tensor.{DenseType, SparseType, Tensor}
import com.intel.analytics.bigdl.utils.serializer.ModuleSerializationTest
import com.intel.analytics.bigdl.utils.{T, Table}
import org.scalatest.{FlatSpec, Matchers}

import scala.collection.mutable.ArrayBuffer
import scala.util.Random

class Kv2TensorSpec extends FlatSpec with Matchers {

  protected def randDoubles(length: Int,
                            lp: Double = 0.0,
                            up: Double = 1.0): Array[Double] = {
    (1 to length).map(_ => lp + (up - lp) * Random.nextDouble()).toArray
  }

  protected def randKVMap(size: Int,
                          numActive: Int,
                          lp: Double = 0.0,
                          up: Double = 1.0): Map[Int, Double] = {
    require(numActive <= size)
    val keys = Random.shuffle((0 until size).toList).take(numActive)
    val values = randDoubles(numActive, lp, up)
    keys.zip(values).toMap
  }
  val batchLen = 3
  val numActive = Array(2, 3, 5)
  val feaLen = 8
  val originData = new ArrayBuffer[String]()
  val originArr = new ArrayBuffer[Table]()
  val indices0 = new ArrayBuffer[Int]()
  val indices1 = new ArrayBuffer[Int]()
  val values = new ArrayBuffer[Double]()
  for (i <- 0 until batchLen) {
    val kvMap = randKVMap(feaLen, numActive(i))
    val kvStr = kvMap.map(data => s"${data._1}:${data._2}").mkString(",")
    originData += kvStr
    originArr += T(kvStr)
    indices0 ++= ArrayBuffer.fill(numActive(i))(i)
    val kvArr = kvMap.toArray
    indices1 ++= kvArr.map(kv => kv._1)
    values ++= kvArr.map(kv => kv._2)
  }
  val originTable = T.array(originArr.toArray)
  val indices = Array(indices0.toArray, indices1.toArray)
  val shape = Array(batchLen, feaLen)

  "Kv2Tensor operation kvString to SparseTensor" should "work correctly" in {
    val input =
      T(
        Tensor[String](originTable),
        Tensor[Int](Array(feaLen), shape = Array[Int]())
      )

    val expectOutput =
      Tensor.sparse[Double](
        indices = indices,
        values = values.toArray,
        shape = shape
      )
    val output = Kv2Tensor[Double, Double](transType = 1)
      .forward(input)

    output should be(expectOutput)
  }

  "Kv2Tensor operation kvString to DenseTensor" should "work correctly" in {
    val input =
      T(
        Tensor[String](originTable),
        Tensor[Int](Array(feaLen), shape = Array[Int]())
      )

    val expectOutput =
      Tensor.dense(Tensor.sparse[Double](
        indices = indices,
        values = values.toArray,
        shape = shape
      ))
    val output = Kv2Tensor[Double, Double](transType = 0)
      .forward(input)

    output should be(expectOutput)
  }
}

class Kv2TensorSerialTest extends ModuleSerializationTest {
  override def test(): Unit = {
    val kv2tensor = Kv2Tensor[Float, Float](
      kvDelimiter = ",", itemDelimiter = ":", transType = 0
    ).setName("kv2tensor")
    val input = T(
      Tensor[String](
        T(T("0:0.1,1:0.2"), T("1:0.3,3:0.5"), T("2:0.15,4:0.25"))),
      Tensor[Int](Array(5), shape = Array[Int]())
    )
    runSerializationTest(kv2tensor, input)
  }
}


text:
// Copyright (c) 2006  Dustin Sallings <dustin@spy.net>

package net.spy.memcached.protocol.ascii;

import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.Collections;

import net.spy.memcached.KeyUtil;
import net.spy.memcached.ops.MutatorOperation;
import net.spy.memcached.ops.Mutator;
import net.spy.memcached.ops.OperationCallback;
import net.spy.memcached.ops.OperationState;
import net.spy.memcached.ops.OperationStatus;

/**
 * Operation for mutating integers inside of memcached.
 */
final class MutatorOperationImpl extends OperationImpl
	implements MutatorOperation {

	public static final int OVERHEAD=32;

	private static final OperationStatus NOT_FOUND=
		new OperationStatus(false, "NOT_FOUND");

	private final Mutator mutator;
	private final String key;
	private final int amount;

	public MutatorOperationImpl(Mutator m, String k, int amt,
			OperationCallback c) {
		super(c);
		mutator=m;
		key=k;
		amount=amt;
	}

	@Override
	public void handleLine(String line) {
		getLogger().debug("Result:  %s", line);
		OperationStatus found=null;
		if(line.equals("NOT_FOUND")) {
			found=NOT_FOUND;
		} else {
			found=new OperationStatus(true, line);
		}
		getCallback().receivedStatus(found);
		transitionState(OperationState.COMPLETE);
	}

	@Override
	public void initialize() {
		int size=KeyUtil.getKeyBytes(key).length + OVERHEAD;
		ByteBuffer b=ByteBuffer.allocate(size);
		setArguments(b, mutator.name(), key, amount);
		b.flip();
		setBuffer(b);
	}

	@Override
	protected void wasCancelled() {
		// XXX:  Replace this comment with why the hell I did this.
		getCallback().receivedStatus(CANCELLED);
	}

	public Collection<String> getKeys() {
		return Collections.singleton(key);
	}

	public int getBy() {
		return amount;
	}

	public long getDefault() {
		return -1;
	}

	public int getExpiration() {
		return -1;
	}

	public Mutator getType() {
		return mutator;
	}

}


text:
package org.apache.hyracks.algebricks.core.algebra.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.commons.lang3.mutable.Mutable;
import org.apache.commons.lang3.mutable.MutableObject;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.hyracks.algebricks.common.exceptions.AlgebricksException;
import org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator;
import org.apache.hyracks.algebricks.core.algebra.base.ILogicalPlan;
import org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext;
import org.apache.hyracks.algebricks.core.algebra.base.LogicalOperatorTag;
import org.apache.hyracks.algebricks.core.algebra.base.LogicalVariable;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractLogicalOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractOperatorWithNestedPlans;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.AggregateOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.EmptyTupleSourceOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.GroupByOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.LimitOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.NestedTupleSourceOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.SubplanOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.visitors.
        LogicalOperatorDeepCopyWithNewVariablesVisitor;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.visitors.OperatorDeepCopyVisitor;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.visitors.VariableUtilities;
import org.apache.hyracks.algebricks.core.algebra.plan.ALogicalPlanImpl;
import org.apache.hyracks.algebricks.core.algebra.typing.ITypingContext;

public class OperatorManipulationUtil {

    // Transforms all NestedTupleSource operators to EmptyTupleSource operators
    public static void ntsToEts(Mutable<ILogicalOperator> opRef, IOptimizationContext context)
            throws AlgebricksException {
        AbstractLogicalOperator op = (AbstractLogicalOperator) opRef.getValue();
        if (op.getOperatorTag() == LogicalOperatorTag.NESTEDTUPLESOURCE) {
            EmptyTupleSourceOperator ets = new EmptyTupleSourceOperator();
            context.computeAndSetTypeEnvironmentForOperator(ets);
            opRef.setValue(ets);
        } else {
            for (Mutable<ILogicalOperator> i : opRef.getValue().getInputs()) {
                ntsToEts(i, context);
            }
        }
    }

    public static ILogicalOperator eliminateSingleSubplanOverEts(SubplanOperator subplan) {
        if (subplan.getNestedPlans().size() > 1) {
            // not a single subplan
            List<Mutable<ILogicalOperator>> subInpList = subplan.getInputs();
            subInpList.clear();
            subInpList.add(new MutableObject<ILogicalOperator>(new EmptyTupleSourceOperator()));
            return subplan;
        }
        ILogicalPlan plan = subplan.getNestedPlans().get(0);
        if (plan.getRoots().size() > 1) {
            // not a single subplan
            List<Mutable<ILogicalOperator>> subInpList = subplan.getInputs();
            subInpList.clear();
            subInpList.add(new MutableObject<ILogicalOperator>(new EmptyTupleSourceOperator()));
            return subplan;
        }
        return plan.getRoots().get(0).getValue();
    }

    public static boolean setOperatorMode(AbstractLogicalOperator op) {
        AbstractLogicalOperator.ExecutionMode oldMode = op.getExecutionMode();
        switch (op.getOperatorTag()) {
            case DATASOURCESCAN: {
                op.setExecutionMode(AbstractLogicalOperator.ExecutionMode.PARTITIONED);
                AbstractLogicalOperator currentOp = op;
                while (currentOp.getInputs().size() == 1) {
                    AbstractLogicalOperator child = (AbstractLogicalOperator) currentOp.getInputs().get(0).getValue();
                    // Empty tuple source is a special case that can be partitioned in the same way as the data scan.
                    if (child.getOperatorTag() != LogicalOperatorTag.EMPTYTUPLESOURCE) {
                        break;
                    }
                    child.setExecutionMode(AbstractLogicalOperator.ExecutionMode.PARTITIONED);
                    currentOp = child;
                }
                break;
            }
            case NESTEDTUPLESOURCE: {
                NestedTupleSourceOperator nts = (NestedTupleSourceOperator) op;
                AbstractLogicalOperator prevOp = (AbstractLogicalOperator) nts.getDataSourceReference().getValue()
                        .getInputs().get(0).getValue();
                if (prevOp.getExecutionMode() != AbstractLogicalOperator.ExecutionMode.UNPARTITIONED) {
                    nts.setExecutionMode(AbstractLogicalOperator.ExecutionMode.LOCAL);
                }
                break;
            }
            default: {
                boolean forceUnpartitioned = false;
                if (op.getOperatorTag() == LogicalOperatorTag.LIMIT) {
                    LimitOperator opLim = (LimitOperator) op;
                    if (opLim.isTopmostLimitOp()) {
                        opLim.setExecutionMode(AbstractLogicalOperator.ExecutionMode.UNPARTITIONED);
                        forceUnpartitioned = true;
                    }
                }
                if (op.getOperatorTag() == LogicalOperatorTag.AGGREGATE) {
                    AggregateOperator aggOp = (AggregateOperator) op;
                    if (aggOp.isGlobal()) {
                        op.setExecutionMode(AbstractLogicalOperator.ExecutionMode.UNPARTITIONED);
                        forceUnpartitioned = true;
                    }
                }
                if (op.getOperatorTag() == LogicalOperatorTag.GROUP) {
                    GroupByOperator gbyOp = (GroupByOperator) op;
                    if (gbyOp.isGroupAll() && gbyOp.isGlobal()) {
                        op.setExecutionMode(AbstractLogicalOperator.ExecutionMode.UNPARTITIONED);
                        forceUnpartitioned = true;
                    }
                }

                for (Mutable<ILogicalOperator> i : op.getInputs()) {
                    boolean exit = false;
                    AbstractLogicalOperator inputOp = (AbstractLogicalOperator) i.getValue();
                    switch (inputOp.getExecutionMode()) {
                        case PARTITIONED: {
                            if (forceUnpartitioned) {
                                break;
                            }
                            op.setExecutionMode(AbstractLogicalOperator.ExecutionMode.PARTITIONED);
                            exit = true;
                            break;
                        }
                        case LOCAL: {
                            op.setExecutionMode(AbstractLogicalOperator.ExecutionMode.LOCAL);
                            break;
                        }
                    }
                    if (exit) {
                        break;
                    }
                }
                break;
            }
        }
        return oldMode != op.getExecutionMode();
    }

    public static void substituteVarRec(AbstractLogicalOperator op, LogicalVariable v1, LogicalVariable v2,
            boolean goThroughNts, ITypingContext ctx) throws AlgebricksException {
        VariableUtilities.substituteVariables(op, v1, v2, goThroughNts, ctx);
        for (Mutable<ILogicalOperator> opRef2 : op.getInputs()) {
            substituteVarRec((AbstractLogicalOperator) opRef2.getValue(), v1, v2, goThroughNts, ctx);
        }
        if (op.getOperatorTag() == LogicalOperatorTag.NESTEDTUPLESOURCE && goThroughNts) {
            NestedTupleSourceOperator nts = (NestedTupleSourceOperator) op;
            if (nts.getDataSourceReference() != null) {
                AbstractLogicalOperator op2 = (AbstractLogicalOperator) nts.getDataSourceReference().getValue()
                        .getInputs().get(0).getValue();
                substituteVarRec(op2, v1, v2, goThroughNts, ctx);
            }
        }
        if (op.hasNestedPlans()) {
            AbstractOperatorWithNestedPlans aonp = (AbstractOperatorWithNestedPlans) op;
            for (ILogicalPlan p : aonp.getNestedPlans()) {
                for (Mutable<ILogicalOperator> ref : p.getRoots()) {
                    AbstractLogicalOperator aop = (AbstractLogicalOperator) ref.getValue();
                    substituteVarRec(aop, v1, v2, goThroughNts, ctx);
                }
            }
        }
    }

    public static ILogicalPlan deepCopy(ILogicalPlan plan, ILogicalOperator dataSource) throws AlgebricksException {
        List<Mutable<ILogicalOperator>> roots = plan.getRoots();
        List<Mutable<ILogicalOperator>> newRoots = clonePipeline(roots);
        ILogicalPlan newPlan = new ALogicalPlanImpl(newRoots);
        setDataSource(newPlan, dataSource);
        return newPlan;
    }

    public static ILogicalPlan deepCopy(ILogicalPlan plan, IOptimizationContext ctx) throws AlgebricksException {
        List<Mutable<ILogicalOperator>> roots = plan.getRoots();
        List<Mutable<ILogicalOperator>> newRoots = clonePipeline(roots);
        cloneTypeEnvironments(ctx, roots, newRoots);
        return new ALogicalPlanImpl(newRoots);
    }

    public static Pair<ILogicalOperator, Map<LogicalVariable, LogicalVariable>> deepCopyWithNewVars(
            ILogicalOperator root, IOptimizationContext ctx) throws AlgebricksException {
        LogicalOperatorDeepCopyWithNewVariablesVisitor deepCopyVisitor = new
                LogicalOperatorDeepCopyWithNewVariablesVisitor(ctx, null, true);
        ILogicalOperator newRoot = deepCopyVisitor.deepCopy(root);
        return Pair.of(newRoot, deepCopyVisitor.getInputToOutputVariableMapping());
    }

    private static void setDataSource(ILogicalPlan plan, ILogicalOperator dataSource) {
        for (Mutable<ILogicalOperator> rootRef : plan.getRoots()) {
            setDataSource(rootRef, dataSource);
        }
    }

    private static void setDataSource(Mutable<ILogicalOperator> opRef, ILogicalOperator dataSource) {
        ILogicalOperator op = opRef.getValue();
        if (op.getOperatorTag() == LogicalOperatorTag.NESTEDTUPLESOURCE) {
            NestedTupleSourceOperator nts = (NestedTupleSourceOperator) op;
            nts.setDataSourceReference(new MutableObject<ILogicalOperator>(dataSource));
        }
        for (Mutable<ILogicalOperator> childRef : op.getInputs()) {
            setDataSource(childRef, dataSource);
        }
    }

    private static List<Mutable<ILogicalOperator>> clonePipeline(List<Mutable<ILogicalOperator>> roots)
            throws AlgebricksException {
        List<Mutable<ILogicalOperator>> newRoots = new ArrayList<Mutable<ILogicalOperator>>();
        for (Mutable<ILogicalOperator> opRef : roots) {
            newRoots.add(new MutableObject<ILogicalOperator>(bottomUpCopyOperators(opRef.getValue())));
        }
        return newRoots;
    }

    private static void cloneTypeEnvironments(IOptimizationContext ctx, List<Mutable<ILogicalOperator>> roots,
            List<Mutable<ILogicalOperator>> newRoots) {
        for (int i = 0; i < newRoots.size(); i++) {
            Mutable<ILogicalOperator> opRef = newRoots.get(i);
            Mutable<ILogicalOperator> oldOpRef = roots.get(i);
            while (opRef.getValue().getInputs().size() > 0) {
                ctx.setOutputTypeEnvironment(opRef.getValue(), ctx.getOutputTypeEnvironment(oldOpRef.getValue()));
                opRef = opRef.getValue().getInputs().get(0);
                oldOpRef = oldOpRef.getValue().getInputs().get(0);
            }
            ctx.setOutputTypeEnvironment(opRef.getValue(), ctx.getOutputTypeEnvironment(oldOpRef.getValue()));
        }
    }

    public static ILogicalOperator bottomUpCopyOperators(ILogicalOperator op) throws AlgebricksException {
        ILogicalOperator newOp = deepCopy(op);
        newOp.getInputs().clear();
        for (Mutable<ILogicalOperator> child : op.getInputs()) {
            newOp.getInputs().add(new MutableObject<ILogicalOperator>(bottomUpCopyOperators(child.getValue())));
        }
        return newOp;
    }

    public static ILogicalOperator deepCopy(ILogicalOperator op) throws AlgebricksException {
        OperatorDeepCopyVisitor visitor = new OperatorDeepCopyVisitor();
        AbstractLogicalOperator copiedOperator = (AbstractLogicalOperator) op.accept(visitor, null);
        copiedOperator.setExecutionMode(op.getExecutionMode());
        copiedOperator.getAnnotations().putAll(op.getAnnotations());
        copiedOperator.setSchema(op.getSchema());
        AbstractLogicalOperator sourceOp = (AbstractLogicalOperator) op;
        copiedOperator.setPhysicalOperator(sourceOp.getPhysicalOperator());
        return copiedOperator;
    }

    /**
     * Compute type environment of a newly generated operator {@code op} and its input.
     *
     * @param op,
     *            the logical operator.
     * @param context,the
     *            optimization context.
     * @throws AlgebricksException
     */
    public static void computeTypeEnvironmentBottomUp(ILogicalOperator op, ITypingContext context)
            throws AlgebricksException {
        for (Mutable<ILogicalOperator> children : op.getInputs()) {
            computeTypeEnvironmentBottomUp(children.getValue(), context);
        }
        AbstractLogicalOperator abstractOp = (AbstractLogicalOperator) op;
        if (abstractOp.hasNestedPlans()) {
            for (ILogicalPlan p : ((AbstractOperatorWithNestedPlans) op).getNestedPlans()) {
                for (Mutable<ILogicalOperator> rootRef : p.getRoots()) {
                    computeTypeEnvironmentBottomUp(rootRef.getValue(), context);
                }
            }
        }
        context.computeAndSetTypeEnvironmentForOperator(op);
    }

    /**
     * Computes the type environment for a logical query plan.
     *
     * @param plan,
     *            the logical plan to consider.
     * @param context
     *            the typing context.
     * @throws AlgebricksException
     */
    public static void computeTypeEnvironment(ILogicalPlan plan, ITypingContext context) throws AlgebricksException {
        for (Mutable<ILogicalOperator> rootRef : plan.getRoots()) {
            computeTypeEnvironmentBottomUp(rootRef.getValue(), context);
        }
    }

    /***
     * Is the operator >op an ancestor of any operators with tags in the set tags?
     *
     * @param op
     * @param tags
     * @return True if yes; false other wise.
     */
    public static boolean ancestorOfOperators(ILogicalOperator op, Set<LogicalOperatorTag> tags) {
        LogicalOperatorTag opTag = op.getOperatorTag();
        if (tags.contains(opTag)) {
            return true;
        }
        for (Mutable<ILogicalOperator> children : op.getInputs()) {
            if (ancestorOfOperators(children.getValue(), tags)) {
                return true;
            }
        }
        return false;
    }

}


text:
@interface CRNavigationBar : UINavigationBar

@end


text:
<a href="<?php echo base_url(); ?>">Inicio

<a href="<?php echo base_url(); ?>curules/form_buscar/">Curules

Crear Curules

				<form name="form">

Nueva Curul

									Codigo
									<input type="text" placeholder="Codigo Curul" id="codigo" name="codigo" class="form-control input-sm">

									Descripcion
									<input type="text" placeholder="Descripcion" id="descripcion" name="descripcion" class="form-control input-sm">

									Tipo
									<select class="form-control input-sm" id="tipo" name="tipo">
										<option value="0">Seleccione Tipo</option>
										<option value="G">Global</option>
										<option value="P">Privado</option>
									</select>

									<input type="button" name="aceptar" id="aceptar" value="Aceptar" class="btn btn-primary">

				</form>


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Beih. Nova Hedwigia 101: 57 (1991)

#### Original name
Coltricia arenicola Corner

### Remarks
null


text:
# [gulp](http://gulpjs.com)-flatten [![NPM version](https://img.shields.io/npm/v/gulp-flatten.svg)](http://badge.fury.io/js/gulp-flatten) [![Build Status](https://api.travis-ci.org/armed/gulp-flatten.svg?branch=master)](https://travis-ci.org/armed/gulp-flatten)

>Remove or replace relative path for files (gulp v3).

## Install

```
npm install gulp-flatten
```

## Usage

Example source directory with bower compoments:
```
├── angular
│   ├── README.md
│   ├── angular-csp.css
│   ├── angular.js
│   ├── angular.min.js
│   └── bower.json
├── angular-route
│   ├── README.md
│   ├── angular-route.js
│   ├── angular-route.min.js
│   ├── angular-route.min.js.map
│   └── bower.json
├── angular-sanitize
│   ├── README.md
│   ├── angular-sanitize.js
│   ├── angular-sanitize.min.js
│   ├── angular-sanitize.min.js.map
│   └── bower.json
└── bootstrap
    ├── DOCS-LICENSE
    ├── LICENSE
    ├── LICENSE-MIT
    ├── README.md
    ├── bower.json
    └── dist
        ├── css
        │   ├── bootstrap-theme.css
        │   ├── bootstrap-theme.min.css
        │   ├── bootstrap.css
        │   └── bootstrap.min.css
        ├── fonts
        │   ├── glyphicons-halflings-regular.eot
        │   ├── glyphicons-halflings-regular.svg
        │   ├── glyphicons-halflings-regular.ttf
        │   └── glyphicons-halflings-regular.woff
        └── js
            ├── bootstrap.js
            └── bootstrap.min.js
```

By default `gulp` stores files with it's relative paths. To copy all minified javascript files from `bower_components` to `build` folder without relative paths:
```js
var flatten = require('gulp-flatten');

gulp.src('bower_components/**/*.min.js')
  .pipe(flatten())
  .pipe(gulp.dest('build/js'));
```

Result will be list of all `.min.js` files inside `build/js` dir:
```
build
└── js
    ├── angular-route.min.js
    ├── angular-sanitize.min.js
    ├── angular.min.js
    └── bootstrap.min.js
```

## Options

### flatten(options)

#### options.newPath

Type: `String`
Default: `''`

Relative path for file.

#### options.includeParents

Type: `Number` or `Array` of two numbers

If passed in as positive number, it will include the number of top-level parents in the output. Using this code:

```js
gulp.src(['bower_components/**/*.css'])
  .pipe(flatten({ includeParents: 1} ))
  .pipe(gulp.dest('build/'));
```

will create this structure (from sample directory tree above):

```
└── bootstrap
    ├── bootstrap-theme.css
    ├── bootstrap-theme.min.css
    ├── bootstrap.css
    ├── bootstrap.min.css
    └── bootstrap.min.js
```

If passed in as negative number, it will include the number of bottom-level parents in the output. Using this code:

```js
gulp.src(['bower_components/**/*.css'])
  .pipe(flatten({ includeParents: -1} )) //or indludeParents: [0, 1]
  .pipe(gulp.dest('build/'));
```

will create this structure:

```
└── css
    ├── bootstrap-theme.css
    ├── bootstrap-theme.min.css
    ├── bootstrap.css
    ├── bootstrap.min.css
    └── bootstrap.min.js
```

If passes as array of two numbers, both parents from top and bottom will be kept in resulting path of a file.

```js
gulp.src(['bower_components/**/*.css'])
  .pipe(flatten({ includeParents: [1, 1]} ))
  .pipe(gulp.dest('build/'));
```

will create this structure:

```
└── bootstrap
    └── css
        ├── bootstrap-theme.css
        ├── bootstrap-theme.min.css
        ├── bootstrap.css
        └── bootstrap.min.css
```

## License

MIT