text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.06.28 at 02:49:33 PM PDT
//

package com.intuit.ipp.data;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;

/**
 * Financial Transaction information that pertains to
 * 				the entire Check.
 *
 *
Java class for Purchase complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="Purchase">
 *   <complexContent>
 *     <extension base="{http://schema.intuit.com/finance/v3}Transaction">
 *       <sequence>
 *         <element name="AccountRef" type="{http://schema.intuit.com/finance/v3}ReferenceType" minOccurs="0"/>
 *         <element name="PaymentMethodRef" type="{http://schema.intuit.com/finance/v3}ReferenceType" minOccurs="0"/>
 *         <element name="PaymentRefNum" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="PaymentType" type="{http://schema.intuit.com/finance/v3}PaymentTypeEnum" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="CheckPayment" type="{http://schema.intuit.com/finance/v3}CheckPayment" minOccurs="0"/>
 *           <element name="CreditCardPayment" type="{http://schema.intuit.com/finance/v3}CreditCardPayment" minOccurs="0"/>
 *         </choice>
 *         <element name="EntityRef" type="{http://schema.intuit.com/finance/v3}ReferenceType" minOccurs="0"/>
 *         <element name="Credit" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="RemitToAddr" type="{http://schema.intuit.com/finance/v3}PhysicalAddress" minOccurs="0"/>
 *         <element name="TotalAmt" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
 *         <group ref="{http://schema.intuit.com/finance/v3}TxnReferenceGroup" minOccurs="0"/>
 *         <element name="Memo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="PrintStatus" type="{http://schema.intuit.com/finance/v3}PrintStatusEnum" minOccurs="0"/>
 *         <element name="GlobalTaxCalculation" type="{http://schema.intuit.com/finance/v3}GlobalTaxCalculationEnum" minOccurs="0"/>
 *         <element name="PurchaseEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
 *         <element name="LessCIS" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
 *         <element name="IncludeInAnnualTPAR" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Purchase", propOrder = {
    "accountRef",
    "paymentMethodRef",
    "paymentRefNum",
    "paymentType",
    "checkPayment",
    "creditCardPayment",
    "entityRef",
    "credit",
    "remitToAddr",
    "totalAmt",
    "txnId",
    "txnNum",
    "memo",
    "printStatus",
    "globalTaxCalculation",
    "purchaseEx",
    "lessCIS",
    "includeInAnnualTPAR"
})
public class Purchase
    extends Transaction
    implements Serializable, Equals2, HashCode2
{

    private final static long serialVersionUID = 1L;
    @XmlElement(name = "AccountRef")
    protected ReferenceType accountRef;
    @XmlElement(name = "PaymentMethodRef")
    protected ReferenceType paymentMethodRef;
    @XmlElement(name = "PaymentRefNum")
    protected String paymentRefNum;
    @XmlElement(name = "PaymentType")
    @XmlSchemaType(name = "string")
    protected PaymentTypeEnum paymentType;
    @XmlElement(name = "CheckPayment")
    protected CheckPayment checkPayment;
    @XmlElement(name = "CreditCardPayment")
    protected CreditCardPayment creditCardPayment;
    @XmlElement(name = "EntityRef")
    protected ReferenceType entityRef;
    @XmlElement(name = "Credit")
    protected Boolean credit;
    @XmlElement(name = "RemitToAddr")
    protected PhysicalAddress remitToAddr;
    @XmlElement(name = "TotalAmt")
    protected BigDecimal totalAmt;
    @XmlElement(name = "TxnId")
    protected String txnId;
    @XmlElement(name = "TxnNum")
    protected String txnNum;
    @XmlElement(name = "Memo")
    protected String memo;
    @XmlElement(name = "PrintStatus")
    @XmlSchemaType(name = "string")
    protected PrintStatusEnum printStatus;
    @XmlElement(name = "GlobalTaxCalculation")
    @XmlSchemaType(name = "string")
    protected GlobalTaxCalculationEnum globalTaxCalculation;
    @XmlElement(name = "PurchaseEx")
    protected IntuitAnyType purchaseEx;
    @XmlElement(name = "LessCIS")
    protected BigDecimal lessCIS;
    @XmlElement(name = "IncludeInAnnualTPAR")
    protected Boolean includeInAnnualTPAR;

    /**
     * Gets the value of the accountRef property.
     *
     * @return
     *     possible object is
     *     {@link ReferenceType }
     *
     */
    public ReferenceType getAccountRef() {
        return accountRef;
    }

    /**
     * Sets the value of the accountRef property.
     *
     * @param value
     *     allowed object is
     *     {@link ReferenceType }
     *
     */
    public void setAccountRef(ReferenceType value) {
        this.accountRef = value;
    }

    /**
     * Gets the value of the paymentMethodRef property.
     *
     * @return
     *     possible object is
     *     {@link ReferenceType }
     *
     */
    public ReferenceType getPaymentMethodRef() {
        return paymentMethodRef;
    }

    /**
     * Sets the value of the paymentMethodRef property.
     *
     * @param value
     *     allowed object is
     *     {@link ReferenceType }
     *
     */
    public void setPaymentMethodRef(ReferenceType value) {
        this.paymentMethodRef = value;
    }

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

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

    /**
     * Gets the value of the paymentType property.
     *
     * @return
     *     possible object is
     *     {@link PaymentTypeEnum }
     *
     */
    public PaymentTypeEnum getPaymentType() {
        return paymentType;
    }

    /**
     * Sets the value of the paymentType property.
     *
     * @param value
     *     allowed object is
     *     {@link PaymentTypeEnum }
     *
     */
    public void setPaymentType(PaymentTypeEnum value) {
        this.paymentType = value;
    }

    /**
     * Gets the value of the checkPayment property.
     *
     * @return
     *     possible object is
     *     {@link CheckPayment }
     *
     */
    public CheckPayment getCheckPayment() {
        return checkPayment;
    }

    /**
     * Sets the value of the checkPayment property.
     *
     * @param value
     *     allowed object is
     *     {@link CheckPayment }
     *
     */
    public void setCheckPayment(CheckPayment value) {
        this.checkPayment = value;
    }

    /**
     * Gets the value of the creditCardPayment property.
     *
     * @return
     *     possible object is
     *     {@link CreditCardPayment }
     *
     */
    public CreditCardPayment getCreditCardPayment() {
        return creditCardPayment;
    }

    /**
     * Sets the value of the creditCardPayment property.
     *
     * @param value
     *     allowed object is
     *     {@link CreditCardPayment }
     *
     */
    public void setCreditCardPayment(CreditCardPayment value) {
        this.creditCardPayment = value;
    }

    /**
     * Gets the value of the entityRef property.
     *
     * @return
     *     possible object is
     *     {@link ReferenceType }
     *
     */
    public ReferenceType getEntityRef() {
        return entityRef;
    }

    /**
     * Sets the value of the entityRef property.
     *
     * @param value
     *     allowed object is
     *     {@link ReferenceType }
     *
     */
    public void setEntityRef(ReferenceType value) {
        this.entityRef = value;
    }

    /**
     * Gets the value of the credit property.
     *
     * @return
     *     possible object is
     *     {@link Boolean }
     *
     */
    public Boolean isCredit() {
        return credit;
    }

    /**
     * Sets the value of the credit property.
     *
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *
     */
    public void setCredit(Boolean value) {
        this.credit = value;
    }

    /**
     * Gets the value of the remitToAddr property.
     *
     * @return
     *     possible object is
     *     {@link PhysicalAddress }
     *
     */
    public PhysicalAddress getRemitToAddr() {
        return remitToAddr;
    }

    /**
     * Sets the value of the remitToAddr property.
     *
     * @param value
     *     allowed object is
     *     {@link PhysicalAddress }
     *
     */
    public void setRemitToAddr(PhysicalAddress value) {
        this.remitToAddr = value;
    }

    /**
     * Gets the value of the totalAmt property.
     *
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *
     */
    public BigDecimal getTotalAmt() {
        return totalAmt;
    }

    /**
     * Sets the value of the totalAmt property.
     *
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *
     */
    public void setTotalAmt(BigDecimal value) {
        this.totalAmt = value;
    }

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

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

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

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

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

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

    /**
     * Gets the value of the printStatus property.
     *
     * @return
     *     possible object is
     *     {@link PrintStatusEnum }
     *
     */
    public PrintStatusEnum getPrintStatus() {
        return printStatus;
    }

    /**
     * Sets the value of the printStatus property.
     *
     * @param value
     *     allowed object is
     *     {@link PrintStatusEnum }
     *
     */
    public void setPrintStatus(PrintStatusEnum value) {
        this.printStatus = value;
    }

    /**
     * Gets the value of the globalTaxCalculation property.
     *
     * @return
     *     possible object is
     *     {@link GlobalTaxCalculationEnum }
     *
     */
    public GlobalTaxCalculationEnum getGlobalTaxCalculation() {
        return globalTaxCalculation;
    }

    /**
     * Sets the value of the globalTaxCalculation property.
     *
     * @param value
     *     allowed object is
     *     {@link GlobalTaxCalculationEnum }
     *
     */
    public void setGlobalTaxCalculation(GlobalTaxCalculationEnum value) {
        this.globalTaxCalculation = value;
    }

    /**
     * Gets the value of the purchaseEx property.
     *
     * @return
     *     possible object is
     *     {@link IntuitAnyType }
     *
     */
    public IntuitAnyType getPurchaseEx() {
        return purchaseEx;
    }

    /**
     * Sets the value of the purchaseEx property.
     *
     * @param value
     *     allowed object is
     *     {@link IntuitAnyType }
     *
     */
    public void setPurchaseEx(IntuitAnyType value) {
        this.purchaseEx = value;
    }

    /**
     * Gets the value of the lessCIS property.
     *
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *
     */
    public BigDecimal getLessCIS() {
        return lessCIS;
    }

    /**
     * Sets the value of the lessCIS property.
     *
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *
     */
    public void setLessCIS(BigDecimal value) {
        this.lessCIS = value;
    }

    /**
     * Gets the value of the includeInAnnualTPAR property.
     *
     * @return
     *     possible object is
     *     {@link Boolean }
     *
     */
    public Boolean isIncludeInAnnualTPAR() {
        return includeInAnnualTPAR;
    }

    /**
     * Sets the value of the includeInAnnualTPAR property.
     *
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *
     */
    public void setIncludeInAnnualTPAR(Boolean value) {
        this.includeInAnnualTPAR = value;
    }

    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
        if ((object == null)||(this.getClass()!= object.getClass())) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocator, thatLocator, object, strategy)) {
            return false;
        }
        final Purchase that = ((Purchase) object);
        {
            ReferenceType lhsAccountRef;
            lhsAccountRef = this.getAccountRef();
            ReferenceType rhsAccountRef;
            rhsAccountRef = that.getAccountRef();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "accountRef", lhsAccountRef), LocatorUtils.property(thatLocator, "accountRef", rhsAccountRef), lhsAccountRef, rhsAccountRef, (this.accountRef!= null), (that.accountRef!= null))) {
                return false;
            }
        }
        {
            ReferenceType lhsPaymentMethodRef;
            lhsPaymentMethodRef = this.getPaymentMethodRef();
            ReferenceType rhsPaymentMethodRef;
            rhsPaymentMethodRef = that.getPaymentMethodRef();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "paymentMethodRef", lhsPaymentMethodRef), LocatorUtils.property(thatLocator, "paymentMethodRef", rhsPaymentMethodRef), lhsPaymentMethodRef, rhsPaymentMethodRef, (this.paymentMethodRef!= null), (that.paymentMethodRef!= null))) {
                return false;
            }
        }
        {
            String lhsPaymentRefNum;
            lhsPaymentRefNum = this.getPaymentRefNum();
            String rhsPaymentRefNum;
            rhsPaymentRefNum = that.getPaymentRefNum();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "paymentRefNum", lhsPaymentRefNum), LocatorUtils.property(thatLocator, "paymentRefNum", rhsPaymentRefNum), lhsPaymentRefNum, rhsPaymentRefNum, (this.paymentRefNum!= null), (that.paymentRefNum!= null))) {
                return false;
            }
        }
        {
            PaymentTypeEnum lhsPaymentType;
            lhsPaymentType = this.getPaymentType();
            PaymentTypeEnum rhsPaymentType;
            rhsPaymentType = that.getPaymentType();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "paymentType", lhsPaymentType), LocatorUtils.property(thatLocator, "paymentType", rhsPaymentType), lhsPaymentType, rhsPaymentType, (this.paymentType!= null), (that.paymentType!= null))) {
                return false;
            }
        }
        {
            CheckPayment lhsCheckPayment;
            lhsCheckPayment = this.getCheckPayment();
            CheckPayment rhsCheckPayment;
            rhsCheckPayment = that.getCheckPayment();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "checkPayment", lhsCheckPayment), LocatorUtils.property(thatLocator, "checkPayment", rhsCheckPayment), lhsCheckPayment, rhsCheckPayment, (this.checkPayment!= null), (that.checkPayment!= null))) {
                return false;
            }
        }
        {
            CreditCardPayment lhsCreditCardPayment;
            lhsCreditCardPayment = this.getCreditCardPayment();
            CreditCardPayment rhsCreditCardPayment;
            rhsCreditCardPayment = that.getCreditCardPayment();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "creditCardPayment", lhsCreditCardPayment), LocatorUtils.property(thatLocator, "creditCardPayment", rhsCreditCardPayment), lhsCreditCardPayment, rhsCreditCardPayment, (this.creditCardPayment!= null), (that.creditCardPayment!= null))) {
                return false;
            }
        }
        {
            ReferenceType lhsEntityRef;
            lhsEntityRef = this.getEntityRef();
            ReferenceType rhsEntityRef;
            rhsEntityRef = that.getEntityRef();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "entityRef", lhsEntityRef), LocatorUtils.property(thatLocator, "entityRef", rhsEntityRef), lhsEntityRef, rhsEntityRef, (this.entityRef!= null), (that.entityRef!= null))) {
                return false;
            }
        }
        {
            Boolean lhsCredit;
            lhsCredit = this.isCredit();
            Boolean rhsCredit;
            rhsCredit = that.isCredit();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "credit", lhsCredit), LocatorUtils.property(thatLocator, "credit", rhsCredit), lhsCredit, rhsCredit, (this.credit!= null), (that.credit!= null))) {
                return false;
            }
        }
        {
            PhysicalAddress lhsRemitToAddr;
            lhsRemitToAddr = this.getRemitToAddr();
            PhysicalAddress rhsRemitToAddr;
            rhsRemitToAddr = that.getRemitToAddr();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "remitToAddr", lhsRemitToAddr), LocatorUtils.property(thatLocator, "remitToAddr", rhsRemitToAddr), lhsRemitToAddr, rhsRemitToAddr, (this.remitToAddr!= null), (that.remitToAddr!= null))) {
                return false;
            }
        }
        {
            BigDecimal lhsTotalAmt;
            lhsTotalAmt = this.getTotalAmt();
            BigDecimal rhsTotalAmt;
            rhsTotalAmt = that.getTotalAmt();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "totalAmt", lhsTotalAmt), LocatorUtils.property(thatLocator, "totalAmt", rhsTotalAmt), lhsTotalAmt, rhsTotalAmt, (this.totalAmt!= null), (that.totalAmt!= null))) {
                return false;
            }
        }
        {
            String lhsTxnId;
            lhsTxnId = this.getTxnId();
            String rhsTxnId;
            rhsTxnId = that.getTxnId();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "txnId", lhsTxnId), LocatorUtils.property(thatLocator, "txnId", rhsTxnId), lhsTxnId, rhsTxnId, (this.txnId!= null), (that.txnId!= null))) {
                return false;
            }
        }
        {
            String lhsTxnNum;
            lhsTxnNum = this.getTxnNum();
            String rhsTxnNum;
            rhsTxnNum = that.getTxnNum();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "txnNum", lhsTxnNum), LocatorUtils.property(thatLocator, "txnNum", rhsTxnNum), lhsTxnNum, rhsTxnNum, (this.txnNum!= null), (that.txnNum!= null))) {
                return false;
            }
        }
        {
            String lhsMemo;
            lhsMemo = this.getMemo();
            String rhsMemo;
            rhsMemo = that.getMemo();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "memo", lhsMemo), LocatorUtils.property(thatLocator, "memo", rhsMemo), lhsMemo, rhsMemo, (this.memo!= null), (that.memo!= null))) {
                return false;
            }
        }
        {
            PrintStatusEnum lhsPrintStatus;
            lhsPrintStatus = this.getPrintStatus();
            PrintStatusEnum rhsPrintStatus;
            rhsPrintStatus = that.getPrintStatus();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "printStatus", lhsPrintStatus), LocatorUtils.property(thatLocator, "printStatus", rhsPrintStatus), lhsPrintStatus, rhsPrintStatus, (this.printStatus!= null), (that.printStatus!= null))) {
                return false;
            }
        }
        {
            GlobalTaxCalculationEnum lhsGlobalTaxCalculation;
            lhsGlobalTaxCalculation = this.getGlobalTaxCalculation();
            GlobalTaxCalculationEnum rhsGlobalTaxCalculation;
            rhsGlobalTaxCalculation = that.getGlobalTaxCalculation();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "globalTaxCalculation", lhsGlobalTaxCalculation), LocatorUtils.property(thatLocator, "globalTaxCalculation", rhsGlobalTaxCalculation), lhsGlobalTaxCalculation, rhsGlobalTaxCalculation, (this.globalTaxCalculation!= null), (that.globalTaxCalculation!= null))) {
                return false;
            }
        }
        {
            IntuitAnyType lhsPurchaseEx;
            lhsPurchaseEx = this.getPurchaseEx();
            IntuitAnyType rhsPurchaseEx;
            rhsPurchaseEx = that.getPurchaseEx();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "purchaseEx", lhsPurchaseEx), LocatorUtils.property(thatLocator, "purchaseEx", rhsPurchaseEx), lhsPurchaseEx, rhsPurchaseEx, (this.purchaseEx!= null), (that.purchaseEx!= null))) {
                return false;
            }
        }
        {
            BigDecimal lhsLessCIS;
            lhsLessCIS = this.getLessCIS();
            BigDecimal rhsLessCIS;
            rhsLessCIS = that.getLessCIS();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "lessCIS", lhsLessCIS), LocatorUtils.property(thatLocator, "lessCIS", rhsLessCIS), lhsLessCIS, rhsLessCIS, (this.lessCIS!= null), (that.lessCIS!= null))) {
                return false;
            }
        }
        {
            Boolean lhsIncludeInAnnualTPAR;
            lhsIncludeInAnnualTPAR = this.isIncludeInAnnualTPAR();
            Boolean rhsIncludeInAnnualTPAR;
            rhsIncludeInAnnualTPAR = that.isIncludeInAnnualTPAR();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "includeInAnnualTPAR", lhsIncludeInAnnualTPAR), LocatorUtils.property(thatLocator, "includeInAnnualTPAR", rhsIncludeInAnnualTPAR), lhsIncludeInAnnualTPAR, rhsIncludeInAnnualTPAR, (this.includeInAnnualTPAR!= null), (that.includeInAnnualTPAR!= null))) {
                return false;
            }
        }
        return true;
    }

    public boolean equals(Object object) {
        final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
        return equals(null, null, object, strategy);
    }

    public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
        int currentHashCode = super.hashCode(locator, strategy);
        {
            ReferenceType theAccountRef;
            theAccountRef = this.getAccountRef();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accountRef", theAccountRef), currentHashCode, theAccountRef, (this.accountRef!= null));
        }
        {
            ReferenceType thePaymentMethodRef;
            thePaymentMethodRef = this.getPaymentMethodRef();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paymentMethodRef", thePaymentMethodRef), currentHashCode, thePaymentMethodRef, (this.paymentMethodRef!= null));
        }
        {
            String thePaymentRefNum;
            thePaymentRefNum = this.getPaymentRefNum();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paymentRefNum", thePaymentRefNum), currentHashCode, thePaymentRefNum, (this.paymentRefNum!= null));
        }
        {
            PaymentTypeEnum thePaymentType;
            thePaymentType = this.getPaymentType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paymentType", thePaymentType), currentHashCode, thePaymentType, (this.paymentType!= null));
        }
        {
            CheckPayment theCheckPayment;
            theCheckPayment = this.getCheckPayment();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "checkPayment", theCheckPayment), currentHashCode, theCheckPayment, (this.checkPayment!= null));
        }
        {
            CreditCardPayment theCreditCardPayment;
            theCreditCardPayment = this.getCreditCardPayment();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creditCardPayment", theCreditCardPayment), currentHashCode, theCreditCardPayment, (this.creditCardPayment!= null));
        }
        {
            ReferenceType theEntityRef;
            theEntityRef = this.getEntityRef();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "entityRef", theEntityRef), currentHashCode, theEntityRef, (this.entityRef!= null));
        }
        {
            Boolean theCredit;
            theCredit = this.isCredit();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "credit", theCredit), currentHashCode, theCredit, (this.credit!= null));
        }
        {
            PhysicalAddress theRemitToAddr;
            theRemitToAddr = this.getRemitToAddr();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "remitToAddr", theRemitToAddr), currentHashCode, theRemitToAddr, (this.remitToAddr!= null));
        }
        {
            BigDecimal theTotalAmt;
            theTotalAmt = this.getTotalAmt();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalAmt", theTotalAmt), currentHashCode, theTotalAmt, (this.totalAmt!= null));
        }
        {
            String theTxnId;
            theTxnId = this.getTxnId();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "txnId", theTxnId), currentHashCode, theTxnId, (this.txnId!= null));
        }
        {
            String theTxnNum;
            theTxnNum = this.getTxnNum();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "txnNum", theTxnNum), currentHashCode, theTxnNum, (this.txnNum!= null));
        }
        {
            String theMemo;
            theMemo = this.getMemo();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "memo", theMemo), currentHashCode, theMemo, (this.memo!= null));
        }
        {
            PrintStatusEnum thePrintStatus;
            thePrintStatus = this.getPrintStatus();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "printStatus", thePrintStatus), currentHashCode, thePrintStatus, (this.printStatus!= null));
        }
        {
            GlobalTaxCalculationEnum theGlobalTaxCalculation;
            theGlobalTaxCalculation = this.getGlobalTaxCalculation();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "globalTaxCalculation", theGlobalTaxCalculation), currentHashCode, theGlobalTaxCalculation, (this.globalTaxCalculation!= null));
        }
        {
            IntuitAnyType thePurchaseEx;
            thePurchaseEx = this.getPurchaseEx();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "purchaseEx", thePurchaseEx), currentHashCode, thePurchaseEx, (this.purchaseEx!= null));
        }
        {
            BigDecimal theLessCIS;
            theLessCIS = this.getLessCIS();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lessCIS", theLessCIS), currentHashCode, theLessCIS, (this.lessCIS!= null));
        }
        {
            Boolean theIncludeInAnnualTPAR;
            theIncludeInAnnualTPAR = this.isIncludeInAnnualTPAR();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "includeInAnnualTPAR", theIncludeInAnnualTPAR), currentHashCode, theIncludeInAnnualTPAR, (this.includeInAnnualTPAR!= null));
        }
        return currentHashCode;
    }

    public int hashCode() {
        final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
        return this.hashCode(null, strategy);
    }

}


text:
using System;

namespace Ofl.Search
{
    public abstract class IndexStats
    {
        #region Constructor

        protected IndexStats(long documents, long sizeInBytes)
        {
            // Validate parameters.
            if (documents < 0) throw new ArgumentOutOfRangeException(nameof(documents), documents,
                $"The {nameof(documents)} parameter must be a non-negative value.");
            if (sizeInBytes < 0) throw new ArgumentOutOfRangeException(nameof(sizeInBytes), sizeInBytes,
                $"The {nameof(sizeInBytes)} parameter must be a non-negative value.");

            // Assign values.
            Documents = documents;
            SizeInBytes = sizeInBytes;
        }

        #endregion

        #region Instance, read-only state

        public long Documents { get; }

        public long SizeInBytes { get; }

        #endregion
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.kryptnostic.rhizome.hazelcast.processors;

import com.hazelcast.cache.BackupAwareEntryProcessor;
import com.hazelcast.map.EntryProcessor;
import java.util.Map;
import javax.annotation.Nonnull;
import javax.cache.processor.EntryProcessorException;
import javax.cache.processor.MutableEntry;

public abstract class AbstractRhizomeEntryProcessor<K, V, R>
        implements EntryProcessor<K, V, R>, BackupAwareEntryProcessor<K, V, R> {
    private static final long    serialVersionUID = 5060655249179605949L;
    private final        boolean applyOnBackup;

    /**
     * Creates an EntryProcessor that applies the {@link #process(java.util.Map.Entry)} to primary and backups.
     */
    public AbstractRhizomeEntryProcessor() {
        this( true );
    }

    public AbstractRhizomeEntryProcessor( boolean applyOnBackup ) {
        this.applyOnBackup = applyOnBackup;
    }

    @Override
    public abstract R process( @Nonnull Map.Entry<K, V> entry );

    @Override
    public final EntryProcessor<K, V, R> getBackupProcessor() {
        if ( applyOnBackup ) {
            return this;
        }
        return null;
    }

    @Override public R process( MutableEntry<K, V> entry, Object... arguments ) throws EntryProcessorException {
        return process( entry );
    }

    @Override public javax.cache.processor.EntryProcessor<K, V, R> createBackupEntryProcessor() {
        return this;
    }
}


text:
<link rel="import" href="../vendor/polymer/polymer.html" />

<polymer-element name="audio-pad" on-click="{{buttonClick}}" on-drop="{{dropHandler}}"
                 on-dragover="{{noop}}" on-dragenter="{{noop}}">
  <template>
    <style>
     :host {
         box-sizing: border-box;
         padding: 75px;
         display: inline-block;
         margin: 10px;
         border: 2px solid darkgray;
         border-right: 4px solid darkgray;
         border-bottom: 4px solid darkgray;
         border-radius: 6px;
         background: radial-gradient(center, ellipse cover, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
         background: -moz-radial-gradient(center, ellipse cover, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
         background: -webkit-radial-gradient(center, ellipse cover, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
         -webkit-user-select: none;
     }
     :host:active {
         border-top: 4px solid darkgray;
         border-right: 2px;
         border-bottom: 2px;
         border-left: 4px solid darkgray;
     }
    </style>
  </template>

  <script>
   Polymer('audio-pad', {
     ready: function() {
       this.triggerKey = '';
       this.url = '';
       this.source = undefined;
       this.buffer = undefined;
       this.audioContext = undefined;
     },
     needBuffer: function() {
       return this.buffer === undefined;
     },
     keypressHandler: function(evt, detail, sender) {
       evt.preventDefault();
       return false;
     },
     dropHandler: function(evt, detail, sender) {
       this.uploader(evt);
     },
     noop: function(evt) {
       if (evt.preventDefault) {
         evt.preventDefault();
       }

       return false;
     },
     loadSound: function(url, cb) {
       var req = new XMLHttpRequest();
       req.open('GET', url, true);
       req.responseType = 'arraybuffer';
       var self = this;
       req.onloadend = function() {
         self.decode.call(self, req.response, cb);
       };
       req.send();
     },
     buttonClick: function(evt, detail, sender) {
       this.play();
     },
     onLoaded: function(source, silent) {
       this.buffer = source;
       this.source = this.audioContext.createBufferSource();
       this.source.buffer = this.buffer;
       this.source.connect(this.audioContext.destination);
       if (!silent) this.playSound();
     },
     playSound: function() {
       this.source.start(this.audioContext.currentTime);
     },
     loadSilent: function() {
       if (!this.needBuffer()) return;
       var self = this;
       this.loadSound(this.url, function(data) {
         self.onLoaded.call(self, data, true);
       });
     },
     play: function() {
       if (this.needBuffer()) {
         var self = this;
         this.loadSound(this.url, function(data) {
           self.onLoaded.call(self, data);
         });
       } else {
         this.onLoaded(this.buffer);
       }
     },
     stop: function() {
       this.source.stop(this.audioContext.currentTime);
     },
     decode: function(data, success, error) {
       this.audioContext.decodeAudioData(data, success, error);
     },
     uploader: function(evt) {
       if (evt.preventDefault) evt.preventDefault();
       var reader = new FileReader();
       reader.onloadend = function(src) {
         if (!src.target.result) return;
         var self = this;
         this.decode(src.target.result, function(data) {
           self.onLoaded.call(self, data);
         });
       };
       reader.readAsArrayBuffer(evt.dataTransfer.files[0]);
     }
   });
  </script>
</polymer-element>


text:
module Ddb #:nodoc:
  module Userstamp
    # Determines what default columns to use for recording the current stamper.
    # By default this is set to false, so the plug-in will use columns named
    # <tt>creator_id</tt>, <tt>updater_id</tt>, and <tt>deleter_id</tt>.
    #
    # To turn compatibility mode on, place the following line in your environment.rb
    # file:
    #
    #   Ddb::Userstamp.compatibility_mode = true
    #
    # This will cause the plug-in to use columns named <tt>created_by</tt>,
    # <tt>updated_by</tt>, and <tt>deleted_by</tt>.
    mattr_accessor :compatibility_mode
    @@compatibility_mode = false

    # Extends the stamping functionality of ActiveRecord by automatically recording the model
    # responsible for creating, updating, and deleting the current object. See the Stamper
    # and Userstamp modules for further documentation on how the entire process works.
    module Stampable
      def self.included(base) #:nodoc:
        super

        base.extend(ClassMethods)
        base.class_eval do
          include InstanceMethods

          # Should ActiveRecord record userstamps? Defaults to true.
          class_attribute  :record_userstamp
          self.record_userstamp = true

          # Which class is responsible for stamping? Defaults to :user.
          class_attribute  :stamper_class_name

          # What column should be used for the creator stamp?
          # Defaults to :creator_id when compatibility mode is off
          # Defaults to :created_by when compatibility mode is on
          class_attribute  :creator_attribute

          # What column should be used for the updater stamp?
          # Defaults to :updater_id when compatibility mode is off
          # Defaults to :updated_by when compatibility mode is on
          class_attribute  :updater_attribute

          # What column should be used for the deleter stamp?
          # Defaults to :deleter_id when compatibility mode is off
          # Defaults to :deleted_by when compatibility mode is on
          class_attribute  :deleter_attribute

          # What should be association name
          # Defaults to :owned_by when compatibility mode is off
          # Defaults to :creator when compatibility mode is on
          class_attribute :creator_association_name

          # What should be association name
          # Defaults to :modified_by when compatibility mode is off
          # Defaults to :updater when compatibility mode is on
          class_attribute :updater_association_name

          self.stampable
        end
      end

      module ClassMethods
        # This method is automatically called on for all classes that inherit from
        # ActiveRecord, but if you need to customize how the plug-in functions, this is the
        # method to use. Here's an example:
        #
        #   class Post < ActiveRecord::Base
        #     stampable :stamper_class_name => :person,
        #               :creator_attribute  => :create_user,
        #               :updater_attribute  => :update_user,
        #               :deleter_attribute  => :delete_user
        #   end
        #
        # The method will automatically setup all the associations, and create <tt>before_save</tt>
        # and <tt>before_create</tt> filters for doing the stamping.
        def stampable(options = {})
          defaults  = {
                        :stamper_class_name        => :user,
                        :creator_attribute         => Ddb::Userstamp.compatibility_mode ? :created_by_id : :creator_id,
                        :updater_attribute         => Ddb::Userstamp.compatibility_mode ? :updated_by_id : :updater_id,
                        :deleter_attribute         => Ddb::Userstamp.compatibility_mode ? :deleted_by : :deleter_id,
                        :creator_association_name  => Ddb::Userstamp.compatibility_mode ? :created_by : :owned_by,
                        :updater_association_name  => Ddb::Userstamp.compatibility_mode ? :updated_by : :modified_by
                      }.merge(options)

          self.stamper_class_name        = defaults[:stamper_class_name].to_sym
          self.creator_attribute         = defaults[:creator_attribute].to_sym
          self.updater_attribute         = defaults[:updater_attribute].to_sym
          self.deleter_attribute         = defaults[:deleter_attribute].to_sym
          self.creator_association_name  = defaults[:creator_association_name].to_sym
          self.updater_association_name  = defaults[:updater_association_name].to_sym

          class_eval do
            unless defined?(Caboose::Acts::Paranoid)
              belongs_to self.creator_association_name, :class_name => self.stamper_class_name.to_s.singularize.camelize,
                                 :foreign_key => self.creator_attribute
            end

            belongs_to self.updater_association_name, :class_name => self.stamper_class_name.to_s.singularize.camelize,
                                 :foreign_key => self.updater_attribute

            before_save     :set_updater_attribute
            before_create   :set_creator_attribute

            if defined?(Caboose::Acts::Paranoid)
              belongs_to :deleter, :class_name => self.stamper_class_name.to_s.singularize.camelize,
                                   :foreign_key => self.deleter_attribute
              before_destroy  :set_deleter_attribute
            end
          end
        end

        # Temporarily allows you to turn stamping off. For example:
        #
        #   Post.without_stamps do
        #     post = Post.find(params[:id])
        #     post.update_attributes(params[:post])
        #     post.save
        #   end
        def without_stamps
          original_value = self.record_userstamp
          self.record_userstamp = false
          yield
          self.record_userstamp = original_value
        end

        def stamper_class #:nodoc:
          stamper_class_name.to_s.capitalize.constantize rescue nil
        end
      end

      module InstanceMethods #:nodoc:
        private
          def has_stamper?
            !self.class.stamper_class.nil? && !self.class.stamper_class.stamper.nil? rescue false
          end

          def set_creator_attribute
            return unless self.record_userstamp
            if respond_to?(self.creator_attribute.to_sym) && has_stamper?
              self.send("#{self.creator_attribute}=".to_sym, self.class.stamper_class.stamper)
            end
          end

          def set_updater_attribute
            return unless self.record_userstamp
            if respond_to?(self.updater_attribute.to_sym) && has_stamper?
              self.send("#{self.updater_attribute}=".to_sym, self.class.stamper_class.stamper)
            end
          end

          def set_deleter_attribute
            return unless self.record_userstamp
            if respond_to?(self.deleter_attribute.to_sym) && has_stamper?
              self.send("#{self.deleter_attribute}=".to_sym, self.class.stamper_class.stamper)
              save
            end
          end
        #end private
      end
    end
  end
end

ActiveRecord::Base.send(:include, Ddb::Userstamp::Stampable) if defined?(ActiveRecord)


text:
#-------------------------------------------------------------------------------
# Author:      nlehuby
#
# Created:     28/01/2015
# Copyright:   (c) nlehuby 2015
# Licence:     MIT
#-------------------------------------------------------------------------------
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import json
import datetime
import csv

def prepare_osm_routes():
    """
    reconstruit les infos osm nécessaires
    """
    source_csv = csv.reader(open("collecte/relations_routes.csv", "rb"))
    result_list = []

    for an_osm_route in source_csv :
        if len(an_osm_route) < 6:
            print ("il faut appeler Overpass pour récupérer les infos manquantes : TODO")
        else :
            result_list.append(an_osm_route)

    #tri
    result_int = []
    result_other= []
    for a_route in result_list:
        try:
            int(a_route[1])
            result_int.append(a_route)
        except ValueError :
            result_other.append(a_route)
    result_int.sort(key=lambda osm_route: int(osm_route[1]))
    result_other.sort(key=lambda osm_route: osm_route[1])
    result_list = result_int + result_other

    with open("rendu/sources/osm_parcours.csv", "wb") as csv_file:
        writer = csv.writer(csv_file, delimiter=',')
        for line in result_list:
            writer.writerow(line)

def prepare_navitia_routes():
    """
    reconstruit les infos navitia nécessaires
    """
    source_csv = csv.reader(open("rapprochement/osm_navitia.csv", "rb"))
    result_list = []

    for a_nav_route in source_csv :
        if len(a_nav_route) < 5:
            print ("il faut appeler navitia pour récupérer les infos manquantes : TODO")
        else :
            result_list.append(a_nav_route)

    with open("rendu/sources/navitia_parcours.csv", "wb") as csv_file:
        writer = csv.writer(csv_file, delimiter=',')
        for line in result_list:
            writer.writerow(line)

def to_html():
    """
    crée la page d'index listant référençant les pages de chaque parcours OSM
    """

    prepare_osm_routes()
    prepare_navitia_routes()

    osm_csv = csv.reader(open("rendu/sources/osm_parcours.csv", "rb"))
    navitia_csv = list(csv.reader(open("rendu/sources/navitia_parcours.csv", "rb")))

    autocomplete = {"parcours_osm":[]}

    template_table = ''

    for osm_route in osm_csv:
        print osm_route[2]
        #création de l'objet pour l'autocomplétion
        parcours = {}
        parcours['value'] = osm_route [0]
        parcours['label'] = "[{}] {} > {}".format(osm_route[5], osm_route[1], osm_route[3])

        rapp = [route for route in navitia_csv if route[0] == osm_route[0]] #rapprochement osm navitia

        print (rapp)
        if rapp != []:
            print ('ok')
            parcours['url'] = "bus_route.htm?osm={}&navitia={}".format(osm_route[0], rapp[0][1] )

            #current_osm_route = {'id' : osm_route[0], 'name': osm_route[2], 'ref': osm_route[1], 'nb_stops': osm_route[4]}
            #current_nav_route = {'id' : rapp[0][1], 'name' : rapp[0][2], 'nb_stops': rapp[0][3]}

            #ajout dans l'index
            liste_template = """

                     %%network%%

                     %%route_code%%

                    %%relation_name%%

                        %%OSM_nb_stops%%/%%navitia_nb_stops%%

                        <progress value="%%OSM_nb_stops%%" max="%%navitia_nb_stops%%">état de la carto de la route</progress>

                """

            liste_template = liste_template.replace("%%route_code%%", osm_route[1]  )
            liste_template = liste_template.replace("%%relation_id%%", osm_route[0]  )
            liste_template = liste_template.replace("%%relation_name%%", osm_route[2]  )
            liste_template = liste_template.replace("%%network%%", osm_route[5]  )
            liste_template = liste_template.replace("%%OSM_nb_stops%%", osm_route[4]  )
            liste_template = liste_template.replace("%%navitia_nb_stops%%", rapp[0][3] )
            liste_template = liste_template.replace("%%navitia_id%%", rapp[0][1] )

        else:
            print ('ko')
            parcours['url'] = "bus_route.htm?osm={}".format(osm_route[0])
            liste_template = """

                     %%network%%

                     %%route_code%%

                    %%relation_name%%

                        %%OSM_nb_stops%%

                """
            liste_template = liste_template.replace("%%route_code%%", osm_route[1]  )
            liste_template = liste_template.replace("%%relation_id%%", osm_route[0]  )
            liste_template = liste_template.replace("%%relation_name%%", osm_route[2]  )
            liste_template = liste_template.replace("%%network%%", osm_route[5]  )
            liste_template = liste_template.replace("%%OSM_nb_stops%%", osm_route[4]  )

        #persistance autocomplétion
        autocomplete['parcours_osm'].append(parcours)
        template_table += liste_template

    #persistance de la page d'index
    now = datetime.datetime.now()
    mon_fichier = open("rendu/assets/template_liste.html", "r")
    template = mon_fichier.read()
    mon_fichier.close()
    template = template.replace("%%tableau_des_routes%%", template_table  )
    template = template.replace("%%date_du_jour%%", now.strftime("%d/%m/%Y %H:%M") )
    mon_fichier = open("rendu/index.html", "wb")
    mon_fichier.write(template)
    mon_fichier.close()

    #persistance du fichier d'autocomplétion
    json.dump(autocomplete, open('rendu/osm_parcours.json', "w"), indent=4)

if __name__ == '__main__':
    to_html()


text:
package com.bankonet.test;

import com.bankonet.CompteStat;

public class TestAutomate {

	public static void main(String[] args) {
		CompteStat[] comptes = DonneesTest.construitEchantillonComptes();

		double totalSoldes = 0;
		for (CompteStat compteStat : comptes) {
			totalSoldes += compteStat.getSolde();
		}

		System.out.println("Moyenne des soldes = "+totalSoldes/comptes.length);

		//byte num = (byte) 15666;
		byte num = 127;
		//long l = 2147483680000; //marche pas car par défaut int
		long l = 2147483680000L;
		System.out.println("Num = "+num);
	}

	static String titi = "r,a,a";

	public String name() {
		return titi;
	}

}


text:
"""
mnist_svm
~~~~~~~~~

A classifier program for recognizing handwritten digits from the MNIST
data set, using an SVM classifier."""

#### Libraries
# My libraries
import mnist_loader

# Third-party libraries
from sklearn import svm

def svm_baseline():
    training_data, validation_data, test_data = mnist_loader.load_data()
    # train
    clf = svm.SVC()
    clf.fit(training_data[0], training_data[1])
    # test
    predictions = [int(a) for a in clf.predict(test_data[0])]
    num_correct = sum(int(a == y) for a, y in zip(predictions, test_data[1]))
    print "Baseline classifier using an SVM."
    print "%s of %s values correct." % (num_correct, len(test_data[1]))

if __name__ == "__main__":
    svm_baseline()


text: <merchello-spinner />


text:
var SERVER_URL = 'http://localhost:3000/';
export const environment = {
  production: false,
  API_URL: SERVER_URL + 'api/',
  SERVER_URL: SERVER_URL
};


text:
require 'eventmachine'
require 'socket'
require 'rubot/attack/clone_flood'
require 'rubot/attack/packeting'
require 'rubot/attack/scanning'
require 'rubot/attack/spam'
require 'rubot/control/p2p/kademlia'
require 'rubot/control/p2p/overnet'
require 'rubot/control/p2p/p2p'
require 'rubot/control/dga/bamital'
require 'rubot/control/dga/blackhole'
require 'rubot/control/dga/conficker'
require 'rubot/control/dga/flashback-k'
require 'rubot/control/dga/licat'
require 'rubot/control/dga/sinowal'
require 'rubot/control/dga/srizbi'
require 'rubot/control/http'
require 'rubot/control/irc'
require 'rubot/model/gtbot'
require 'rubot/model/nugache'
require 'rubot/service/proxy'
require 'rubot/service/fastflux'
require 'rubot/service/http_server'
require 'rubot/service/email_server'
require 'rubot/service/irc'
require 'rubot/service/ftp'
require 'rubot/vulnerable/tcp_service'
require 'rubot/vulnerable/udp_service'


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <title>Brainhack Vienna 2016</title>
    <meta name="description" content="Website for Brainhack Vienna 2016" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="Codeply">
    <link rel="stylesheet" href="css/bootstrap-3.3.6-dist/css/bootstrap.min.css" />
    <link href="css/animate.css" rel="stylesheet" />
    <link rel="stylesheet" href="css/ionicons-2.0.1/css/ionicons.min.css" />
    <link rel="stylesheet" href="css/styles.css" />

                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar">
                    Toggle navigation

                </button>
                 Brainhack

                        Info

                        Sponsors

                        Schedule

                        Projects

                        Location

                        Hotel

                        RSBC Conference

BrainHack Vienna 2016

Reliability and Reproducibility in Connectomics

September 18 ~ 20, 2016

				Register NowApply for a Travel AwardJoin Brainhack on SlackSubmit a Project

Slicing the connectomes - Video by Alfred Anwander, Max Planck Institute for Human Cognitive and Brain Sciences Toggle Video

        <video controls loop autoplay class="fillWidth fadeIn wow collapse in" data-wow-delay="0.5s" poster="assets/background.jpg" id="video-background">

            <source src="assets/slicing_fiber_tractography.mp4" type="video/mp4">Your browser does not support the video tag. I suggest you upgrade your browser.
        </video>

Share

Show your research to other brain enthusiasts

Learn

Learn how to apply the latest computational tools to you data.

Get involved

Find exciting projects that you would like to contribute to.

Be social

Meet local and international scientists

Reliability and reproducilbility are very important for connectomics research, particularly if we are going to translate scientific findings into useful clinical biomarkers and treatment targets. Although a variety of studies have investigated these aspects of Connectomes analyses from different perspectives, there is no consensus on the current state of reproducibility for connectomics research or what needs to be done to improve it.

Brainhack Vienna, will be held just prior to this years' Conference on Resting State Brain Connectivity and will provide a unique venue for investigating this important topic. The three-day event will occur September 18 – 20 at the  Computational Imaging Research Lab, Department of Biomedical Imaging and Image-guided Therapy, Medical University of Vienna and will feature open discussions and collaborative sessions related to assessing and improving the reproducibility of functional and diffusion MRI based Connectomes analyses.

Full-length editorial and review papers developed from the discussions that occur at the event will be invited for publication in the Brainhack Series of the Gigascience Journal. Project reports describing tools and analyses will be invited for publication in the 2016 Brainhack Proceedings.

Registration is 150€ and covers lunch and refreshments for each day and attendance at a reception on Monday night. Spaces are limited, registration will remain open until all spaces are filled or September 12 at the latest.

Email info@brainhack.org for more information.

Travel Awards

Thanks to the generous support of our sponsors, funding is available for a limited number of students and post docs to defray their costs for attending the Brainhack Vienna.

The award will cover approved costs up to $500.

To apply, email a one-page Brainhack project proposal and CV to info@brainhack.org.

Applications are no longer being accepted.

The organizing committee will determine the winners based on the merits of the submitted materials, as well as geographical, expertise and gender diversity. The winners will be encouraged to develop their project during the hackathon, notably using the brainhack slack ahead of the event.

Awards will be announced by email by August 16th.

Brainhack Vienna is generously supported by:

Fifth Biennial Conference on Resting State and Brain Connectivity

Brainhack Vienna will preceed the the Fifth Biennial Conference on Resting State and Brain Connectivity, which will take place in Vienna (Austria) on September 21 to 23, 2016.

The organizing committee brings together key researchers working on technical advances and methodological issues in imaging the brain's functional connectome. In addition to the major topics of earlier years, the Fifth Biennial Conference on Resting State / Brain Connectivity will include sessions on multi-modal imaging approaches to measure brain structure as well as brain function and include human imaging methods and animal models. Approximately one third of the conference will be dedicated to applications of brain connectivity methods and models in neurological and psychiatric disease.

The venue of the meeting will be the University of Vienna. With a long-standing tradition of over 650 years, the University of Vienna is one of the oldest universities in Europe. It is located along the Wiener Ringstrasse, which surrounds the historical city center. The social event will take place at the Orangerie of Schönbrunn Palace.

The conference is preceded by an educational workshop on 19-20 September providing the background to state-of-the-art resting state and brain connectivity research. For the third time we now offer this intensive pre-conference workshop for those aiming to maximize their individual outcome for the main conference.

For more information go to www.restingstate.com.

Official Dataset of Brainhack Vienna

     1629 Subjects

     3357 Anatomical Scans

     5093 Resting Functional Scans

     1302 Diffusion Scans

     300 Cerebral Blood Flow Scans

   Curated and maintained by the International Neuroimaging Datasharing Intiative

Come Collaborate With Us:

Veronika Schöpf (Local Organizer)

Karl-Franzens-Universität Graz

Georg Langs (Local Organizer)

Medical University of Vienna

Cameron Craddock (Chair)

Nathan Kline Institute / Child Mind Institute

Pierre Bellec (Co-organizer)

CRIUGM

Bharat Biswal (Co-organizer)

New Jersey Institute of Technology

Alexandre Franco (Co-organizer)

Instituto do Cerebro, PUCRS

David Kennedy (Co-organizer)

University of Massachusetts Medical School

Daniel Margulies (Co-organizer)

MPI for Cognitive and Brain Sciences

Michael Milham (Co-organizer)

Child Mind Institute / Nathan Kline Institute

JB Poline (Co-organizer)

University of California, Berkeley

Stephen Strother (Co-organizer)

Rotman Research Institute, Baycrest Hospital

Xi-Nian Zuo (Co-organizer)

Chinese Academy of Sciences

Alexandre Abraham

Neurospin

Rasmus Birn

University of Wisconsin

F. Xavier Castellanos

NYU Child Study Center

Adriana Di Martino

NYU Child Study Center

Greg Farber

National Institute of Mental Health

Yong He

Beijing Normal University

Daniel Kessler

University of Michigan

Martin Lindquist

John Hopkins University

Scott Peltier

University of Michigan

Roberto Toro

Institut Pasteur

Lucina Uddin

University of Miami

Koene van Dijk

Pfizer, Inc.

Joshua Vogelstein

John Hopkins University

Robert Welsh

University of Utah

Chao-Gan Yan

Chinese Academy of Sciences

Yu-Feng Zang

Hangzhou Normal University

Hosted at:

CIR Computational Imaging Research Lab
 Department of Biomedical Imaging and Image-guided Therapy
 Medical University of Vienna.

Anna Spiegel Forschungsgebäude, 1090 Wien, Austria

The events will be held in the Seminar and Lounge rooms on the bottom floor of Anna Spiegel.
Plenary sessions will be held at the Jugendstilhörsaal a short walk away.

Monday evening reception:

Attendees are invited to attend a reception Monday night at the beautiful Volksgarten Pavillon. Food and drinks will be provided. Please <emph>bring cash</emph> as it is the only form of payment accepted by the venue.

Hotels

There are a variety of hotels that are a short walk to the hosting location
including some very economical choices. Examples include:

Hotel Atlanta

Hotel Regina

Pension Vera

Hotel Pension Astra

Best Western Premier Hotel Harmonie

Schedule

Ignite Talks

Sunday, September 18, 10:00 - 12:30

The Importance of Reproduciblity and Reliability for Connectomics Research - Michael Milham, MD, PhD, Director, Center for the Developing Brain, Child Mind Institute, New York, NY and Director, Center for Biomedical Imaging and Neuromodulation, Nathan Kline Institute, Orangeburg, NY

Measuring Connectome Reproducibility and Reliability - Martin Lindquist, PhD, Professor, Department of Biostatistics, John Hopkins University, Baltimore, Maryland

The Current State of Connectome Reproducibility and Reliability - Xinian Zuo, PhD, Distinguished Research Professor, Institute of Psychology, Chinese Academy of Science, Beijing, China

Optimizing Processing and Analysis Pipelines for Reproducibility - Stephen Strother, PhD, Senior Scientist, Rotman Research Institute, Baycrest and Professor of Medical Biophysics, University of Toronto, Toronto, Ontario, Canada

Open Science Resources for Studying Connectome Reproducibility and Reliability - R. Cameron Craddock, PhD, Director, Computational Neuroimaging Lab, Center for Biomedical Imaging and Neuromodulation, Nathan Kline Institute, Orangeburg, NY and Director of Imaging, Center for the Developing Brain, Child Mind Institute, New York, NY

Sunday, September 18, 13:30 - 14:00

A Continuous Integration System for Estimating Reliability and Reproducibility of Connectome Pipelines - Joshua Vogelstein, PhD, Assistant Professor, Department of Biomedical Engineering, Institute for Computational Medicine, and Data Intensive Engineering and Sciences, John Hopkins University, Baltimore, MD

Monday, September 19, 13:15 - 13:45

The NIMH's perspective on Reliability and Reproduciblity - Greg Farber, PhD, Director, Office of Technology Development and Coordination, US National Institute for Mental Health, Bethesda, MD, USA

Tuesday, September 20, 15:00 - 15:30

Where have we learned and where do we go from here? - Daniel S. Margulies, PhD, Research Group Leader, Neuroanatomy and Connectivity, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany

Projects

The following projects have been proposed by attendees of Brainhack 2016. If you are interested in collaborating on  a project please email the listed contacts. If you would like to have your project featured, please email info@brainhack.org

A continuous integration system for measuring the reproducibility of connectome pipelines.

Contact: Cameron Craddock.

Improving the download interface of NeuroVault.org.

Contact: Asier Erramuzpe Aliaga.

Studying cortico-cortical connectivity development using DTI tractography of the ferret brain.

Contact: Céline Delettre.

Exploring neural activations in fMRI data with self-organizing maps.

Contact: Hao-Ting Wang.

Evaluate the impact of pipline parameters on the reproduciblity of  Multivariate Distance-Based Matrix Regression (MDMR) results.

Contact: John Capozzo.

Evaluate the intra and inter -subject variability of intrinsic connectivity measured in and out-of resting state.

Contact: Jingyuan Chen.

Improving predictability from neural data: a monte carlo approach.

Contact: David Moreau.

Hypothesis driven white matter tractography from T1-weighted MRI images

Contact: Anastasia Osoianu or Charl Linssen.

SCoT - Source Connectivity Toolbox for Python

Contact: Clemens Brunner.

Reliability and Reproducibility of Dual Regression: Brain Networks, Cognitive Components and Parcellation

Contact: YinShan Wang.

Interactive web tool to explore reproducibility of functional connections by scan length

Contact: Amanda Mejia.

Functional connectivity between the cerebellum and the superior temporal sulcus: Reproducibility and application to Autism Spectrum Disorders (ASD)

Contact: Charles LAIDI.

Implementing Reproducible Connectomes Analyses with Nilearn

Contact: Alexandre Abraham.

            Brainhack.org


text:
angular.module('MyApp')
  .factory('Show', ['$resource', function($resource) {
    return $resource('/api/shows/:_id');
  }]);


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
in Sigler, Hambleton, Flis & Paré, Stud. Mycol. 47: 116 (2002)

#### Original name
Auxarthron filamentosum Sigler, Hambl. & Flis

### Remarks
null


text:
package com.koudai.net.kernal;

//import com.koudai.net.kernal.Call.AsyncCall;
//import com.koudai.net.kernal.internal.Util;
//import com.koudai.net.kernal.internal.http.HttpEngine;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.concurrent.ExecutorService;

/**
 * Policy on when async requests are executed.
 *
 *
Each dispatcher uses an {@link ExecutorService} to run calls internally. If you supply your
 * own executor, it should be able to run {@linkplain #getMaxRequests the configured maximum} number
 * of calls concurrently.
 */
public final class Dispatcher {
//  private int maxRequests = 64;
//  private int maxRequestsPerHost = 5;

  /** Executes calls. Created lazily. */
  //private ExecutorService executorService;

  /** Ready async calls in the order they'll be run. */
  //private final Deque<AsyncCall> readyAsyncCalls = new ArrayDeque<>();

  /** Running asynchronous calls. Includes canceled calls that haven't finished yet. */
  //private final Deque<AsyncCall> runningAsyncCalls = new ArrayDeque<>();

  /** Running synchronous calls. Includes canceled calls that haven't finished yet. */
  private final Deque<RealCall> runningSyncCalls = new ArrayDeque<RealCall>();

//  public Dispatcher(ExecutorService executorService) {
//    this.executorService = executorService;
//  }

  public Dispatcher() {
  }

//  public synchronized ExecutorService executorService() {
//    if (executorService == null) {
//      executorService = new ThreadPoolExecutor(0, Integer.MAX_VALUE, 60, TimeUnit.SECONDS,
//              new SynchronousQueue<Runnable>(), Util.threadFactory("OkHttp Dispatcher", false));
//    }
//    return executorService;
//  }

  /**
   * Set the maximum number of requests to execute concurrently. Above this requests queue in
   * memory, waiting for the running calls to complete.
   *
   *
If more than {@code maxRequests} requests are in flight when this is invoked, those requests
   * will remain in flight.
   */
//  public synchronized void setMaxRequests(int maxRequests) {
//    if (maxRequests < 1) {
//      throw new IllegalArgumentException("max < 1: " + maxRequests);
//    }
//    this.maxRequests = maxRequests;
//    promoteCalls();
//  }

//  public synchronized int getMaxRequests() {
//    return maxRequests;
//  }

  /**
   * Set the maximum number of requests for each host to execute concurrently. This limits requests
   * by the URL's host name. Note that concurrent requests to a single IP address may still exceed
   * this limit: multiple hostnames may share an IP address or be routed through the same HTTP
   * proxy.
   *
   *
If more than {@code maxRequestsPerHost} requests are in flight when this is invoked, those
   * requests will remain in flight.
   */
//  public synchronized void setMaxRequestsPerHost(int maxRequestsPerHost) {
//    if (maxRequestsPerHost < 1) {
//      throw new IllegalArgumentException("max < 1: " + maxRequestsPerHost);
//    }
//    this.maxRequestsPerHost = maxRequestsPerHost;
//    promoteCalls();
//  }

//  public synchronized int getMaxRequestsPerHost() {
//    return maxRequestsPerHost;
//  }
//
//  synchronized void enqueue(AsyncCall call) {
//    if (runningAsyncCalls.size() < maxRequests && runningCallsForHost(call) < maxRequestsPerHost) {
//      runningAsyncCalls.add(call);
//      executorService().execute(call);
//    } else {
//      readyAsyncCalls.add(call);
//    }
//  }

  /**
   * Cancel all calls currently enqueued or executing. Includes calls executed both {@linkplain
   * Call#execute() synchronously} and {@linkplain Call#enqueue asynchronously}.
   */
//  public synchronized void cancelAll() {
//    for (AsyncCall call : readyAsyncCalls) {
//      call.cancel();
//    }
//
//    for (AsyncCall call : runningAsyncCalls) {
//      call.cancel();
//    }
//
//    for (RealCall call : runningSyncCalls) {
//      call.cancel();
//    }
//  }

  /** Used by {@code AsyncCall#run} to signal completion. */
//  synchronized void finished(AsyncCall call) {
//    if (!runningAsyncCalls.remove(call)) throw new AssertionError("AsyncCall wasn't running!");
//    promoteCalls();
//  }

//  private void promoteCalls() {
//    if (runningAsyncCalls.size() >= maxRequests) return; // Already running max capacity.
//    if (readyAsyncCalls.isEmpty()) return; // No ready calls to promote.
//
//    for (Iterator<AsyncCall> i = readyAsyncCalls.iterator(); i.hasNext(); ) {
//      AsyncCall call = i.next();
//
//      if (runningCallsForHost(call) < maxRequestsPerHost) {
//        i.remove();
//        runningAsyncCalls.add(call);
//        executorService().execute(call);
//      }
//
//      if (runningAsyncCalls.size() >= maxRequests) return; // Reached max capacity.
//    }
//  }

  /** Returns the number of running calls that share a host with {@code call}. */
//  private int runningCallsForHost(AsyncCall call) {
//    int result = 0;
//    for (AsyncCall c : runningAsyncCalls) {
//      if (c.host().equals(call.host())) result++;
//    }
//    return result;
//  }

  /** Used by {@code Call#execute} to signal it is in-flight. */
  synchronized void executed(RealCall call) {
    runningSyncCalls.add(call);
  }

  /** Used by {@code Call#execute} to signal completion. */
  synchronized void finished(Call call) {
    if (!runningSyncCalls.remove(call)) throw new AssertionError("Call wasn't in-flight!");
  }

  /** Returns a snapshot of the calls currently awaiting execution. */
//  public synchronized List<Call> queuedCalls() {
//    List<Call> result = new ArrayList<>();
//    for (AsyncCall asyncCall : readyAsyncCalls) {
//      result.add(asyncCall.get());
//    }
//    return Collections.unmodifiableList(result);
//  }

  /** Returns a snapshot of the calls currently being executed. */
//  public synchronized List<Call> runningCalls() {
//    List<Call> result = new ArrayList<>();
//    result.addAll(runningSyncCalls);
//    for (AsyncCall asyncCall : runningAsyncCalls) {
//      result.add(asyncCall.get());
//    }
//    return Collections.unmodifiableList(result);
//  }

//  public synchronized int queuedCallsCount() {
//    return readyAsyncCalls.size();
//  }
//
//  public synchronized int runningCallsCount() {
//    return runningAsyncCalls.size() + runningSyncCalls.size();
//  }
}


text:
function getText(e){
	console.log(e);
	if(e.keyCode==13 || e.which==1){
		var text=document.getElementById("speech").value;
		alert(text);
	}

}


text:
import vx
from vx.keybindings import bind, alt, ctrl, keys, KeybindingTable
import vx.movement as move
import vx.utils as utils
import vx.window
import vx.test
import vx.prompt
import vx.undo as undo

from ..pointer import panes, organizer

from functools import partial

def load(window):
    return Hopscotch(window)

class Hopscotch(KeybindingTable):
    def __init__(self, for_window):
        super().__init__()

        self.for_window = for_window

        self.mark = (1,1)

        # simple movement

        def with_column_restore(f):
            with self.for_window.column_restore():
                return f()
        def with_column_save(f):
            with self.for_window.column_save():
                return f()

        self.bind(ctrl + keys.n, partial(with_column_restore, move.down))
        self.bind(ctrl + keys.p, partial(with_column_restore, move.up))
        self.bind(ctrl + keys.b, partial(with_column_save, move.left))
        self.bind(ctrl + keys.f, partial(with_column_save, move.right))

        self.bind(ctrl + keys.a, partial(with_column_save, move.bol))
        self.bind(ctrl + keys.e, partial(with_column_save, move.eol))

        self.bind(ctrl + keys.v, partial(utils.repeat, move.down))
        self.bind(alt + keys.v, partial(utils.repeat, move.up))

        self.bind(alt + keys.langle, partial(with_column_save, move.beg))
        self.bind(alt + keys.rangle, partial(with_column_save, move.end))

        self.bind(keys.backspace, partial(with_column_save, self.for_window.backspace))
        self.bind(ctrl + keys.d, partial(with_column_save, self.for_window.delete))
        self.bind(keys.enter, partial(self.for_window.add_string, '\n'))

        self.bind(ctrl + keys.l, vx.window.center)

        self.bind(ctrl + keys.z, vx.suspend)

        self.bind(ctrl + keys.x - keys['0'], lambda: organizer.remove_pane(panes.focused))
        self.bind(ctrl + keys.x - keys['2'], lambda: panes.focused.split())
        self.bind(ctrl + keys.x - keys.o, lambda: organizer.next_pane())

        # misc.

        self.bind(ctrl + keys.x - ctrl + keys.c, vx.quit)
        self.bind(alt + keys.x, lambda: panes.focused.open_prompt(vx.prompt.exec_prompt))
        def open_regex_search():
            if not isinstance(self.for_window, vx.prompt._prompt):
                panes.focused.open_prompt(vx.prompt.regex_prompt)
        self.bind(ctrl + keys.s, open_regex_search)

        self.bind(ctrl + keys.x - ctrl + keys.f, lambda: panes.focused.open_prompt(vx.prompt.file_prompt))

        self.bind(ctrl + keys.t, vx.test.run_tests)

        # undo/redo

        self.bind(ctrl + keys.underscore, self.for_window.undo)
        self.bind(alt + keys.forwardslash, self.for_window.redo)

        # save

        self.bind(ctrl + keys.x - ctrl + keys.s, lambda: self.for_window.save())

        # mark

        self.bind(ctrl + keys.at, self.save_mark)

        # copy/paste

        self.bind(ctrl + keys.k, self.cut_to_eol)
        self.bind(ctrl + keys.w, self.cut)
        self.bind(alt + keys.w, self.uncut)
        self.bind(alt + keys.W, self.pop_cut)

    def save_mark(self):
        self.mark = self.for_window.cursor

    def pop_cut(self):
        self.for_window.copystack.pop()

    def uncut(self):
        if self.for_window.copystack.empty(): return

        (la, ca) = self.for_window.cursor
        to_insert = self.for_window.copystack.peek()
        self.for_window.add_string(to_insert)
        (lb, cb) = self.for_window.cursor
        self.for_window.dirty = True
        self.for_window.undo_tree.add(undo.addition(to_insert, la, ca, (la, ca, lb, cb)))

    def cut(self):
        (la, ca) = self.for_window.cursor
        (lb, cb) = self.mark
        forward = True
        if (la == lb and ca > cb) or lb < la:
            lb, cb, la, ca = la, ca, lb, cb
            forward = False
        text_between = vx.get_str_linecol_to_linecol_window(self.for_window, la, ca, lb, cb)
        self.for_window.copystack.push(text_between)
        self.for_window.remove_text(la, ca, lb, cb)
        self.for_window.dirty = True
        self.for_window.undo_tree.add(undo.removal(text_between, la, ca, (la, ca, lb, cb), forward))
        self.for_window.cursor = (la, ca)

    def cut_to_eol(self):
        (la, ca) = self.for_window.cursor
        with self.for_window.cursor_wander():
            move.eol()
            (lb, cb) = self.for_window.cursor
            if la == la and ca == cb:
                move.down()
                (lb, cb) = self.for_window.cursor
        text_between = vx.get_str_linecol_to_linecol_window(self.for_window, la, ca, lb, cb)
        self.for_window.copystack.push(text_between)
        self.for_window.remove_text(la, ca, lb, cb)
        self.for_window.dirty = True
        self.for_window.undo_tree.add(undo.removal(text_between, la, ca, (la, ca, lb, cb), True))
        self.for_window.cursor = (la, ca)


text:
package com.conveyal.osmlib;

/**
 *
 */
public class WebMercatorTile {

    //http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
    public final int ZOOM = 12;
    public final int xtile, ytile;

    /**
     * Tile definition equations from: TODO URL
     */
    public WebMercatorTile(double lat, double lon) {
        xtile = (int) Math.floor((lon + 180) / 360 * (1 << ZOOM));
        ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(lat))
                + 1 / Math.cos(Math.toRadians(lat))) / Math.PI) / 2 * (1 << ZOOM));
    }

}


text:
package io.acme.solution.infrastructure.dao;

import io.acme.solution.infrastructure.dao.model.PersistentEvent;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.UUID;

/**
 * Dao interface for accessing the events entries. It'll be proxied by Spring Data
 */
@Repository
public interface EventDao extends MongoRepository<PersistentEvent, UUID> {

    public PersistentEvent getById(final UUID id);
}


text:
{% extends "base.html" %}
{% load elapsed %}
{% load tz %}

{% block title %}gitpaste.com - open source git-backed pasting{% endblock %}

{% block jsheader %}

<link rel='stylesheet' media='all' type='text/css' href='{{ STATIC_URL }}/css/paste.css'>
<link rel='stylesheet' media='all' type='text/css' href='{{ STATIC_URL }}/css/chosen.css'>
{% endblock %}

{% block content %}

{% if not user.parent_set_set.all.count %}

        Paste is a simple way to share snippets and pastes with others. It is an open-source github:gist clone.
            All pastes are git repositories, so they are automatically versioned and
            forkable.

            Fork GitPaste on GitHub and improve it.

{% endif %}

    {% if user.is_authenticated %}
        {% if not user.set_set.all.count %}

Hey!

You have not created any pastes, but you will eventually.

        {% else %}

Your Most Recent Contributions

            {% for set in user.set_set.all|slice:":10" %}

                Paste {{ set.pk }}{% if set.description %}: {{ set.description }}{% endif %}

                {{ set.commit_set.all.count }} commit{{ set.commit_set.all.count|pluralize }}
                {% with set.commit_set.latest as latest %}
                <time datetime='{{ latest.created }}' title='{{ latest.created|localtime }}'> {{ latest.created|elapsed }} by
                    {% if latest.owner == user %}
                    you.
                    {% else %}
                        {% if not latest.owner %}
                        Anonymous.
                        {% else %}
                        {{ latest.email }}.
                        {% endif %}
                    {% endif %}
                </time>
                {% endwith %}

            {% endfor %}

        {% endif %}
    {% else %}

Hey, you're anonymous.

You should login or register to organize your pastes.

    {% endif %}

    <form method='POST' id='paste-form'>

        {% if user.is_authenticated and allow_anonymous_posts %}

                Remain Anonymous?
                {{ commit_meta_form.anonymous }}

        {% endif %}

                {% if set_meta_form %}
                    {{ set_form.description }}
                {% endif %}

        {% for form in forms %}

                                Language:
                                {{ form.language }}

                            {{ form.filename }}

                        {{ form.priority }}

                            {{ form.paste }}

        {% endfor %}

                    Anyone can edit:
                    {% if not set_form %}
                        {% if set_meta_form.anyone_can_edit.value %}
                            Yes
                        {% else %}
                            No
                        {% endif %}
                    {% else %}
                        {{ set_meta_form.anyone_can_edit }}
                    {% endif %}

                    Private:
                {% if not set_form %}
                    {% if set_meta_form.private.value %}
                        Yes
                    {% else %}
                        No
                    {% endif %}
                {% else %}
                    {{ set_meta_form.private }}
                {% endif %}

                    Expires:
                {% if editing %}
                    {% if not set_meta_form.expires.value %}
                        Never
                    {% else %}
                        {{ expires_time|date:"f A F j, Y" }}
                    {% endif %}
                {% else %}
                    {{ set_meta_form.expires }}
                {% endif %}

            {% if editing %}
                <input class='submit' type='submit' value='Submit Changeset'>
            {% else %}
                <input class='submit' type='submit' value='Create Paste'>
            {% endif %}

    {% csrf_token %}
    {{ forms.management_form }}
    </form>

{% endblock %}


text:
/* global tinymce */
tinymce.PluginManager.add( 'typekit', function( editor ) {

    function addScriptToHead() {
        // Get the DOM document object for the IFRAME
        var doc = editor.getDoc();

        // Create the script we will add to the header asynchronously
        var jscript = "(function() {\n\
            var config = {\n\
                kitId: 'xzh0wyr'\n\
            };\n\
            var d = false;\n\
            var tk = document.createElement('script');\n\
            tk.src = '//use.typekit.net/' + config.kitId + '.js';\n\
            tk.type = 'text/javascript';\n\
            tk.async = 'true';\n\
            tk.onload = tk.onreadystatechange = function() {\n\
                var rs = this.readyState;\n\
                if (d || rs && rs != 'complete' && rs != 'loaded') return;\n\
                d = true;\n\
                try { Typekit.load(config); } catch (e) {}\n\
            };\n\
            var s = document.getElementsByTagName('script')[0];\n\
            s.parentNode.insertBefore(tk, s);\n\
        })();";

        // Create a script element and insert the TypeKit code into it
        var script = doc.createElement( 'script' );
        script.type = 'text/javascript';
        script.appendChild( doc.createTextNode( jscript ) );

        // Add the script to the header
        doc.getElementsByTagName( 'head' )[0].appendChild( script );
    }

    // Support both TinyMCE 3 and 4.
    if ( 3 < parseInt( tinymce.majorVersion ) ) {
        editor.on( 'preInit', function() {
            addScriptToHead();
        });
    } else {
        editor.onPreInit.add( function( editor ) {
            addScriptToHead();
        });
    }
});


text:
<!DOCTYPE HTML>

			<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css" />

			<link type="text/css" rel="stylesheet" href="/static/video.css">
			<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
			<link href='http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext' rel='stylesheet' type='text/css'>

			<title>
				PPP
			</title>

					Log In

						Email
						<input type="text" class="loginTextField">

						Password
						<input type="password" class="loginTextField">

							Log In

					Forgot Password?

					Remember Me <input type="checkbox">

					PASSION: (n.) the energizing love you have for your work, in which you are thoroughly absorbed and find deeply meaningful

						Home

						My Profile

						Browse

					Sign Up | Login

				Middle School Teacher

					Salary

					Education

					Skills

					Career Outlook

					World of Work

				Average U.S. Salary (yearly)

				$53,900

				Bachelor's Degree

				4 years

				Show Piechart

				Annual Employment Increase

				World of Work Info


text:
require 'test_helper'
require 'mailbox'

class Mailbox03Test < ActionDispatch::IntegrationTest
  test 'mailbox upload, download and delete' do
    hpk = RbNaCl::Random.random_bytes 32
    mbx = Mailbox.new b64enc hpk
    assert_not_nil mbx.hpk
    hpkey = "mbx_#{mbx.hpk}"

    for i in (1..5)
      from = h2("#{i}")
      nonce = h2(rand_bytes(16))
      mbx.store from, nonce, "hello_N#{i - 1}"
      assert_equal i, rds.hlen(hpkey)
    end

    # Download all of the messages you just uploaded
    results = mbx.read_all

    # And then go ahead and delete them
    results.each do |item|
      id = b64enc item[:nonce]
      mbx.delete(id)
    end

    # Make sure all of the messages got deleted
    assert_equal(mbx.count, 0)
  end
end