text:
package ru.doublebyte.telegramWeatherBot.weatherTypes;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class WeatherCondition {

    @JsonProperty("id")
    private int id;

    @JsonProperty("main")
    private String main;

    @JsonProperty("description")
    private String description;

    @JsonProperty("icon")
    private String icon;

    public WeatherCondition() {

    }

    ///////////////////////////////////////////////////////////////////////////

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMain() {
        return main;
    }

    public void setMain(String main) {
        this.main = main;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}

redpajama_set_name: RedPajamaGithub


text:
using System;
using MvvmCross.Platform;
using MvvmCross.Core.ViewModels;
using MvvmCross.Platform.IoC;
using HelloWorld.ViewModels;

namespace HelloWorld
{
	public class App : MvxApplication
    {
        public override void Initialize()
        {
			CreatableTypes()
				.EndingWith("Service")
				.AsInterfaces()
				.RegisterAsLazySingleton();

            CreatableTypes()
                .EndingWith("Repository")
                .AsInterfaces()
                .RegisterAsLazySingleton();

			RegisterNavigationServiceAppStart<LoginViewModel>();
        }
	}
}


text:
/* global define, Promise */
var Q = require('q');
(function (root, factory) {
    'use strict';
    if (typeof module === 'object' && module.exports && typeof require === 'function') {
        // CommonJS
        module.exports = factory();
    } else if (typeof define === 'function' && typeof define.amd === 'object') {
        // AMD. Register as an anonymous module.
        define(factory);
    } else {
        // Browser globals
        root.Queue = factory();
    }
})
    (this, function () {
        'use strict';

        var noop = function () { };

        /**
         * @param {*} value
         * @returns {Promise}
         */
        var resolveWith = function (value) {
            if (value && typeof value.then === 'function') {
                return value;
            }

            return new Q.Promise((resolve) => {
                resolve(value);
            });
        };

        class Queue {
            /**
             * It limits concurrently executed promises
             *
             * @param {Number} [maxPendingPromises=Infinity] max number of concurrently executed promises
             * @param {Number} [maxQueuedPromises=Infinity]  max number of queued promises
             * @constructor
             */
            constructor(maxPendingPromises, maxQueuedPromises) {
                this.pendingPromises = [];
                this.maxPendingPromises = typeof maxPendingPromises !== 'undefined' ? maxPendingPromises : Infinity;
                this.maxQueuedPromises = typeof maxQueuedPromises !== 'undefined' ? maxQueuedPromises : Infinity;
                this.queue = [];
            }

            /**
             * add the promise
             * @param {Function} promiseGenerator
             * @return {Promise}
             */
            add(promiseGenerator) {
                var defer = Q.defer();
                // Do not queue to much promises
                if (this.queue.length >= this.maxQueuedPromises) {
                    defer.reject(new Error('Queue limit reached'));
                }else{
                    // Add to queue
                    this.queue.push({
                        promiseGenerator: promiseGenerator,
                        resolve: defer.resolve,
                        reject: defer.reject,
                        notify: defer.notify || noop,
                        promise: defer.promise
                    });
                    this._process();
                }
                return defer.promise;
            };

            /**
             * Number of simultaneously running promises (which are resolving)
             * @return {number}
             */
            getPendingLength() {
                return this.pendingPromises.length;
            };

            /**
             * Number of queued promises (which are waiting)
             * @return {number}
             */
            getQueueLength() {
                return this.queue.length;
            };

            /**
             * Remove the completed promise
             */
            remove(promise) {
                if (promise) {
                    var idx = this.pendingPromises.indexOf(promise);
                    if (idx != -1) {
                        this.pendingPromises.splice(idx, 1);
                    }
                } else {
                    this.pendingPromises.shift();
                }
                this._process();
            };

            /**
             * @returns {boolean} true if first item removed from queue
             * @private
             */
            _process() {
                //console.log("Pending Promises length - " + this.getPendingLength());
                if (this.getPendingLength() >= this.maxPendingPromises) {
                    return false;
                }

                // Remove from queue
                var item = this.queue.shift();
                if (!item) {
                    return false;
                }

                try {
                    this.pendingPromises.push(item.promise);
                    //console.log("Pending Promises length - " + this.getPendingLength());
                    resolveWith(item.promiseGenerator())
                        // Forward all stuff
                        .then((value) => {
                            // It should pass values
                            item.resolve(value);
                        }, (err) => {
                            // It should not mask errors
                            item.reject(err);
                            this.remove(item.promise);
                        }, (message) => {
                            // It should pass notifications
                            item.notify(message);
                        });
                } catch (err) {
                    item.reject(err);
                    this.remove(item.promise);
                }
                return true;
            }
        };

        return Queue;
    });


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
null

#### Original name
Boscia filipes Gilg

### Remarks
null


text:
package com.oracle.pts.salesparty.wsclient.generated;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;

/**
 *
Java class for FinancialReport complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="FinancialReport">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="FinancialReportId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
 *         <element name="DateReportIssued" type="{http://xmlns.oracle.com/adf/svc/types/}date-Date" minOccurs="0"/>
 *         <element name="PartyId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
 *         <element name="DocumentReference" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="IssuedPeriod" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="RequiringAuthority" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="TypeOfFinancialReport" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ReportStartDate" type="{http://xmlns.oracle.com/adf/svc/types/}date-Date" minOccurs="0"/>
 *         <element name="ReportEndDate" type="{http://xmlns.oracle.com/adf/svc/types/}date-Date" minOccurs="0"/>
 *         <element name="AuditInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ConsolidatedInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="EstimatedInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="FiscalInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="FinalInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ForecastInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="OpeningInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ProformaInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="QualifiedInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="RestatedInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="SignedByPrincipalsInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="TrialBalanceInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="UnbalancedInd" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="CreatedBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="CreationDate" type="{http://xmlns.oracle.com/adf/svc/types/}dateTime-Timestamp" minOccurs="0"/>
 *         <element name="LastUpdateLogin" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LastUpdateDate" type="{http://xmlns.oracle.com/adf/svc/types/}dateTime-Timestamp" minOccurs="0"/>
 *         <element name="LastUpdatedBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="RequestId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
 *         <element name="WhUdpateId" type="{http://xmlns.oracle.com/adf/svc/types/}date-Date" minOccurs="0"/>
 *         <element name="Status" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="CreatedByModule" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="FinancialNumber" type="{http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/}FinancialNumber" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FinancialReport", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", propOrder = {
    "financialReportId",
    "dateReportIssued",
    "partyId",
    "documentReference",
    "issuedPeriod",
    "requiringAuthority",
    "typeOfFinancialReport",
    "reportStartDate",
    "reportEndDate",
    "auditInd",
    "consolidatedInd",
    "estimatedInd",
    "fiscalInd",
    "finalInd",
    "forecastInd",
    "openingInd",
    "proformaInd",
    "qualifiedInd",
    "restatedInd",
    "signedByPrincipalsInd",
    "trialBalanceInd",
    "unbalancedInd",
    "createdBy",
    "creationDate",
    "lastUpdateLogin",
    "lastUpdateDate",
    "lastUpdatedBy",
    "requestId",
    "whUdpateId",
    "status",
    "createdByModule",
    "financialNumber"
})
public class FinancialReport {

    @XmlElement(name = "FinancialReportId")
    protected Long financialReportId;
    @XmlElementRef(name = "DateReportIssued", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<XMLGregorianCalendar> dateReportIssued;
    @XmlElement(name = "PartyId")
    protected Long partyId;
    @XmlElementRef(name = "DocumentReference", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> documentReference;
    @XmlElementRef(name = "IssuedPeriod", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> issuedPeriod;
    @XmlElementRef(name = "RequiringAuthority", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> requiringAuthority;
    @XmlElementRef(name = "TypeOfFinancialReport", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> typeOfFinancialReport;
    @XmlElementRef(name = "ReportStartDate", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<XMLGregorianCalendar> reportStartDate;
    @XmlElementRef(name = "ReportEndDate", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<XMLGregorianCalendar> reportEndDate;
    @XmlElementRef(name = "AuditInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> auditInd;
    @XmlElementRef(name = "ConsolidatedInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> consolidatedInd;
    @XmlElementRef(name = "EstimatedInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> estimatedInd;
    @XmlElementRef(name = "FiscalInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> fiscalInd;
    @XmlElementRef(name = "FinalInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> finalInd;
    @XmlElementRef(name = "ForecastInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> forecastInd;
    @XmlElementRef(name = "OpeningInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> openingInd;
    @XmlElementRef(name = "ProformaInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> proformaInd;
    @XmlElementRef(name = "QualifiedInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> qualifiedInd;
    @XmlElementRef(name = "RestatedInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> restatedInd;
    @XmlElementRef(name = "SignedByPrincipalsInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> signedByPrincipalsInd;
    @XmlElementRef(name = "TrialBalanceInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> trialBalanceInd;
    @XmlElementRef(name = "UnbalancedInd", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> unbalancedInd;
    @XmlElement(name = "CreatedBy")
    protected String createdBy;
    @XmlElement(name = "CreationDate")
    protected XMLGregorianCalendar creationDate;
    @XmlElementRef(name = "LastUpdateLogin", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> lastUpdateLogin;
    @XmlElement(name = "LastUpdateDate")
    protected XMLGregorianCalendar lastUpdateDate;
    @XmlElement(name = "LastUpdatedBy")
    protected String lastUpdatedBy;
    @XmlElementRef(name = "RequestId", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<Long> requestId;
    @XmlElementRef(name = "WhUdpateId", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<XMLGregorianCalendar> whUdpateId;
    @XmlElementRef(name = "Status", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> status;
    @XmlElementRef(name = "CreatedByModule", namespace = "http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/", type = JAXBElement.class)
    protected JAXBElement<String> createdByModule;
    @XmlElement(name = "FinancialNumber")
    protected List<FinancialNumber> financialNumber;

    /**
     * Gets the value of the financialReportId property.
     *
     * @return
     *     possible object is
     *     {@link Long }
     *
     */
    public Long getFinancialReportId() {
        return financialReportId;
    }

    /**
     * Sets the value of the financialReportId property.
     *
     * @param value
     *     allowed object is
     *     {@link Long }
     *
     */
    public void setFinancialReportId(Long value) {
        this.financialReportId = value;
    }

    /**
     * Gets the value of the dateReportIssued property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *
     */
    public JAXBElement<XMLGregorianCalendar> getDateReportIssued() {
        return dateReportIssued;
    }

    /**
     * Sets the value of the dateReportIssued property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *
     */
    public void setDateReportIssued(JAXBElement<XMLGregorianCalendar> value) {
        this.dateReportIssued = ((JAXBElement<XMLGregorianCalendar> ) value);
    }

    /**
     * Gets the value of the partyId property.
     *
     * @return
     *     possible object is
     *     {@link Long }
     *
     */
    public Long getPartyId() {
        return partyId;
    }

    /**
     * Sets the value of the partyId property.
     *
     * @param value
     *     allowed object is
     *     {@link Long }
     *
     */
    public void setPartyId(Long value) {
        this.partyId = value;
    }

    /**
     * Gets the value of the documentReference property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getDocumentReference() {
        return documentReference;
    }

    /**
     * Sets the value of the documentReference property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setDocumentReference(JAXBElement<String> value) {
        this.documentReference = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the issuedPeriod property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getIssuedPeriod() {
        return issuedPeriod;
    }

    /**
     * Sets the value of the issuedPeriod property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setIssuedPeriod(JAXBElement<String> value) {
        this.issuedPeriod = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the requiringAuthority property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getRequiringAuthority() {
        return requiringAuthority;
    }

    /**
     * Sets the value of the requiringAuthority property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setRequiringAuthority(JAXBElement<String> value) {
        this.requiringAuthority = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the typeOfFinancialReport property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getTypeOfFinancialReport() {
        return typeOfFinancialReport;
    }

    /**
     * Sets the value of the typeOfFinancialReport property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setTypeOfFinancialReport(JAXBElement<String> value) {
        this.typeOfFinancialReport = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the reportStartDate property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *
     */
    public JAXBElement<XMLGregorianCalendar> getReportStartDate() {
        return reportStartDate;
    }

    /**
     * Sets the value of the reportStartDate property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *
     */
    public void setReportStartDate(JAXBElement<XMLGregorianCalendar> value) {
        this.reportStartDate = ((JAXBElement<XMLGregorianCalendar> ) value);
    }

    /**
     * Gets the value of the reportEndDate property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *
     */
    public JAXBElement<XMLGregorianCalendar> getReportEndDate() {
        return reportEndDate;
    }

    /**
     * Sets the value of the reportEndDate property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *
     */
    public void setReportEndDate(JAXBElement<XMLGregorianCalendar> value) {
        this.reportEndDate = ((JAXBElement<XMLGregorianCalendar> ) value);
    }

    /**
     * Gets the value of the auditInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getAuditInd() {
        return auditInd;
    }

    /**
     * Sets the value of the auditInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setAuditInd(JAXBElement<String> value) {
        this.auditInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the consolidatedInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getConsolidatedInd() {
        return consolidatedInd;
    }

    /**
     * Sets the value of the consolidatedInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setConsolidatedInd(JAXBElement<String> value) {
        this.consolidatedInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the estimatedInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getEstimatedInd() {
        return estimatedInd;
    }

    /**
     * Sets the value of the estimatedInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setEstimatedInd(JAXBElement<String> value) {
        this.estimatedInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the fiscalInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getFiscalInd() {
        return fiscalInd;
    }

    /**
     * Sets the value of the fiscalInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setFiscalInd(JAXBElement<String> value) {
        this.fiscalInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the finalInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getFinalInd() {
        return finalInd;
    }

    /**
     * Sets the value of the finalInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setFinalInd(JAXBElement<String> value) {
        this.finalInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the forecastInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getForecastInd() {
        return forecastInd;
    }

    /**
     * Sets the value of the forecastInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setForecastInd(JAXBElement<String> value) {
        this.forecastInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the openingInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getOpeningInd() {
        return openingInd;
    }

    /**
     * Sets the value of the openingInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setOpeningInd(JAXBElement<String> value) {
        this.openingInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the proformaInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getProformaInd() {
        return proformaInd;
    }

    /**
     * Sets the value of the proformaInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setProformaInd(JAXBElement<String> value) {
        this.proformaInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the qualifiedInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getQualifiedInd() {
        return qualifiedInd;
    }

    /**
     * Sets the value of the qualifiedInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setQualifiedInd(JAXBElement<String> value) {
        this.qualifiedInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the restatedInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getRestatedInd() {
        return restatedInd;
    }

    /**
     * Sets the value of the restatedInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setRestatedInd(JAXBElement<String> value) {
        this.restatedInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the signedByPrincipalsInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getSignedByPrincipalsInd() {
        return signedByPrincipalsInd;
    }

    /**
     * Sets the value of the signedByPrincipalsInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setSignedByPrincipalsInd(JAXBElement<String> value) {
        this.signedByPrincipalsInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the trialBalanceInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getTrialBalanceInd() {
        return trialBalanceInd;
    }

    /**
     * Sets the value of the trialBalanceInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setTrialBalanceInd(JAXBElement<String> value) {
        this.trialBalanceInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the unbalancedInd property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getUnbalancedInd() {
        return unbalancedInd;
    }

    /**
     * Sets the value of the unbalancedInd property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setUnbalancedInd(JAXBElement<String> value) {
        this.unbalancedInd = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the createdBy property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getCreatedBy() {
        return createdBy;
    }

    /**
     * Sets the value of the createdBy property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setCreatedBy(String value) {
        this.createdBy = value;
    }

    /**
     * Gets the value of the creationDate property.
     *
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *
     */
    public XMLGregorianCalendar getCreationDate() {
        return creationDate;
    }

    /**
     * Sets the value of the creationDate property.
     *
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *
     */
    public void setCreationDate(XMLGregorianCalendar value) {
        this.creationDate = value;
    }

    /**
     * Gets the value of the lastUpdateLogin property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getLastUpdateLogin() {
        return lastUpdateLogin;
    }

    /**
     * Sets the value of the lastUpdateLogin property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setLastUpdateLogin(JAXBElement<String> value) {
        this.lastUpdateLogin = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the lastUpdateDate property.
     *
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *
     */
    public XMLGregorianCalendar getLastUpdateDate() {
        return lastUpdateDate;
    }

    /**
     * Sets the value of the lastUpdateDate property.
     *
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *
     */
    public void setLastUpdateDate(XMLGregorianCalendar value) {
        this.lastUpdateDate = value;
    }

    /**
     * Gets the value of the lastUpdatedBy property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    /**
     * Sets the value of the lastUpdatedBy property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLastUpdatedBy(String value) {
        this.lastUpdatedBy = value;
    }

    /**
     * Gets the value of the requestId property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link Long }{@code >}
     *
     */
    public JAXBElement<Long> getRequestId() {
        return requestId;
    }

    /**
     * Sets the value of the requestId property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link Long }{@code >}
     *
     */
    public void setRequestId(JAXBElement<Long> value) {
        this.requestId = ((JAXBElement<Long> ) value);
    }

    /**
     * Gets the value of the whUdpateId property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *
     */
    public JAXBElement<XMLGregorianCalendar> getWhUdpateId() {
        return whUdpateId;
    }

    /**
     * Sets the value of the whUdpateId property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *
     */
    public void setWhUdpateId(JAXBElement<XMLGregorianCalendar> value) {
        this.whUdpateId = ((JAXBElement<XMLGregorianCalendar> ) value);
    }

    /**
     * Gets the value of the status property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getStatus() {
        return status;
    }

    /**
     * Sets the value of the status property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setStatus(JAXBElement<String> value) {
        this.status = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the createdByModule property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getCreatedByModule() {
        return createdByModule;
    }

    /**
     * Sets the value of the createdByModule property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setCreatedByModule(JAXBElement<String> value) {
        this.createdByModule = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the financialNumber property.
     *
     *

     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a set method for the financialNumber property.
     *
     *

     * For example, to add a new item, do as follows:
     *

     *    getFinancialNumber().add(newItem);
     *

     *
     *
     *

     * Objects of the following type(s) are allowed in the list
     * {@link FinancialNumber }
     *
     *
     */
    public List<FinancialNumber> getFinancialNumber() {
        if (financialNumber == null) {
            financialNumber = new ArrayList<FinancialNumber>();
        }
        return this.financialNumber;
    }

}


text:
//
//  LayerStimulus.hpp
//  LayerStimulus
//
//  Created by Christopher Stawarz on 6/19/18.
//  Copyright © 2018 The MWorks Project. All rights reserved.
//

#ifndef LayerStimulus_hpp
#define LayerStimulus_hpp

BEGIN_NAMESPACE_MW

class LayerStimulus : public MetalStimulus {

public:
    static void describeComponent(ComponentInfo &info);

    explicit LayerStimulus(const ParameterValueMap &parameters);
    ~LayerStimulus();

    void addChild(std::map<std::string, std::string> parameters,
                  ComponentRegistryPtr reg,
                  boost::shared_ptr<Component> child) override;

    void freeze(bool shouldFreeze = true) override;

    void load(boost::shared_ptr<StimulusDisplay> display) override;
    void unload(boost::shared_ptr<StimulusDisplay> display) override;
    void setVisible(bool newVisible) override;
    bool needDraw(boost::shared_ptr<StimulusDisplay> display) override;
    Datum getCurrentAnnounceDrawData() override;

private:
    void loadMetal(MetalDisplay &display) override;
    void unloadMetal(MetalDisplay &display) override;
    void drawMetal(MetalDisplay &display) override;

    std::vector<boost::shared_ptr<Stimulus>> children;

    id<MTLRenderPipelineState> renderPipelineState;
    int framebufferID;
    id<MTLTexture> framebufferTexture;

};

END_NAMESPACE_MW

#endif /* LayerStimulus_hpp */


text:
// This file is automatically generated.

package adila.db;

/*
 * MG Series Any 302
 *
 * DEVICE: TR10CS2_3
 * MODEL: TR10CS2
 */
final class tr10cs25f3_tr10cs2 {
    public static final String DATA = "MG Series|Any 302|";
}


text:
/**
    @file ConnectionSTREAMEntry.cpp
    @author Lime Microsystems
    @brief Implementation of STREAM board connection.
*/

#include "ConnectionSTREAM_UNITE.h"
#include <fstream>
#include <stdio.h>
using namespace lime;

//! make a static-initialized entry in the registry
void __loadConnectionSTREAM_UNITEEntry(void) //TODO fixme replace with LoadLibrary/dlopen
{
static ConnectionSTREAM_UNITEEntry STREAM_UNITEEntry;
}

ConnectionSTREAM_UNITEEntry::ConnectionSTREAM_UNITEEntry(void):
    ConnectionFX3Entry("STREAM+UNITE")
{

}

ConnectionSTREAM_UNITEEntry::~ConnectionSTREAM_UNITEEntry(void)
{

}

static std::vector<std::string> FindAllComPorts()
{
    std::vector<std::string> comPortList;
#ifndef __unix__
	HKEY hSERIALCOMM;
	if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("HARDWARE\\DEVICEMAP\\SERIALCOMM"),	0, KEY_QUERY_VALUE, &hSERIALCOMM) == ERROR_SUCCESS)
	{
		// Get the max value name and max value lengths
		DWORD dwMaxValueNameLen;
		DWORD dwMaxValueLen;
		DWORD dwQueryInfo = RegQueryInfoKey(hSERIALCOMM, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &dwMaxValueNameLen, &dwMaxValueLen, NULL, NULL);
		if (dwQueryInfo == ERROR_SUCCESS)
		{
			DWORD dwMaxValueNameSizeInChars = dwMaxValueNameLen + 1;
			// Include space for the NULL terminator
			DWORD dwMaxValueNameSizeInBytes = dwMaxValueNameSizeInChars*sizeof(TCHAR);
			DWORD dwMaxValueDataSizeInChars = dwMaxValueLen / sizeof(TCHAR) + 1;
			// Include space for the NULL terminator
			DWORD dwMaxValueDataSizeInBytes = dwMaxValueDataSizeInChars*sizeof(TCHAR);

			// Allocate some space for the value name and value data
			TCHAR* szValueName = new TCHAR[dwMaxValueNameSizeInChars];
			TCHAR* byValue = new TCHAR[dwMaxValueDataSizeInBytes];
			if (szValueName && byValue)
			{
				// Enumerate all the values underneath HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM
				DWORD dwIndex = 0;
				DWORD dwType;
				DWORD dwValueNameSize = dwMaxValueNameSizeInChars;
				DWORD dwDataSize = dwMaxValueDataSizeInBytes;
				memset(szValueName, 0, dwMaxValueNameSizeInBytes);
				memset(byValue, 0, dwMaxValueDataSizeInBytes);
				LONG nEnum = RegEnumValue(hSERIALCOMM, dwIndex, szValueName, &dwValueNameSize, NULL, &dwType, (LPBYTE)byValue, &dwDataSize);
				while (nEnum == ERROR_SUCCESS)
				{
					// If the value is of the correct type, then add it to the array
					if (dwType == REG_SZ)
					{
					    char portname[512];
						TCHAR* szPort = byValue;
						int nUserNameLenUnicode = lstrlen( szPort ); // Convert all UNICODE characters
						int nUserNameLen = WideCharToMultiByte( CP_ACP, // ANSI Code Page
                        0, // No special handling of unmapped chars
                        (LPCWSTR)szPort, // wide-character string to be converted
                        nUserNameLenUnicode,
                        NULL, 0, // No output buffer since we are calculating length
                        NULL, NULL ); // Unrepresented char replacement - Use Default
                        TCHAR* pszUserName = new TCHAR[ nUserNameLen ]; // nUserNameLen includes the NULL character
                        WideCharToMultiByte( CP_ACP, // ANSI Code Page
                        0, // No special handling of unmapped chars
						(LPCWSTR)szPort, // wide-character string to be converted
                        nUserNameLenUnicode,
                        portname,
                        nUserNameLen,
                        NULL, NULL ); // Unrepresented char replacement - Use Default
						portname[nUserNameLen] = 0;
#ifdef UNICODE
                        comPortList.push_back(portname);
#else
                        comPortList.push_back(szPort);
#endif
					}
					// Prepare for the next time around
					dwValueNameSize = dwMaxValueNameSizeInChars;
					dwDataSize = dwMaxValueDataSizeInBytes;
					memset(szValueName, 0, dwMaxValueNameSizeInBytes);
					memset(byValue, 0, dwMaxValueDataSizeInBytes);
					++dwIndex;
					nEnum = RegEnumValue(hSERIALCOMM, dwIndex, szValueName,	&dwValueNameSize, NULL, &dwType, (LPBYTE)byValue, &dwDataSize);
				}
			}
			delete szValueName;
			delete byValue;
		}
		// Close the registry key now that we are finished with it
		RegCloseKey(hSERIALCOMM);

		if (dwQueryInfo != ERROR_SUCCESS)
			SetLastError(dwQueryInfo);
	}
#else
    FILE *lsPipe;
    lsPipe = popen("ls /dev/* -d -1 | grep ttyACM", "r");
    char tempBuffer[512];
    while(fscanf(lsPipe, "%s", tempBuffer) == 1)
        comPortList.push_back(tempBuffer);
    pclose(lsPipe);
#endif // __unix__
    return comPortList;
}

std::vector<ConnectionHandle> ConnectionSTREAM_UNITEEntry::enumerate(const ConnectionHandle &hint)
{
    std::vector<ConnectionHandle> usbHandles;
    std::vector<ConnectionHandle> comHandles;
    std::vector<ConnectionHandle> handles;

    usbHandles = ConnectionFX3Entry::enumerate(hint);

    std::vector<std::string> comPorts = FindAllComPorts();
    for(auto comName : comPorts)
    {
        ConnectionEVB7COM port(comName.c_str(), 9600);
        if(port.IsOpen() == false)
            continue;

        if (hint.index >= 0 && hint.name.find(comName) == std::string::npos)
            continue;

        DeviceInfo info;
        if (hint.index >= 0)
            info = port.GetDeviceInfo();
        else
            info.deviceName = "";

        ConnectionHandle hnd;
        hnd.media = "COM";
        hnd.name = info.deviceName+"("+comName+")";
        hnd.addr = comName;
        comHandles.push_back(hnd);
    }

    for(auto usb : usbHandles)
    {
        if (usb.name.find("Stream") != std::string::npos)
            for(auto com : comHandles)
            {
                ConnectionHandle hnd(usb); //copy the usb index and serial
                hnd.module = "STREAM+UNITE";
                hnd.media = "USB+COM";
                hnd.name = usb.name+"+"+com.name;
                hnd.addr = usb.addr+"+"+com.addr;
                handles.push_back(hnd);
            }
    }
    return handles;
}

IConnection *ConnectionSTREAM_UNITEEntry::make(const ConnectionHandle &handle)
{
    //separate the addr field into usb IDs and com device
    const auto idsPlusCom = handle.addr;
    const auto comAddrPos = idsPlusCom.find("+");
    const auto vidPid = idsPlusCom.substr(0, comAddrPos);
    const auto comName = idsPlusCom.substr(comAddrPos+1);

    //now make the hybrid connection with com device
    return new ConnectionSTREAM_UNITE(ctx, vidPid, handle.serial, handle.index, comName.c_str());
}


text:
ALTER TABLE [dbo].[SESSION_GROUPS]
	ADD CONSTRAINT [PK_SessionGroups]
	PRIMARY KEY (Id)


text:
'use strict';

module.exports = app => {
  class StartController extends app.Controller {
    * delete() {
      this.ctx.body = yield this.service.test.delete(this.ctx.request.body);
    }
    * add() {
      this.ctx.body = yield this.service.test.create(this.ctx.request.body);
    }
    * get() {
      this.ctx.body = yield this.service.test.get(this.ctx.request.body);
    }
    * update() {
      this.ctx.body = yield this.service.test.update(this.ctx.request.body);
    }
  }
  return StartController;
};


text:
FOUNDATION_EXPORT double GRDBObjcVersionNumber;

//! Project version string for GRDBObjc.
FOUNDATION_EXPORT const unsigned char GRDBObjcVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <GRDBObjc/PublicHeader.h>
#import <GRDBObjc/FMDatabase+Objc.h>
#import <GRDBObjc/FMResultSet+Objc.h>


text:
'use strict';

const chai = require ('chai'),
	expect = chai.expect,
	dirtyChai = require ('dirty-chai'),
	chaiAsPromised = require ('chai-as-promised'),
	sinon = require ('sinon'),
	hapi = require ('hapi'),
	creds = require ('../../helpers/creds'),
	failed = require ('../../helpers/authFailed');

chai.use (chaiAsPromised);
chai.use (dirtyChai);

describe ('audit route', () => {
	var server,
		sandbox = sinon.sandbox.create ();

	beforeEach (() => {
		server = new hapi.Server ();
		server.connection ();
		return expect (server.register ([ require ('hapi-mongodb'), require ('vision'), failed ]).then (() => {
			require ('../../../../src/server/methods') (server);
			server.auth.strategy ('jwt', 'failed');
			server.route (require ('../../../../src/server/routes/audit'));
		})).to.be.fulfilled ();
	});

	afterEach (() => {
		sandbox.restore ();
	});

	describe ('collection', () => {
		it ('should list audit entries', done => {
			sinon.stub (server.methods, 'search').returns (Promise.resolve ({
				count: 1,
				values: [{}]
			}));

			server.inject ({
				method: 'GET',
				url: '/audit/?from=2016-03-30T05:00:00.000Z&to=2016-03-31T04:59:59.999Z',
				credentials: creds.admin
			}).then (response => {
				expect (response.statusCode).to.equal (200);
				done ();
			}).catch (err => {
				done (err);
			});
		});

		it ('should handle db failure ', done => {
			sinon.stub (server.methods, 'search').returns (Promise.reject ('err'));

			server.inject ({
				method: 'GET',
				url: '/audit/?from=2016-03-30T05:00:00.000Z&to=2016-03-31T04:59:59.999Z',
				credentials: creds.admin
			}).then (response => {
				expect (response.statusCode).to.equal (500);
				done ();
			}).catch (err => {
				done (err);
			});
		});

		it ('should list audit entries by event/username', done => {
			sinon.stub (server.methods, 'search').returns (Promise.resolve ({
				count: 1,
				values: [{}]
			}));

			server.inject ({
				method: 'GET',
				url: '/audit/?from=2016-03-30T05:00:00.000Z&to=2016-03-31T04:59:59.999Z&event=create&username=test',
				credentials: creds.admin
			}).then (response => {
				expect (response.statusCode).to.equal (200);
				done ();
			}).catch (err => {
				done (err);
			});
		});
	});
});


text:
from fantacalcio.app import create_app
from fantacalcio.settings import ProdConfig, DevConfig

def test_production_config():
    app = create_app(ProdConfig)
    assert app.config['ENV'] == 'prod'
    assert app.config['DEBUG'] is False
    assert app.config['DEBUG_TB_ENABLED'] is False
    assert app.config['ASSETS_DEBUG'] is False

def test_dev_config():
    app = create_app(DevConfig)
    assert app.config['ENV'] == 'dev'
    assert app.config['DEBUG'] is True
    assert app.config['ASSETS_DEBUG'] is True


text:
package eu.matejkormuth.weronicamc;

import org.bukkit.plugin.java.JavaPlugin;

public final class PluginAccessor {
    private final Module mod;

    public PluginAccessor(Module mod) {
        this.mod = mod;
    }

    public JavaPlugin getPlugin() {
        return (JavaPlugin) mod.plugin;
    }
}


text:
class ItemTwitter < ActiveRecord::Base
  has_one :item, as: :target, dependent: :destroy
  validates :twitter_id, presence: true

  def trim_attributes_and_save!(params)
    self.twitter_id = params['twitter_id']
    save!
  end
end


text:
package com.jukusoft.erp.lib.exception;

public class RequiredServiceNotFoundException extends RuntimeException {

    public RequiredServiceNotFoundException (String message) {
        super(message);
    }

}


text:
require_relative '../test_helper'

module SmartAnswer
  class StartNodePresenterTest < ActiveSupport::TestCase
    setup do
      start_node = Node.new(nil, :start_node_name)
      @renderer = stub('renderer')
      @presenter = StartNodePresenter.new(start_node, nil, renderer: @renderer)
    end

    test 'renderer is constructed using template name and directory obtained from start node' do
      start_node = stub('start-node', name: :start_node_name, template_directory: 'start-node-template-directory')

      SmartAnswer::ErbRenderer.expects(:new).with(
        has_entries(
          template_directory: 'start-node-template-directory',
          template_name: 'start_node_name'
        )
      )

      StartNodePresenter.new(start_node)
    end

    test '#title returns single line of content rendered for title block' do
      @renderer.stubs(:single_line_of_content_for).with(:title).returns('title-text')

      assert_equal 'title-text', @presenter.title
    end

    test '#meta_description returns single line of content rendered for meta_description block' do
      @renderer.stubs(:single_line_of_content_for).with(:meta_description).returns('meta-description-text')

      assert_equal 'meta-description-text', @presenter.meta_description
    end

    test '#body returns content rendered for body block with govspeak processing enabled by default' do
      @renderer.stubs(:content_for).with(:body, html: true).returns('body-html')

      assert_equal 'body-html', @presenter.body
    end

    test '#body returns content rendered for body block with govspeak processing disabled' do
      @renderer.stubs(:content_for).with(:body, html: false).returns('body-govspeak')

      assert_equal 'body-govspeak', @presenter.body(html: false)
    end

    test '#post_body returns content rendered for post_body block with govspeak processing enabled by default' do
      @renderer.stubs(:content_for).with(:post_body, html: true).returns('post-body-html')

      assert_equal 'post-body-html', @presenter.post_body
    end

    test '#post_body returns content rendered for post_body block with govspeak processing disabled' do
      @renderer.stubs(:content_for).with(:post_body, html: false).returns('post-body-govspeak')

      assert_equal 'post-body-govspeak', @presenter.post_body(html: false)
    end
  end
end


text:
sudo yum -y update
sudo yum -y install java-1.8.0-openjdk-devel.ppc64le wget autoconf libtool curl make unzip zip git gcc-c++ gcc
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk

#Download and install Bazel
mkdir bazel && cd bazel && \
wget https://github.com/bazelbuild/bazel/releases/download/0.10.0/bazel-0.10.0-dist.zip && \
unzip bazel-0.10.0-dist.zip && \
chmod -R +w . && \
./compile.sh
export PATH=$PATH:`pwd`/output
rm -rf bazel-0.10.0-dist.zip
cd ..

#Install Node
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | sh
source $HOME/.nvm/nvm.sh
nvm install stable
nvm use stable

#Install Maven
wget http://www-eu.apache.org/dist/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz
tar xzvf apache-maven-3.5.2-bin.tar.gz
export PATH=$PATH:`pwd`/apache-maven-3.5.2/bin
rm -rf apache-maven-3.5.2-bin.tar.gz

#Clone and Build Gerrit
git clone --recursive https://gerrit.googlesource.com/gerrit
cd gerrit && bazel build release


text:
import React from 'react';
import { DatePicker, List } from 'antd-mobile';
import { createForm } from 'rc-form';
import { FormattedMessage } from 'react-intl';
import moment from 'moment';
import 'moment/locale/en-gb';
import enUs from 'antd-mobile/lib/date-picker/locale/en_US';

const zhNow = moment().locale('en-gb').utcOffset(8);
const maxDate = moment('2018-12-03 +0800', 'YYYY-MM-DD Z').utcOffset(8);
const minDate = moment('2015-08-06 +0800', 'YYYY-MM-DD Z').utcOffset(8);

const maxTime = moment('22:00 +0800', 'HH:mm Z').utcOffset(8);
const minTime = moment('00:30 +0800', 'HH:mm Z').utcOffset(8);

const gmtNow = moment().utcOffset(0);

let homepage = React.createClass({
  getInitialState() {
    return {
      date: zhNow,
    };
  },
  onChange(date) {
    // console.log('onChange', date);
    this.setState({
      date,
    });
  },
  render() {
    const { getFieldProps } = this.props.form;
    return (<div>
      <List
        renderHeader={() => '选择时间'}
        style={{ backgroundColor: 'white' }}
      >
        <DatePicker
          mode="date"
          title="选择日期"
          extra="可选,小于结束日期"
          {...getFieldProps('date1', {
            initialValue: zhNow,
          })}
          minDate={minDate}
          maxDate={maxDate}
        >
          <List.Item arrow="horizontal">日期</List.Item>
        </DatePicker>
        <DatePicker mode="time" {...getFieldProps('time1')}>
          <List.Item arrow="horizontal">时间,不限定上下限</List.Item>
        </DatePicker>
        <DatePicker
          mode="time"
          {...getFieldProps('time', {
            initialValue: zhNow,
          })}
          minDate={minTime}
          maxDate={maxTime}
        >
          <List.Item arrow="horizontal">时间</List.Item>
        </DatePicker>
        <DatePicker className="forss"
          mode="datetime"
          onChange={this.onChange}
          value={this.state.date}
          okText="Ok"
          dismissText="Cancel"
          locale={enUs}
        >
          <List.Item arrow="horizontal">Date+Time</List.Item>
        </DatePicker>
        <DatePicker
          mode="time"
          format={val => val.format('HH:mm Z')}
          okText="Ok"
          dismissText="Cancel"
          locale={enUs}
          {...getFieldProps('customformat', {
            initialValue: gmtNow,
          })}
        >
          <List.Item arrow="horizontal">time(en_US)</List.Item>
        </DatePicker>
      </List>
        <FormattedMessage id='sHello' description='say hello to Howard.' defaultMessage='Hello' />
    </div>);
  },
});

homepage = createForm()(homepage);

export default homepage;


text:
#include "includes.h"

/*
 * MDB configuration are done in two stages -
 * 1. startup stage for fix DB (i.e. non configurable one like ENTRY)
 *    in InitBdbConfig()
 * 2. cn=indices stage to open all index DB
 *    in MDBInitializeIndexDB
 *
 */
DWORD
MDBInitConfig()
{
    DWORD   dwError = 0;

   VmDirLog( LDAP_DEBUG_TRACE, "InitMdbConfig: Begin" );

   // Initialize entry database
   dwError = VmDirAllocateMemory( sizeof(VDIR_CFG_MDB_DATAFILE_DESC) * 1,
                                  (PVOID)&gVdirMdbGlobals.mdbEntryDB.pMdbDataFiles);
   BAIL_ON_VMDIR_ERROR(dwError);

   gVdirMdbGlobals.mdbEntryDB.usNumDataFiles = 1;

   gVdirMdbGlobals.mdbEntryDB.pMdbDataFiles[0].bIsUnique = TRUE;

   dwError = VmDirAllocateStringA( VMDIR_ENTRY_DB,
                                   &gVdirMdbGlobals.mdbEntryDB.pMdbDataFiles[0].pszDBName);
   BAIL_ON_VMDIR_ERROR(dwError);

   dwError = VmDirAllocateStringA( VMDIR_DB_FILE_NAME,
                                   &gVdirMdbGlobals.mdbEntryDB.pMdbDataFiles[0].pszDBFile);
   BAIL_ON_VMDIR_ERROR(dwError);

   gVdirMdbGlobals.mdbEntryDB.btKeyCmpFcn = NULL;

   // Set hard limit of MAX index attribute
   //TODO, could make this configurable
   gVdirMdbGlobals.mdbIndexDBs.usMaxSize = BE_DB_MAX_INDEX_ATTRIBUTE;

   dwError = VmDirAllocateMemory( sizeof(VDIR_MDB_INDEX_DATABASE) * BE_DB_MAX_INDEX_ATTRIBUTE,
                                  (PVOID)&gVdirMdbGlobals.mdbIndexDBs.pIndexDBs);
   BAIL_ON_VMDIR_ERROR(dwError);

   VmDirLog( LDAP_DEBUG_TRACE, "InitMdbConfig: End" );

cleanup:

    return dwError;

error:

    goto cleanup;
}


text:
<?php function page_css(){ ?>
    <link href="<?php echo base_url('assets/select2-4.0.0/css/select2.min.css') ?>" rel="stylesheet" />
<?php } ?>

<?php include('header.php'); ?>

New Sales

                <?php echo form_open_multipart('', ['role' => 'form', 'class' => 'form-horizontal']); ?>

                                    Customer :

                                    <select name="customerID" class="form-control">

                                        <option value=""> Select Customer</option>
                                        <?php foreach($users->result() as $user){
                                            echo '<option value="'.$user->id.'"> '.user_full_name($user).' </option>';
                                        }
                                        ?>

                                    </select>

                                    Customer Name:
                                    <address>

                                    </address>

                                    Date: <?php echo date('d/m/Y') ?>

                                            Qty
                                            Product Name
                                            Category
                                            Price
                                            #

                                                <input type="number" class="form-control" name="qty[]"  required="" style="width: 70px;" min="1" value="1" />

                                                <input type="text" class="form-control" name="productName[]"  placeholder="Enter Product Name..." />

                                                <select name="categories[]" class="form-control" required="" style="max-width: 200px">
                                                    <option value="">Select category</option>
                                                <?php
                                                    if($category -> num_rows() > 0)
                                                    {
                                                        foreach($category->result() as $r)
                                                        {
                                                            echo '<option value="'.$r->id.'">'.$r->name.'</option>';
                                                        }
                                                    }
                                                ?>
                                                </select>

                                                <input type="number" class="form-control individualPrice" name="price[]" step="0.01" required="" style="width: 100px;" />

                                                Total:

                                    <button class="btn btn-success pull-right" id="addTableRow"> Add Another Product</button>

                        <button type="submit" name="submit" value="add_new_sell" class="btn btn-primary">
                             Save New Sales
                        </button>

                </form>

<?php function page_js(){ ?>

<?php } ?>


text:
// the semi-colon before function invocation is a safety net against concatenated
// scripts and/or other plugins which may not be closed properly.
;(function ( $, window, document, undefined ) {
	"use strict";

	/*
	 Settings (data-*):
	 - options
	 - language

	 On init:
	 - Configure and initialize ace-editor plugin

	 Helper Methods (Private):
	 - Eval data-options

	 */

	/*!
	 * ...
	 * Author: Alexander Hafstad <alhl@nodes.dk>
	 */
	var aceEditorWrapper = {
		init: function( options, elem ) {
			// Save the element reference, both as a jQuery
			// reference and a normal reference
			this.elem  = elem;
			this.$elem = $(elem);

			this.$output = this.$elem.parent().find('.ace-editor-output textarea');

			var ACE_MODE_PREFIX = 'ace/mode/';

			// Most options are NOT configurable
			var ACE_OPTIONS = {
				minLines: 5,
				maxLines: 30
			};

			// Mix in the passed-in options with the default options
			this.options = $.extend( {}, this.options, options );

			// Set langauge depending on data-toggle
			this.language = this.$elem.data('language');
			var LANG;

			if(!this.language) {
				LANG = ACE_MODE_PREFIX + 'json';
			} else {
				LANG = ACE_MODE_PREFIX + this.language;
			}

			// Mix in the data-options with the options
			this.options = $.extend( {}, this.options, _evalDataOptions( this.$elem.data('options') ) );

			// Initialize ace-editor plugin
			this.editorInstance = ace.edit(this.elem);
			this.editorInstance.setTheme(this.options.theme);
			this.editorInstance.getSession().setMode(LANG);

			if(this.$output.length > 0) {
				this.$output.hide();
				this.editorInstance.setValue(this.$output.val());

				var thatOutput = this.$output;
				var thatInstance = this.editorInstance;

				thatInstance.getSession().on('change', function() {
					thatOutput.val(thatInstance.getSession().getValue());
				});
			}

			// Loop through and apply options
			for(var key in ACE_OPTIONS) {
				if(ACE_OPTIONS.hasOwnProperty(key)) {
					this.editorInstance.setOption(key, ACE_OPTIONS[key]);
				}
			}

			// return this so that we can chain and use the bridge with less code.
			return this;
		},
		options: {
			theme: 'ace/theme/chrome'
		}
	};

	/*
	 Helper Methods
	 */
	function _evalDataOptions(options) {
		options = eval('(' + options + ')');
		return options;
	}

	// Object.create support test, and fallback for browsers without it
	if ( typeof Object.create !== "function" ) {
		Object.create = function (o) {
			function F() {}
			F.prototype = o;
			return new F();
		};
	}

	// Create a plugin based on a defined object
	$.plugin = function( name, object ) {
		$.fn[name] = function( options ) {
			return this.each(function() {
				if ( ! $.data( this, name ) ) {
					$.data( this, name, Object.create(object).init(
						options, this ) );
				}
			});
		};
	};

	// Register the plugin
	$.plugin('aceEditorWrapper', aceEditorWrapper);

})( jQuery, window, document );


text:
package org.jcodec.codecs.aac.blocks;

import org.jcodec.common.io.BitReader;

/**
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 *
 * Skip data_stream_element; reference: table 4.10.
 *
 * @author The JCodec project
 *
 */
public class BlockDSE extends Block {

    @SuppressWarnings("unused")
	public void parse(BitReader _in) {
        int elemType = (int) _in.readNBit(4);
        int byte_align = _in.read1Bit();
        int count = (int) _in.readNBit(8);
        if (count == 255)
            count += _in.readNBit(8);
        if (byte_align != 0)
            _in.align();

        if (_in.skip(8 * count) != 8 * count) {
            throw new RuntimeException("Overread");
        }
    }
}


text:
function [snr,luxsec,SNRshot,SNRread,antiluxsec] = pixelSNRluxsec(sensor)
%Graph or calculate sensor SNR (dB) as a function of  illuminance (lux-sec)
%
%     [snr,luxsec,SNRshot, SNRread]  = pixelSNRluxsec(sensor)
%
% If there are no output arguments, this routine produces a graph of pixel
% SNR as a function of lux-sec incident at the pixel.  The legend indicates
% the saturation level of each pixel in lux-sec.  The color of the curves
% correspond to the color of the pixel (roughly).
%
% If there are output arguments, the calculated values, but no graph, are
% returned.
%
% This routine uses pixelSNR.  It differs only by calculating the
% illuminance level (lux-sec) required to produce the specific voltage.
% The key routine for calculating that relationship is pixelVperLuxSec (see
% below).  The spectral power distribution of the illuminant for the
% lux-sec calculation is assumed to be Equal Energy.
%
% See also: sensorSNR, pixelSNR, pixelVperLuxSec
%
% Example:
%    pixelSNRluxsec(vcGetObject('sensor'));
%    [snr,luxsec] = pixelSNRluxsec(vcGetObject('sensor'));
%
% Copyright ImagEval Consultants, LLC, 2003.

if ieNotDefined('sensor'), sensor = vcGetObject('ISA'); end
if isempty(sensor)
    errordlg('No image sensor array sent in or defined.');
    return;
end

% Compute the snr as a function of volts.
[snr,volts,SNRshot,SNRread] = pixelSNR(sensor);

% Compute the relationship between volts and lux-sec for a uniform light
% source.
[voltsPerLuxSec,~,~,voltsPerAntiLuxSec] = ...
    pixelVperLuxSec(sensor);

% The anti-luxseconds is a strange little construct from MP that measures
% something about the non-visible intensity, say IR, components of the
% light.
nColors = sensorGet(sensor,'ncolors');
luxsec = zeros(length(volts),nColors);
antiluxsec = zeros(length(volts),nColors);
for ii=1:nColors
    luxsec(:,ii) = volts(:) / voltsPerLuxSec(ii);
    antiluxsec(:,ii) = volts(:) / voltsPerAntiLuxSec(ii);
end
LuxSecAtSaturation = pixelGet(sensorGet(sensor,'pixel'),'voltageswing') ./ voltsPerLuxSec;

% If the user didn't ask for any data back, produce this plot and put
% the data in the userdata section of the plot.
if nargout == 0

    % Make the lux-sec version of the plot
    vcNewGraphWin;
    % filterNames = sensorGet(sensor,'filterNames');

    % Used to be in separate panels.  Let's put them all in one panel and
    % not put in the additional lines.
    letters = sensorGet(sensor,'filterColorLetters');
    for ii=1:nColors
        if strcmp(letters(ii),'w'), letters(ii) = 'k'; end
        p = semilogx(luxsec(:,ii),snr,[letters(ii),'-']);
        set(p,'linewidth',2);
        hold on
    end

    % We could put this one in just for the 1st pixel, for example.
    %     [v,ii] = min(luxsec(1,:));
    %     p = semilogx(luxsec(:,ii),SNRshot,'k--',luxsec(:,ii),SNRread,'k:');
    %     set(p,'linewidth',1);
    %     legend('Total','Shot noise','Read noise');

    title('Pixel SNR as a function of lux-seconds (EE light)')
    xlabel('lux-sec'); ylabel('SNR (db)');
    grid on, hold off

    % Create a legend showing saturation level (lux-sec)
    leg = cell(1,nColors);
    for ii=1:nColors
        leg{ii} = sprintf('Sat %.2f (lux-sec)',LuxSecAtSaturation(ii));
    end
    %     leg{nColors+1} = 'shot noise';
    %     leg{nColors+2} = 'read noise';
    legend(leg,'Location','northwest');

    udata.luxsec = luxsec;
    udata.snr = snr;
    set(gcf,'userdata',udata);
end

return;


text:
import {Type, isBlank, isPresent, int} from 'angular2/src/facade/lang';
import {List, ListWrapper, MapWrapper, Map} from 'angular2/src/facade/collection';
import {PromiseWrapper} from 'angular2/src/facade/async';

import {DOM} from 'angular2/src/dom/dom_adapter';

import {View} from './view';

import {Content} from './shadow_dom_emulation/content_tag';
import {LightDom} from './shadow_dom_emulation/light_dom';
import {ShadowCss} from './shadow_dom_emulation/shadow_css';

import {StyleInliner} from './style_inliner';
import {StyleUrlResolver} from './style_url_resolver';

import {DirectiveMetadata} from './directive_metadata';

import {CompileStep} from './pipeline/compile_step';
import {CompileElement} from './pipeline/compile_element';
import {CompileControl} from './pipeline/compile_control';

export class ShadowDomStrategy {
  attachTemplate(el, view:View) {}
  constructLightDom(lightDomView:View, shadowDomView:View, el): LightDom { return null; }
  polyfillDirectives():List<Type> { return []; }

  /**
   * An optional step that can modify the template style elements.
   *
   * @param {DirectiveMetadata} cmpMetadata
   * @param {string} templateUrl the template base URL
   * @returns {CompileStep} a compile step to append to the compiler pipeline, null if not required.
   */
  getStyleCompileStep(cmpMetadata: DirectiveMetadata, templateUrl: string): CompileStep {
    return null;
  }

  /**
   * An optional step that can modify the template elements (style elements exlcuded).
   *
   * This step could be used to modify the template in order to scope the styles.
   *
   * @param {DirectiveMetadata} cmpMetadata
   * @returns {CompileStep} a compile step to append to the compiler pipeline, null if not required.
   */
  getTemplateCompileStep(cmpMetadata: DirectiveMetadata): CompileStep { return null; }

  /**
   * The application element does not go through the compiler pipeline.
   *
   * This methods is called when the root ProtoView is created and to optionnaly update the
   * application root element.
   *
   * @see ProtoView.createRootProtoView
   *
   * @param {DirectiveMetadata} cmpMetadata
   * @param element
   */
  shimAppElement(cmpMetadata: DirectiveMetadata, element) {}
}

/**
 * This strategy emulates the Shadow DOM for the templates, styles **excluded**:
 * - components templates are added as children of their component element,
 * - styles are moved from the templates to the styleHost (i.e. the document head).
 *
 * Notes:
 * - styles are **not** scoped to their component and will apply to the whole document,
 * - you can **not** use shadow DOM specific selectors in the styles
 */
export class EmulatedUnscopedShadowDomStrategy extends ShadowDomStrategy {
  _styleUrlResolver: StyleUrlResolver;
  _styleHost;

  constructor(styleUrlResolver: StyleUrlResolver, styleHost) {
    super();
    this._styleUrlResolver = styleUrlResolver;
    this._styleHost = styleHost;
  }

  attachTemplate(el, view:View){
    DOM.clearNodes(el);
    _moveViewNodesIntoParent(el, view);
  }

  constructLightDom(lightDomView:View, shadowDomView:View, el): LightDom {
    return new LightDom(lightDomView, shadowDomView, el);
  }

  polyfillDirectives():List<Type> {
    return [Content];
  }

  getStyleCompileStep(cmpMetadata: DirectiveMetadata, templateUrl: string): CompileStep {
    return new _EmulatedUnscopedCssStep(cmpMetadata, templateUrl, this._styleUrlResolver,
      this._styleHost);
  }
}

/**
 * This strategy emulates the Shadow DOM for the templates, styles **included**:
 * - components templates are added as children of their component element,
 * - both the template and the styles are modified so that styles are scoped to the component
 *   they belong to,
 * - styles are moved from the templates to the styleHost (i.e. the document head).
 *
 * Notes:
 * - styles are scoped to their component and will apply only to it,
 * - a common subset of shadow DOM selectors are supported,
 * - see `ShadowCss` for more information and limitations.
 */
export class EmulatedScopedShadowDomStrategy extends EmulatedUnscopedShadowDomStrategy {
  _styleInliner: StyleInliner;

  constructor(styleInliner: StyleInliner, styleUrlResolver: StyleUrlResolver, styleHost) {
    super(styleUrlResolver, styleHost);
    this._styleInliner = styleInliner;
  }

  getStyleCompileStep(cmpMetadata: DirectiveMetadata, templateUrl: string): CompileStep {
    return new _EmulatedScopedCssStep(cmpMetadata, templateUrl, this._styleInliner,
      this._styleUrlResolver, this._styleHost);
  }

  getTemplateCompileStep(cmpMetadata: DirectiveMetadata): CompileStep {
    return new _ShimShadowDomStep(cmpMetadata);
  }

  shimAppElement(cmpMetadata: DirectiveMetadata, element) {
    var cmpType = cmpMetadata.type;
    var hostAttribute = _getHostAttribute(_getComponentId(cmpType));
    DOM.setAttribute(element, hostAttribute, '');
  }
}

/**
 * This strategies uses the native Shadow DOM support.
 *
 * The templates for the component are inserted in a Shadow Root created on the component element.
 * Hence they are strictly isolated.
 */
export class NativeShadowDomStrategy extends ShadowDomStrategy {
  _styleUrlResolver: StyleUrlResolver;

  constructor(styleUrlResolver: StyleUrlResolver) {
    super();
    this._styleUrlResolver = styleUrlResolver;
  }

  attachTemplate(el, view:View){
    _moveViewNodesIntoParent(DOM.createShadowRoot(el), view);
  }

  getStyleCompileStep(cmpMetadata: DirectiveMetadata, templateUrl: string): CompileStep {
    return new _NativeCssStep(templateUrl, this._styleUrlResolver);
  }
}

class _ShimShadowDomStep extends CompileStep {
  _contentAttribute: string;

  constructor(cmpMetadata: DirectiveMetadata) {
    super();
    var id = _getComponentId(cmpMetadata.type);
    this._contentAttribute = _getContentAttribute(id);
  }

  process(parent:CompileElement, current:CompileElement, control:CompileControl) {
    if (current.ignoreBindings) {
      return;
    }

    // Shim the element as a child of the compiled component
    DOM.setAttribute(current.element, this._contentAttribute, '');

    // If the current element is also a component, shim it as a host
    var host = current.componentDirective;
    if (isPresent(host)) {
      var hostId = _getComponentId(host.type);
      var hostAttribute = _getHostAttribute(hostId);
      DOM.setAttribute(current.element, hostAttribute, '');
    }
  }
}

class _EmulatedUnscopedCssStep extends CompileStep {
  _templateUrl: string;
  _styleUrlResolver: StyleUrlResolver;
  _styleHost;

  constructor(cmpMetadata: DirectiveMetadata, templateUrl: string,
    styleUrlResolver: StyleUrlResolver, styleHost) {
    super();
    this._templateUrl = templateUrl;
    this._styleUrlResolver = styleUrlResolver;
    this._styleHost = styleHost;
  }

  process(parent:CompileElement, current:CompileElement, control:CompileControl) {
    var styleEl = current.element;
    var cssText = DOM.getText(styleEl);
    cssText = this._styleUrlResolver.resolveUrls(cssText, this._templateUrl);
    DOM.setText(styleEl, cssText);
    DOM.remove(styleEl);

    if (!MapWrapper.contains(_sharedStyleTexts, cssText)) {
      // Styles are unscoped and shared across components, only append them to the head
      // when there are not present yet
      MapWrapper.set(_sharedStyleTexts, cssText, true);
      _insertStyleElement(this._styleHost, styleEl);
    }
  }
}

class _EmulatedScopedCssStep extends CompileStep {
  _templateUrl: string;
  _component: Type;
  _styleInliner: StyleInliner;
  _styleUrlResolver: StyleUrlResolver;
  _styleHost;

  constructor(cmpMetadata: DirectiveMetadata, templateUrl: string, styleInliner: StyleInliner,
    styleUrlResolver: StyleUrlResolver, styleHost) {
    super();
    this._templateUrl = templateUrl;
    this._component = cmpMetadata.type;
    this._styleInliner = styleInliner;
    this._styleUrlResolver = styleUrlResolver;
    this._styleHost = styleHost;
  }

  process(parent:CompileElement, current:CompileElement, control:CompileControl) {
    var styleEl = current.element;

    var cssText = DOM.getText(styleEl);

    cssText = this._styleUrlResolver.resolveUrls(cssText, this._templateUrl);
    var css = this._styleInliner.inlineImports(cssText, this._templateUrl);

    if (PromiseWrapper.isPromise(css)) {
      DOM.setText(styleEl, '');
      ListWrapper.push(parent.inheritedProtoView.stylePromises, css);
      return css.then((css) => {
        css = _shimCssForComponent(css, this._component);
        DOM.setText(styleEl, css);
      });
    } else {
      css = _shimCssForComponent(css, this._component);
      DOM.setText(styleEl, css);
    }

    DOM.remove(styleEl);
    _insertStyleElement(this._styleHost, styleEl);
  }
}

class _NativeCssStep extends CompileStep {
  _styleUrlResolver: StyleUrlResolver;
  _templateUrl: string;

  constructor(templateUrl: string, styleUrlResover: StyleUrlResolver) {
    super();
    this._styleUrlResolver = styleUrlResover;
    this._templateUrl = templateUrl;
  }

  process(parent:CompileElement, current:CompileElement, control:CompileControl) {
    var styleEl = current.element;
    var cssText = DOM.getText(styleEl);
    cssText = this._styleUrlResolver.resolveUrls(cssText, this._templateUrl);
    DOM.setText(styleEl, cssText);
  }
}

function _moveViewNodesIntoParent(parent, view) {
  for (var i = 0; i < view.nodes.length; ++i) {
    DOM.appendChild(parent, view.nodes[i]);
  }
}

var _componentUIDs: Map<Type, int> = MapWrapper.create();
var _nextComponentUID: int = 0;
var _sharedStyleTexts: Map<string, boolean> = MapWrapper.create();
var _lastInsertedStyleEl;

function _getComponentId(component: Type) {
  var id = MapWrapper.get(_componentUIDs, component);
  if (isBlank(id)) {
    id = _nextComponentUID++;
    MapWrapper.set(_componentUIDs, component, id);
  }
  return id;
}

function _insertStyleElement(host, styleEl) {
  if (isBlank(_lastInsertedStyleEl)) {
    var firstChild = DOM.firstChild(host);
    if (isPresent(firstChild)) {
      DOM.insertBefore(firstChild, styleEl);
    } else {
      DOM.appendChild(host, styleEl);
    }
  } else {
    DOM.insertAfter(_lastInsertedStyleEl, styleEl);
  }
  _lastInsertedStyleEl = styleEl;
}

// Return the attribute to be added to the component
function _getHostAttribute(id: int) {
  return `_nghost-${id}`;
}

// Returns the attribute to be added on every single element nodes in the component
function _getContentAttribute(id: int) {
  return `_ngcontent-${id}`;
}

function _shimCssForComponent(cssText: string, component: Type): string {
  var id = _getComponentId(component);
  var shadowCss = new ShadowCss();
  return shadowCss.shimCssText(cssText, _getContentAttribute(id), _getHostAttribute(id));
}

// Reset the caches - used for tests only
export function resetShadowDomCache() {
  MapWrapper.clear(_componentUIDs);
  _nextComponentUID = 0;
  MapWrapper.clear(_sharedStyleTexts);
  _lastInsertedStyleEl = null;
}


text:
package org.hisp.dhis.dataset;

import java.util.Iterator;

import lombok.AllArgsConstructor;

import org.hisp.dhis.dataelement.DataElement;
import org.hisp.dhis.system.deletion.DeletionHandler;
import org.springframework.stereotype.Component;

/**
 * @author Lars Helge Overland
 */
@Component
@AllArgsConstructor
public class SectionDeletionHandler extends DeletionHandler
{
    private final SectionService sectionService;

    private final SectionStore sectionStore;

    @Override
    protected void register()
    {
        whenDeleting( DataElement.class, this::deleteDataElement );
        whenDeleting( DataSet.class, this::deleteDataSet );
    }

    private void deleteDataElement( DataElement dataElement )
    {
        for ( Section section : sectionStore.getSectionsByDataElement( dataElement.getUid() ) )
        {
            section.getGreyedFields().removeIf( operand -> operand.getDataElement().equals( dataElement ) );
            section.getDataElements().removeIf( de -> de.equals( dataElement ) );
            sectionService.updateSection( section );
        }
    }

    private void deleteDataSet( DataSet dataSet )
    {
        Iterator<Section> iterator = dataSet.getSections().iterator();

        while ( iterator.hasNext() )
        {
            Section section = iterator.next();
            iterator.remove();
            sectionService.deleteSection( section );
        }
    }
}


text:
package kiwi.api.extension;

/**
 * A KiWi service is essentially a "service plugin" that offers an additional
 * service as an extension, i.e. bundled in a separate JAR file.
 *
 * @author Sebastian Schaffert
 *
 */
public interface KiWiService extends KiWiExtension {

}


text:
var gulp = require('gulp');
var browserify = require('browserify');
var partialify = require('partialify');
var source = require('vinyl-source-stream');

gulp.task('js', function() {
    browserify('js/app.js')
        .transform(partialify)
        .bundle()
        .pipe(source('bundle.js'))
        .pipe(gulp.dest('js'))
});

gulp.task('default', ['js']);


text:
package com.android.myeyepetizer.multitype;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Typeface;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import com.android.myeyepetizer.MovieDetailActivity;
import com.android.myeyepetizer.R;
import com.android.myeyepetizer.utils.TranslateDuration;
import com.bumptech.glide.Glide;

import me.drakeet.multitype.ItemViewBinder;

/**
 * Created by Administrator on 2017/9/4.
 */

public class MovieDetailRelateItemBinder extends ItemViewBinder<MovieDetailRelateItem, MovieDetailRelateItemBinder.ViewHolder> {

    public static final int FLAG_WHITE_WORD_COLOR = 0;
    public static final int FLAG_BLACK_WORD_COLOR = 1;

    private Activity mActivity;
    private int mFlag;

    public MovieDetailRelateItemBinder(Activity activity, int flag) {
        super();
        mActivity = activity;
        mFlag = flag;
    }

    @NonNull
    @Override
    protected ViewHolder onCreateViewHolder(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {
        View view = inflater.inflate(R.layout.item_movie_relate, parent, false);

        return new ViewHolder(view);
    }

    @Override
    protected void onBindViewHolder(@NonNull ViewHolder holder, @NonNull final MovieDetailRelateItem item) {
        Glide.with(mActivity).load(item.data.cover.feedCover).into(holder.coverImage);
        holder.title.setText(item.data.title);
        holder.relateMovieInfo.setText("#" + item.data.category + " / " + TranslateDuration.translateSeconds(item.data.duration));
        if (mFlag == FLAG_BLACK_WORD_COLOR){
            holder.itemView.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(mActivity, MovieDetailActivity.class);
                    intent.putExtra("DATA", item.data);
                    mActivity.startActivity(intent);
                }
            });
        } else if (mFlag == FLAG_WHITE_WORD_COLOR) {
            holder.itemView.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    MovieDetailActivity activity = (MovieDetailActivity) mActivity;
                    activity.updateData(item.data);
                }
            });
        }
    }

    class ViewHolder extends RecyclerView.ViewHolder {

        FrameLayout background;
        ImageView coverImage;
        TextView title;
        TextView relateMovieInfo;

        public ViewHolder(View itemView) {
            super(itemView);
            background = (FrameLayout) itemView.findViewById(R.id.background);
            coverImage = (ImageView) itemView.findViewById(R.id.relate_cover);
            title = (TextView) itemView.findViewById(R.id.relate_title);
            title.setTypeface(Typeface.createFromAsset(mActivity.getAssets(), mActivity.getResources().getString(R.string.DB1FontPath)));
            relateMovieInfo = (TextView) itemView.findViewById(R.id.relate_info);
            relateMovieInfo.setTypeface(Typeface.createFromAsset(mActivity.getAssets(),
                    mActivity.getResources().getString(R.string.LFontPath)));

            if (mFlag == FLAG_BLACK_WORD_COLOR) {
                background.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));
                title.setTextColor(ContextCompat.getColor(mActivity, R.color.colorBlack));
                relateMovieInfo.setTextColor(ContextCompat.getColor(mActivity, R.color.colorBlack));
            }
        }
    }

}


text: <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12037</title>


text:
GitLab 6.0 is affected by critical security vulnerabilities CVE-2013-4490 and CVE-2013-4489. Please [update to GitLab 6.2 immediately](6.0-to-6.2.md).

### Deprecations

#### Global projects

The root (global) namespace for projects is deprecated.
So you need to move all your global projects under groups or users manually before update or they will be automatically moved to the project owner namespace during the update. When a project is moved all its members will receive an email with instructions how to update their git remote url. Please make sure you disable sending email when you do a test of the upgrade.

#### Teams

We introduce group membership in 6.0 as a replacement for teams.
The old combination of groups and teams was confusing for a lot of people.
And when the members of a team where changed this wasn't reflected in the project permissions.
In GitLab 6.0 you will be able to add members to a group with a permission level for each member.
These group members will have access to the projects in that group.
Any changes to group members will immediately be reflected in the project permissions.
You can even have multiple owners for a group, greatly simplifying administration.

### 0. Backup

It's useful to make a backup just in case things go south:
(With MySQL, this may require granting "LOCK TABLES" privileges to the GitLab user on the database version)

```bash
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
```

### 1. Stop server

    sudo service gitlab stop

### 2. Get latest code

```bash
cd /home/git/gitlab
sudo -u git -H git fetch
sudo -u git -H git checkout 6-0-stable
```

### 3. Update gitlab-shell

```bash
cd /home/git/gitlab-shell
sudo -u git -H git fetch
sudo -u git -H git checkout v1.7.8
```

### 4. Install additional packages

```bash
# For reStructuredText markup language support install required package:
sudo apt-get install python-docutils
```

### 5. Install libs, migrations, etc.

```bash
cd /home/git/gitlab

# MySQL
sudo -u git -H bundle install --without development test postgres --deployment

#PostgreSQL
sudo -u git -H bundle install --without development test mysql --deployment

sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
sudo -u git -H bundle exec rake migrate_groups RAILS_ENV=production
sudo -u git -H bundle exec rake migrate_global_projects RAILS_ENV=production
sudo -u git -H bundle exec rake migrate_keys RAILS_ENV=production
sudo -u git -H bundle exec rake migrate_inline_notes RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:satellites:create RAILS_ENV=production

# Clear redis cache
sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production

# Clear and precompile assets
sudo -u git -H bundle exec rake assets:clean RAILS_ENV=production
sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
```

### 6. Update config files

Note: We switched from Puma in GitLab 5.x to unicorn in GitLab 6.0.

* Make `/home/git/gitlab/config/gitlab.yml` the same as https://github.com/gitlabhq/gitlabhq/blob/master/config/gitlab.yml.example but with your settings.
* Make `/home/git/gitlab/config/unicorn.rb` the same as https://github.com/gitlabhq/gitlabhq/blob/master/config/unicorn.rb.example but with your settings.

### 7. Update Init script

```bash
cd /home/git/gitlab
sudo rm /etc/init.d/gitlab
sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab
sudo chmod +x /etc/init.d/gitlab
```

### 8. Create uploads directory

```bash
cd /home/git/gitlab
sudo -u git -H mkdir -p public/uploads
sudo chmod -R u+rwX  public/uploads
```

### 9. Start application

    sudo service gitlab start
    sudo service nginx restart

### 10. Check application status

Check if GitLab and its environment are configured correctly:

    sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

To make sure you didn't miss anything run a more thorough check with:

    sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

If all items are green, then congratulations upgrade complete!

## Things went south? Revert to previous version (5.1)

### 1. Revert the code to the previous version
Follow the [`upgrade guide from 5.0 to 5.1`](5.0-to-5.1.md), except for the database migration
(The backup is already migrated to the previous version)

### 2. Restore from the backup:

```bash
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production
```

### Troubleshooting
The migrations in this update are very sensitive to incomplete or inconsistent data. If you have a long-running GitLab installation and some of the previous upgrades did not work out 100% correct this may bite you now. The following commands can be run in the rails console to look for 'bad' data.

All project owners should have an owner
```
Project.all.select { |project| project.owner.blank? }
```

Every user should have a namespace
```
User.all.select { |u| u.namespace.blank? }
```

Projects in the global namespace should not conflict with projects in the owner namespace
```
Project.where(namespace_id: nil).select { |p| Project.where(path: p.path, namespace_id: p.owner.try(:namespace).try(:id)).present? }
```


text:
<!DOCTYPE html>

{{ template "head.html" . }}

            wordy links

About

            <form method="post" name="new_url" action="save" id="submit_form" class="form-horizontal main-form">
                {{if .SaveSuccess}}

                        URL saved

                {{end}}

                        <button type="button" id="save-btn" class="btn {{ .SaveClass }} mode-btn">Save</button>
                        <button type="button" id="load-btn" style="margin-left:1em;" class="btn {{ .LoadClass }} mode-btn">Load</button>

                    URL

                        <input id="url" type="text" maxlength="1990" name="url" placeholder="example.com" class="form-control" value="{{ .LinkValue }}" >
                        {{ .LinkErrorMsg }}

                    Keywords

                        <input id="keywords" type="text" maxlength="100" name="words" placeholder="memorable keywords like these" class="form-control" value="{{ .KeywordValue }}">
                        {{ .KeywordErrorMsg }}

                        <button id="submit_btn" class="btn btn-primary save_toggle">Save</button>

            </form>

{{ template "ga.html" }}


text:
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Aenima.EventStore;

namespace Aenima.RavenDB
{
    public class RavenDbEventStore : IEventStore
    {
        public Task AppendStream(string streamId, int expectedVersion, IEnumerable<StreamEvent> streamEvents)
        {
            throw new NotImplementedException();
        }

        public Task<StreamEventsPage> ReadStream(string streamId, int fromVersion, int count, StreamReadDirection direction = StreamReadDirection.Forward)
        {
            throw new NotImplementedException();
        }

        public Task DeleteStream(string streamId, bool forever = false)
        {
            throw new NotImplementedException();
        }

        public Task Initialize()
        {
            throw new NotImplementedException();
        }
    }
}


text:
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User

from lbforum.models import LBForumUserProfile

class Command(BaseCommand):
    help = "Init LBForumUserProfile"

    def handle(self, **options):
        users = User.objects.all()
        for o in users:
            try:
                o.lbforum_profile
            except LBForumUserProfile.DoesNotExist:
                LBForumUserProfile.objects.create(user=o)


text:
<!DOCTYPE HTML>

<meta charset="utf-8">
<title>misfit.co</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="icon" type="image/png" href="/favicon-henry.png">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" href="css/bigvideo.css">

<link rel="stylesheet" type="text/css" href="css/fonts.css">
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">

<link rel="stylesheet" href="css/colorbox.css" type="text/css" media="screen" title="prettyPhoto main stylesheet"/>
<link rel="stylesheet" href="css/colorbox-custom.css" type="text/css" media="screen"/>

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

misfit.co

the most interesting blog in the world

				Signup for Updates

							<form action="http://misfit-inc.us1.list-manage.com/subscribe/post?u=dab524f4886549dbf587dce02&id=9a96836d21" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>

								Email Address
								<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Email Address">

								First Name
								<input type="text" value="" name="FNAME" class="" id="mce-FNAME" placeholder="First Name">

								Last Name
								<input type="text" value="" name="LNAME" class="" id="mce-LNAME" placeholder="Last Name">

<input type="text" name="b_dab524f4886549dbf587dce02_9a96836d21" tabindex="-1" value="">

<input type="submit" value="Singup for Updates" name="subscribe" id="mc-embedded-subscribe" class="button signup">

							</form>


text:
class Auth {
public:
	Auth(const std::string accessKeyId, const std::string secretAccessKey, const bool verbose = false);
	~Auth() {};

	std::string base64(const unsigned char * data, const unsigned int dataLength);
	std::string hex(const unsigned char * data, const unsigned int dataLength);
	std::string hash(const std::string input, const std::string method = "SHA256");
	std::string createCanonicalRequest(web::http::http_request httpRequest, const bool signedPayload);
	std::string createSigningKey(std::string date, std::string awsRegion, std::string awsService, unsigned char * signingKey, unsigned int * kSigning_len);
	std::string createStringToSign(std::string date, std::string iso_date, std::string awsRegion, std::string awsService, std::string canonicalHttpRequestHash);
	std::string createSignature(const std::string stringToSign, const unsigned char * signingKey, const unsigned int kSigning_len);
	web::http::http_request signRequestInQuery(const boost::posix_time::ptime time, web::http::http_request request, const std::string region, const std::string service, const bool signedPayload = true);
	web::http::http_request signRequestInHeaders(const boost::posix_time::ptime time, web::http::http_request request, const std::string region, const std::string service, const bool signedPayload = true);

private:
	const std::string accessKeyId;
	const std::string secretAccessKey;
	const bool verbose;
};