text:
package com.cloudera.science.ml.client.params;

import com.beust.jcommander.Parameter;
import com.cloudera.science.ml.client.cmd.CommandException;
import com.cloudera.science.ml.mahout.types.MLWritables;
import com.cloudera.science.ml.parallel.fn.SvmLightFn;
import com.cloudera.science.ml.parallel.fn.VectorKeyFns;
import com.cloudera.science.ml.parallel.types.MLAvros;
import org.apache.crunch.PCollection;
import org.apache.crunch.Target;
import org.apache.crunch.Target.WriteMode;
import org.apache.crunch.fn.IdentityFn;
import org.apache.crunch.io.At;
import org.apache.crunch.io.To;
import org.apache.crunch.types.PType;
import org.apache.crunch.types.PTypeFamily;
import org.apache.crunch.types.avro.AvroType;
import org.apache.crunch.types.avro.AvroTypeFamily;
import org.apache.crunch.types.writable.WritableTypeFamily;
import org.apache.crunch.types.writable.Writables;
import org.apache.mahout.math.Vector;

import java.util.Locale;

/**
 * Specifies the formats that can be used with vector outputs.
 *
 * Following commands are support
 *

 * --output-type

 *      Specifies the output format. Possible values are avro and seq (for SequenceFile)
 *
 *

 */
public class VectorOutputParameters {

  public static final String FORMAT_AVRO = "avro";
  public static final String FORMAT_SEQ = "seq";
  public static final String FORMAT_SVMLIGHT = "svmlight";

  private static final String KEY_LONG = "long";
  private static final String KEY_INT = "int";
  private static final String KEY_TEXT = "text";

  @Parameter(names = "--output-type", required=true,
      description = "The format for the output vectors, either 'avro', 'svmlight', or 'seq'")
  private String outputType;

  @Parameter(names = "--output-key",
      description = "For 'seq' outputs, the type of the id of each vector, one of 'int', 'long', or 'text'")
  private String keyType;

  public <V extends Vector> void writeVectors(PCollection<V> vectors, String output) {
    outputType = outputType.toLowerCase(Locale.ENGLISH);
    if (FORMAT_AVRO.equals(outputType)) {
      AvroType<Vector> atype = MLAvros.vector();
      if (AvroTypeFamily.getInstance() != vectors.getTypeFamily()) {
        vectors = vectors.parallelDo(IdentityFn.<V>getInstance(), (PType<V>) MLAvros.vector());
      }
      vectors.write(At.avroFile(output, atype), WriteMode.OVERWRITE);
    } else if (FORMAT_SEQ.equals(outputType)) {
      PTypeFamily ptf = WritableTypeFamily.getInstance();
      if (ptf != vectors.getTypeFamily()) {
        vectors = vectors.parallelDo(IdentityFn.<V>getInstance(), (PType<V>) MLWritables.vector());
      }
      Target t = To.sequenceFile(output);
      if (keyType != null) {
        keyType = keyType.toLowerCase(Locale.ENGLISH);
        if (KEY_LONG.equals(keyType)) {
          vectors.by(VectorKeyFns.<V>longKeyFn(), ptf.longs()).write(t, WriteMode.OVERWRITE);
        } else if (KEY_INT.equals(keyType)) {
          vectors.by(VectorKeyFns.<V>intKeyFn(), ptf.ints()).write(t, WriteMode.OVERWRITE);
        } else if (KEY_TEXT.equals(keyType)) {
          vectors.by(VectorKeyFns.<V>textKeyFn(), ptf.strings()).write(t, WriteMode.OVERWRITE);
        } else {
          throw new CommandException("Unknown key type: " + keyType);
        }
      } else {
        vectors.write(To.sequenceFile(output), WriteMode.OVERWRITE);
      }
    } else if (FORMAT_SVMLIGHT.equals(outputType)) {
      vectors.parallelDo("svmlight", new SvmLightFn<V>(), Writables.strings())
          .write(To.textFile(output), WriteMode.OVERWRITE);
    } else {
      throw new CommandException("Unknown output type: " + outputType);
    }
  }
}


text:
package paymentgateway.dds.com.webservice.paymentservice;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

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

 * <complexType name="PaymentRequestType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="CompanyID" type="{http://www.w3.org/2001/XMLSchema}int" form="qualified"/>
 *         <element name="Password" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/>
 *         <element name="ReqType" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/>
 *         <element name="CustomerID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="AdminID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="CardType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="PNRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="CardNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="ExpiryDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="CVV" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="MagData" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="FinalAmount" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="ZipCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="TransDTM" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Info_1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Info_2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Info_3" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Info_4" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Info_5" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="MeterFare" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="FixedPrice" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="RunIn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Tip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Expense1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Expense2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Layout" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="PreBookingFee" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="ASAPBookingFee" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="AdminFee" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="CreditTransFee" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="FixedMarkup" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Uplift" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="DriverPayment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="Remarks" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *         <element name="CustomerPassword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" form="qualified"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PaymentRequestType", propOrder = {
    "companyID",
    "password",
    "reqType",
    "customerID",
    "adminID",
    "cardType",
    "pnRef",
    "cardNumber",
    "expiryDate",
    "cvv",
    "magData",
    "finalAmount",
    "zipCode",
    "transDTM",
    "info1",
    "info2",
    "info3",
    "info4",
    "info5",
    "meterFare",
    "fixedPrice",
    "runIn",
    "tip",
    "expense1",
    "expense2",
    "layout",
    "preBookingFee",
    "asapBookingFee",
    "adminFee",
    "creditTransFee",
    "fixedMarkup",
    "uplift",
    "driverPayment",
    "remarks",
    "customerPassword"
})
public class PaymentRequestType {

    @XmlElement(name = "CompanyID")
    protected int companyID;
    @XmlElement(name = "Password", required = true)
    protected String password;
    @XmlElement(name = "ReqType", required = true)
    protected String reqType;
    @XmlElement(name = "CustomerID")
    protected String customerID;
    @XmlElement(name = "AdminID")
    protected String adminID;
    @XmlElement(name = "CardType")
    protected String cardType;
    @XmlElement(name = "PNRef")
    protected String pnRef;
    @XmlElement(name = "CardNumber")
    protected String cardNumber;
    @XmlElement(name = "ExpiryDate")
    protected String expiryDate;
    @XmlElement(name = "CVV")
    protected String cvv;
    @XmlElement(name = "MagData")
    protected String magData;
    @XmlElement(name = "FinalAmount")
    protected String finalAmount;
    @XmlElement(name = "ZipCode")
    protected String zipCode;
    @XmlElement(name = "TransDTM")
    protected String transDTM;
    @XmlElement(name = "Info_1")
    protected String info1;
    @XmlElement(name = "Info_2")
    protected String info2;
    @XmlElement(name = "Info_3")
    protected String info3;
    @XmlElement(name = "Info_4")
    protected String info4;
    @XmlElement(name = "Info_5")
    protected String info5;
    @XmlElement(name = "MeterFare")
    protected String meterFare;
    @XmlElement(name = "FixedPrice")
    protected String fixedPrice;
    @XmlElement(name = "RunIn")
    protected String runIn;
    @XmlElement(name = "Tip")
    protected String tip;
    @XmlElement(name = "Expense1")
    protected String expense1;
    @XmlElement(name = "Expense2")
    protected String expense2;
    @XmlElement(name = "Layout")
    protected String layout;
    @XmlElement(name = "PreBookingFee")
    protected String preBookingFee;
    @XmlElement(name = "ASAPBookingFee")
    protected String asapBookingFee;
    @XmlElement(name = "AdminFee")
    protected String adminFee;
    @XmlElement(name = "CreditTransFee")
    protected String creditTransFee;
    @XmlElement(name = "FixedMarkup")
    protected String fixedMarkup;
    @XmlElement(name = "Uplift")
    protected String uplift;
    @XmlElement(name = "DriverPayment")
    protected String driverPayment;
    @XmlElement(name = "Remarks")
    protected String remarks;
    @XmlElement(name = "CustomerPassword")
    protected String customerPassword;

    /**
     * Gets the value of the companyID property.
     *
     */
    public int getCompanyID() {
        return companyID;
    }

    /**
     * Sets the value of the companyID property.
     *
     */
    public void setCompanyID(int value) {
        this.companyID = value;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}

redpajama_set_name: RedPajamaGithub


text:
using System;
using System.Linq;
using System.Web.Routing;
using AttributeRouting.Constraints;
using NUnit.Framework;
using TechTalk.SpecFlow;

namespace AttributeRouting.Specs.Steps
{
    [Binding]
    public class StandardUsageSteps
    {
        [Then(@"the (?:(\d+)(?:st|nd|rd|th)\s)?route(?:'s)? url is ""(.*)""")]
        public void ThenTheRouteUrlIs(string nth, string url)
        {
            var i = nth.HasValue() ? int.Parse(nth) - 1 : 0;
            var routes = ScenarioContext.Current.GetFetchedRoutes();

            Assert.That(routes.Count(), Is.GreaterThan(i), "There is no {0} route available.", nth);

            var route = routes.ElementAt(i);

            Assert.That(route, Is.Not.Null);
            Assert.That(route.Url, Is.EqualTo(url));
        }

        [Then(@"the default for ""(.*?)"" is ""(.*?)""")]
        public void ThenTheDefaultForIs(string key, object value)
        {
            var route = ScenarioContext.Current.GetFetchedRoutes().FirstOrDefault();

            Assert.That(route, Is.Not.Null);
            Assert.That(route.Defaults[key], Is.EqualTo(value));
        }

        [Then(@"a default for ""(.*?)"" does not exist")]
        public void ThenTheDefaultForDoesNotExist(string key)
        {
            var route = ScenarioContext.Current.GetFetchedRoutes().FirstOrDefault();

            Assert.That(route, Is.Not.Null);
            Assert.That(route.Defaults[key], Is.Null);
        }

        [Then(@"the route area is ""(.*?)""")]
        public void ThenTheRouteAreaIs(string area)
        {
            var route = ScenarioContext.Current.GetFetchedRoutes().FirstOrDefault();

            Assert.That(route, Is.Not.Null);
            Assert.That(route.DataTokens["area"], Is.EqualTo(area));
        }

        [Then(@"the namespace is ""(.*?)""")]
        public void ThenTheNamespaceIs(string ns)
        {
            var route = ScenarioContext.Current.GetFetchedRoutes().FirstOrDefault();

            Assert.That(route, Is.Not.Null);
            Assert.That(route.DataTokens["namespaces"], Is.EqualTo(new[] { ns }));
        }

        [Then(@"the route has a data token for ""(.*?)""")]
        public void ThenTheRouteHasADataTokeFor(string key)
        {
            var route = ScenarioContext.Current.GetFetchedRoutes().FirstOrDefault();

            Assert.That(route, Is.Not.Null);
            Assert.That(route.DataTokens[key], Is.Not.Null);
        }

        [Then(@"the route is constrained to (.*?) requests")]
        public void ThenTheRouteIsConstrainedToRequests(string method)
        {
            var route = ScenarioContext.Current.GetFetchedRoutes().FirstOrDefault();

            AssertThatRouteIsConstrainedToHttpMethod(route, method);
        }

        [Then(@"the route for (.*?) is constrained to (.*?) requests")]
        public void ThenTheRouteForIsConstrainedToRequests(string action, string method)
        {
            var route = ScenarioContext.Current.GetFetchedRoutes().FirstOrDefault(r => r.Defaults["action"].ToString() == action);

            AssertThatRouteIsConstrainedToHttpMethod(route, method);
        }

        private void AssertThatRouteIsConstrainedToHttpMethod(Route route, string method)
        {
            var constraint = route.Constraints["inboundHttpMethod"] as IInboundHttpMethodConstraint;

            if (method.HasValue())
            {
                Assert.That(constraint, Is.Not.Null);
                Assert.That(constraint.AllowedMethods.Any(m => m.Equals(method, StringComparison.OrdinalIgnoreCase)), Is.True);
            }
            else
            {
                Assert.That(constraint, Is.Null);
            }
        }
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:showIn="@layout/fragment_add_people">

    <android.support.v4.widget.NestedScrollView
        app:layout_behavior="@string/appbar_scrolling_view_behavior"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:paddingTop="@dimen/default_padding_margin_large">

            <de.hdodenhof.circleimageview.CircleImageView
                android:id="@+id/iv_profile"
                android:layout_width="@dimen/form_profile"
                android:layout_height="@dimen/form_profile"
                android:layout_centerHorizontal="true"
                android:scaleType="centerCrop"
                android:src="@drawable/ic_profile_circle" />

            <LinearLayout
                android:id="@+id/main_layout"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@id/iv_profile"
                android:orientation="vertical"
                android:padding="@dimen/default_padding_of_screen">

                <android.support.design.widget.TextInputLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/question_name">

                    <EditText
                        android:id="@+id/edt_name_and_lastname"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:inputType="textPersonName"
                        android:maxLines="1" />

                </android.support.design.widget.TextInputLayout>

                <android.support.design.widget.TextInputLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/question_job">

                    <EditText
                        android:id="@+id/edt_job"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:inputType="text"
                        android:maxLines="1" />

                </android.support.design.widget.TextInputLayout>

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">

                    <android.support.design.widget.TextInputLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:hint="@string/question_birthday">

                        <EditText
                            android:id="@+id/edt_birthday"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:focusableInTouchMode="false"
                            android:maxLines="1" />

                    </android.support.design.widget.TextInputLayout>

                    <android.support.design.widget.TextInputLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:hint="@string/question_date_start_job">

                        <EditText
                            android:id="@+id/edt_startjob"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:focusableInTouchMode="false"
                            android:maxLines="1" />

                    </android.support.design.widget.TextInputLayout>

                </LinearLayout>

                <android.support.design.widget.TextInputLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/question_why_choose_this_job">

                    <EditText
                        android:id="@+id/edt_job_description"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:gravity="top"
                        android:inputType="textMultiLine"
                        android:lines="5"
                        android:maxEms="5"
                        android:minLines="5"
                        android:scrollbars="vertical" />

                </android.support.design.widget.TextInputLayout>

                <android.support.design.widget.TextInputLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/question_game_like">

                    <EditText
                        android:id="@+id/edt_game"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:inputType="text"
                        android:maxLines="1" />

                </android.support.design.widget.TextInputLayout>

                <android.support.design.widget.TextInputLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/question_why_choose_this_phone">

                    <EditText
                        android:id="@+id/edt_your_phone"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:inputType="text"
                        android:maxLines="1" />

                </android.support.design.widget.TextInputLayout>
            </LinearLayout>

            <RelativeLayout
                android:id="@+id/photo_layout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/main_layout"
                android:background="@color/colorGreyDarker"
                android:orientation="vertical">

                <ImageView
                    android:id="@+id/iv_photo"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/form_photo_height"
                    android:scaleType="centerInside"
                    android:src="@drawable/ic_selfie" />

            </RelativeLayout>

        </RelativeLayout>

    </android.support.v4.widget.NestedScrollView>

</FrameLayout>


text:
#include "rtsp_input_handler.h"

#include "libwds/rtsp/driver.h"
#include "libwds/rtsp/message.h"

#include <cassert>

namespace wds {

using rtsp::Message;
using rtsp::Driver;

RTSPInputHandler::~RTSPInputHandler() {
}

void RTSPInputHandler::AddInput(const std::string& input) {
  rtsp_input_buffer_ += input;

  // First trying to get payload for the message obtained
  // from the previous input.
  if (message_ && !ParsePayload())
    return;

  while (ParseHeader()) {
    if (!ParsePayload())
      break;
  }
}

bool RTSPInputHandler::ParseHeader() {
  assert(!message_);
  static const char delimiter[] = "\r\n\r\n";
  static const int delimiter_length = 4;
  size_t eom = rtsp_input_buffer_.find(delimiter);
  if (eom == std::string::npos) {
    return false;
  }

  const std::string& header = rtsp_input_buffer_.substr(0, eom + delimiter_length);
  rtsp_input_buffer_.erase(0, eom + delimiter_length);
  Driver::Parse(header, message_);
  if (!message_) {
    ParserErrorOccurred(rtsp_input_buffer_);
    rtsp_input_buffer_.clear();
    return false;
  }
  return true;
}

bool RTSPInputHandler::ParsePayload() {
  assert(message_);
  unsigned content_length = message_->header().content_length();
  if (content_length == 0) {
    MessageParsed(std::move(message_));
    return true;
  }

  if (rtsp_input_buffer_.size() < content_length)
    return false;

  const std::string& payload = rtsp_input_buffer_.substr(0, content_length);
  rtsp_input_buffer_.erase(0, content_length);
  Driver::Parse(payload, message_);
  MessageParsed(std::move(message_));
  return true;
}

}  // namespace wds


text:
<?php
/**
 * @package simpleCdmfy
 *
 * Plugin Name : simpleCdnfy
 * Version : 0.0.1
 * To Be Continue
 */
/*
Plugin Name: Simple Cdnfy
Plugin URI: http://wordpress.org/plugins/hello-dolly/
Description: It's a simple cdn setting plugin help people who host blog on sae (sae.sina.com.cn) and does not have an icp license which is bullshit.
Author: Eric.Chan
Version: 0.0.2
Author URI: http://blog.ext5.com
*/

/**
 * namespace _
 */

if ( !function_exists( 'add_action' ) ) {
    echo 'Hi there!  I\'m just a plugin, not much I can do when called directly.';
    exit;
}

if (!class_exists('simpleCndfy')) {

    class simpleCndfy {
        private $_simpleCdn_assets_url  = '';
        private $_simpleCdn_file_url    = '';
        private $_siteurl              = '';
        function __construct() {
            $this->init_options();
            // activate && deactivate this plugin
            if (is_admin()) {
                add_action('activate_simpleCdnfy/simpleCdnfy.php' , array($this , 'activate'));
                add_action('deactivate_simpleCdnfy/simpleCdnfy.php' ,array($this , 'deactivate'));
                // admin menu
                add_action('admin_init', array($this , 'init_option'));
                add_action( 'admin_menu', array($this, 'admin_menu'));
                // add plugin setting link to
                add_filter('plugin_action_links_'.plugin_basename(__FILE__), array(&$this, 'filter_plugin_actions'), 10, 2);
            }

            add_filter('script_loader_src',  array( $this ,'script_loader_src') );
//            add_filter('style_loader_src',  array( $this ,'script_loader_src') );
        }

        private function init_options() {
            $this->_simpleCdn_assets_url  = get_option('_simpleCdn_assets_url');
            $this->_simpleCdn_file_url    = get_option('_simpleCdn_file_url');
            $this->_siteurl               = get_option('siteurl');
            if ('/' != substr($this->_simpleCdn_assets_url ,-1)) {
                $this->_simpleCdn_assets_url .= '/';
            }

            if ('/' != substr($this->_siteurl ,-1)) {
                $this->_siteurl .= '/';
            }

        }

        private $src = array();
        function script_loader_src($src) {
          // 移除 ? 后面的内容
          $parts = explode('?', $src);
          $src = $parts[0];
          $this->src[] = $src;
          $src = str_replace($this->_siteurl , $this->_simpleCdn_assets_url , $src);
          return $src;
        }

        function options_page() {
            include dirname(__FILE__) .'/options_page.php';
        }

            function init_option() {
                register_setting('simplecdnfy', '_simpleCdn_assets_url');
                register_setting('simplecdnfy', '_simpleCdn_file_url');
            }

            function filter_plugin_actions($l, $file) {
                $settings_link = ''.__('Settings').'';
                array_unshift($l, $settings_link);
                return $l;
            }

        function admin_menu() {
            add_submenu_page('options-general.php', __('SimpleCdnfy'), __('SimpleCdnfyß'), 'manage_options', 'simplecdnfy' , array($this , 'options_page'));
        }

        function activate() {
            add_option('_simpleCdn_assets_url','', null ,'yes');
//            add_option('_simpleCdn_file_url','', null ,'yes');
        }

        function deactivate() {
            delete_option('_simpleCdn_assets_url');
//            delete_option('_simpleCdn_file_url');
        }
    }

    new simpleCndfy();
}

// add admin menu


text:
Faker is a library for generating fake data such as names, addresses, and phone numbers.

It is a (mostly) API-compatible port of Ruby Faker gem (https://github.com/stympy/faker) to Go.

[![GoDoc](https://godoc.org/syreclabs.com/go/faker?status.svg)](https://godoc.org/syreclabs.com/go/faker)
[![Build Status](https://travis-ci.org/dmgk/faker.svg?branch=master)](https://travis-ci.org/dmgk/faker)
[![Coverage Status](https://coveralls.io/repos/github/dmgk/faker/badge.svg)](https://coveralls.io/github/dmgk/faker)

To install

    go get -u syreclabs.com/go/faker

## Usage

### Address
-------------------
```go
faker.Address().City()                        // => "North Dessie"
faker.Address().StreetName()                  // => "Buckridge Lakes"
faker.Address().StreetAddress()               // => "586 Sylvester Turnpike"
faker.Address().SecondaryAddress()            // => "Apt. 411"
faker.Address().BuildingNumber()              // => "754"
faker.Address().Postcode()                    // => "31340"
faker.Address().PostcodeByState("IN")         // => "46511"
faker.Address().ZipCode()                     // ZipCode is an alias for Postcode.
faker.Address().ZipCodeByState("IN")          // ZipCodeByState is an alias for PostcodeByState.
faker.Address().TimeZone()                    // => "Asia/Taipei"
faker.Address().CityPrefix()                  // => "East"
faker.Address().CitySuffix()                  // => "town"
faker.Address().StreetSuffix()                // => "Square"
faker.Address().State()                       // => "Maryland"
faker.Address().StateAbbr()                   // => "IL"
faker.Address().Country()                     // => "Uruguay"
faker.Address().CountryCode()                 // => "JP"
faker.Address().Latitude()                    // => (float32) -38.811367
faker.Address().Longitude()                   // => (float32) 89.2171
faker.Address().String()                      // => "6071 Heaney Island Suite 553, Ebbaville Texas 37307"
```

### App
-------------------
```go
faker.App().Name()    // => "Alphazap"
faker.App().Version() // => "2.6.0"
faker.App().Author()  // => "Dorian Shields"
faker.App().String()  // => "Tempsoft 4.51"
```

### Avatar
-------------------
```go
faker.Avatar().Url("jpg", 100, 200) // => "http://robohash.org/NX34rZw7s0VFzgWY.jpg?size=100x200"
faker.Avatar().String()             // => "http://robohash.org/XRWjFigoImqdeDuA.png?size=300x300"
```

### Bitcoin
-------------------
```go
faker.Bitcoin().Address() // => "1GpEKM5UvD4XDLMirpNLoDnRVrGutogMj2"
faker.Bitcoin().String()  // String is an alias for Address.
```

### Business
-------------------
```go
faker.Business().CreditCardNumber()     // => "1234-2121-1221-1211"
faker.Business().CreditCardExpiryDate() // => "2015-11-11"
faker.Business().CreditCardType()       // => "mastercard"
```

### Code
-------------------
```go
faker.Code().Isbn10() // => "048931033-8"
faker.Code().Isbn13() // => "391668236072-1"
faker.Code().Ean13()  // => "7742864258656"
faker.Code().Ean8()   // => "03079010"
faker.Code().Rut()    // => "14371602-3"
faker.Code().Abn()    // => "57914951376"
```

### Commerce
-------------------
```go
faker.Commerce().Color()       // => "lime"
faker.Commerce().Department()  // => "Electronics, Health & Baby"
faker.Commerce().ProductName() // => "Ergonomic Granite Shoes"
faker.Commerce().Price()       // => (float32) 97.79
```

### Company
-------------------
```go
faker.Company().Name()        // => "Aufderhar LLC"
faker.Company().Suffix()      // => "Inc"
faker.Company().CatchPhrase() // => "Universal logistical artificial intelligence"
faker.Company().Bs()          // => "engage distributed applications"
faker.Company().Ein()         // => "58-6520513"
faker.Company().DunsNumber()  // => "16-708-2968"
faker.Company().Logo()        // => "http://www.biz-logo.com/examples/015.gif"
faker.Company().String()      // String is an alias for Name.
```

### Date
-------------------
```go
// Between returns random time in [from, to] interval, with second resolution.
faker.Date().Between(from, to time.Time) time.Time

// Forward returns random time in [time.Now(), time.Now() + duration] interval, with second resolution.
faker.Date().Forward(duration time.Duration) time.Time

// Backward returns random time in [time.Now() - duration, time.Now()] interval, with second resolution.
faker.Date().Backward(duration time.Duration) time.Time

// Birthday returns random time so that age of the person born at that moment would be between minAge and maxAge years.
faker.Date().Birthday(minAge, maxAge int) time.Time
```

### Finance
-------------------
```go
// CreditCard returns a valid (with valid check digit) card number of one of the given types.
// If no types are passed, all types in CC_TYPES are used.
faker.Finance().CreditCard(faker.CC_VISA) // => "4190418835414"
```

### Hacker
-------------------
```go
faker.Hacker().SaySomethingSmart() // => "If we connect the bus, we can get to the XML microchip through the digital TCP sensor!"
faker.Hacker().Abbreviation()      // => "HTTP"
faker.Hacker().Adjective()         // => "cross-platform"
faker.Hacker().Noun()              // => "interface"
faker.Hacker().Verb()              // => "bypass"
faker.Hacker().IngVerb()           // => "parsing"
faker.Hacker().Phrases() []string  // => []string{
                                   //        "If we bypass the program, we can get to the AGP protocol through the optical SDD alarm!",
                                   //        "We need to calculate the back-end XML microchip!",
                                   //        "Try to generate the GB bus, maybe it will hack the neural panel!",
                                   //        "You can't navigate the transmitter without synthesizing the optical SMS bus!",
                                   //        "Use the optical THX application, then you can override the mobile port!",
                                   //        "The CSS monitor is down, quantify the multi-byte bus so we can calculate the XSS bandwidth!",
                                   //        "Connecting the card won't do anything, we need to back up the multi-byte RSS card!",
                                   //        "I'll reboot the primary SMTP feed, that should monitor the XML protocol!`",
                                   //    }
```

### Internet
-------------------
```go
faker.Internet().Email()                // => "maritza@farrell.org"
faker.Internet().FreeEmail()            // => "sven_rice@hotmail.com"
faker.Internet().SafeEmail()            // => "theron.nikolaus@example.net"
faker.Internet().UserName()             // => "micah_pfeffer"
faker.Internet().Password(8, 14)        // => "s5CzvVp6Ye"
faker.Internet().DomainName()           // => "rolfson.info"
faker.Internet().DomainWord()           // => "heller"
faker.Internet().DomainSuffix()         // => "net"
faker.Internet().MacAddress()           // => "15:a9:83:29:76:26"
faker.Internet().IpV4Address()          // => "121.204.82.227"
faker.Internet().IpV6Address()          // => "c697:392f:6a0e:bf6d:77e1:714a:10ab:0dbc"
faker.Internet().Url()                  // => "http://sporerhamill.net/kyla.schmitt"
faker.Internet().Slug()                 // => "officiis-commodi"
```

### Lorem
-------------------
```go
faker.Lorem().Character()    // => "c"
faker.Lorem().Characters(17) // => "wqFyJIrXYfVP7cL9M"
faker.Lorem().Word()         // => "veritatis"
faker.Lorem().Words(3)       // => []string{"omnis", "libero", "neque"}
faker.Lorem().Sentence(3)    // => "Necessitatibus sit autem."

// Sentences returns a slice of "num" sentences, 3 to 11 words each.
faker.Lorem().Sentences(num int) []string

// Paragraph returns a random text of "sentences" sentences length.
faker.Lorem().Paragraph(sentences int)

// Paragraphs returns a slice of "num" paragraphs, 3 to 11 sentences each.
faker.Lorem().Paragraphs(num int) []string

// String returns a random sentence 3 to 11 words in length.
faker.Lorem().String()
```

### Name
-------------------
```go
faker.Name().Name()      // => "Natasha Hartmann"
faker.Name().FirstName() // => "Carolina"
faker.Name().LastName()  // => "Kohler"
faker.Name().Prefix()    // => "Dr."
faker.Name().Suffix()    // => "Jr."
faker.Name().Title()     // => "Chief Functionality Orchestrator"
faker.Name().String()    // String is an alias for Name.
```

### Number
-------------------
```go
faker.Number().Number(5)          // => "43202"
faker.Number().NumberInt(3)       // => 213
faker.Number().NumberInt32(5)     // => 92938
faker.Number().NumberInt64(19)    // => 1689541633257139096
faker.Number().Decimal(8, 2)      // => "879420.60"
faker.Number().Digit()            // => "7"
faker.Number().Hexadecimal(4)     // => "e7f3"
faker.Number().Between(-100, 100) // => "-47"
faker.Number().Positive(100)      // => "3"
faker.Number().Negative(-100)     // => "-16"
```

### PhoneNumber
-------------------
```go
faker.PhoneNumber().PhoneNumber()       // => "1-599-267-6597 x537"
faker.PhoneNumber().CellPhone()         // => "+49-131-0003060"
faker.PhoneNumber().AreaCode()          // => "903"
faker.PhoneNumber().ExchangeCode()      // => "574"
faker.PhoneNumber().SubscriberNumber(4) // => "1512"
faker.PhoneNumber().String()            // String is an alias for PhoneNumber.
```

### Team
-------------------
```go
faker.Team().Name()     // => "Colorado cats"
faker.Team().Creature() // => "cats"
faker.Team().State()    // => "Oregon"
faker.Team().String()   // String is an alias for Name.
```

### Time
-------------------
```go
// Between returns random time in [from, to] interval, with second resolution.
faker.Time().Between(from, to time.Time) time.Time

// Forward returns random time in [time.Now(), time.Now() + duration] interval, with second resolution.
faker.Time().Forward(duration time.Duration) time.Time

// Backward returns random time in [time.Now() - duration, time.Now()] interval, with second resolution.
faker.Time().Backward(duration time.Duration) time.Time

// Birthday returns random time so that age of the person born at that moment would be between minAge and maxAge years.
faker.Time().Birthday(minAge, maxAge int) time.Time
```


text:
local Cloneable			= require("obj.Remote_Common")
local origin 			= require("obj.MotionSensor")
local Sensor			= Cloneable:clone()
--[[
	Remote object for motion sensors attached to nodes.
	Node will update the remote sensors config as changes are detected.
	This also updates its current state and action.
]]

Sensor.location = origin.location
Sensor.config = origin.config
Sensor.getState = origin.getState
Sensor.getAction = origin.getAction
Sensor.getLightSensor = origin.getLightSensor
Sensor.getLightSensitivity = origin.getLightSensitivity
Sensor.getRelay = origin.getRelay
Sensor.getLED = origin.getLED
Sensor.getBuzzer = origin.getBuzzer
Sensor.getSensitivity = origin.getSensitivity
Sensor.getTimeOut = origin.getTimeOut
Sensor.toggle = origin.toggle
Sensor.getHTMLcontrol = origin.getHTMLcontrol

function Sensor:setup(options)
	self.config.lightSensor 		= options.lightSensor or Sensor.config.lightSensor
	self.config.lightSensitivity	= options.lightSensitivity or Sensor.config.lightSensitivity
	self.config.button 				= options.button or Sensor.config.button
	self.config.relay  				= options.relay or Sensor.config.relay
	self.config.LED	   				= options.LED or Sensor.config.LED
	self.config.buzzer		 		= options.buzzer or Sensor.config.buzzer
	self.config.sensitivity 		= options.sensitivity or Sensor.config.sensitivity
	self.config.timeOut		 		= options.timeOut or Sensor.config.timeOut
	self.config.state 				= options.state
	self.config.action 				= options.action
end

function Sensor:setState(state)
	if self.config.state and self.node and state ~= self.config.state then self.node:send(([[Mos %s setState %s]]):format(self:getID(),state)) end
end

function Sensor:setLightSensor(sensorID)
	if self.node then self.node:send(([[Mos %s setLightSensor %s]]):format(self:getID(),sensorID)) end
end

function Sensor:setButton(buttonID)
	if self.node then self.node:send(([[Mos %s setButton %s]]):format(self:getID(),sensorID)) end
end

function Sensor:setRelay(relayID)
	if self.node then self.node:send(([[Mos %s setRelay %s]]):format(self:getID(),sensorID)) end
end

function Sensor:setLED(LEDID)
	if self.node then self.node:send(([[Mos %s setLED %s]]):format(self:getID(),sensorID)) end
end

function Sensor:setBuzzer(buzzerID)
	if self.node then self.node:send(([[Mos %s setBuzzer %s]]):format(self:getID(),sensorID)) end
end

function Sensor:setSensitivity(amt)
	if self.node then self.node:send(([[Mos %s setSensitivity %s]]):format(self:getID(),sensorID)) end
end

function Sensor:setTimeOut(amt)
	if self.node then self.node:send(([[Mos %s setTimeOut %s]]):format(self:getID(),sensorID)) end
end

--- Stringifier for Cloneables.
function Sensor:toString()
	return string.format("[Remote_MotionSensor] %s %s %s %s",self:getID(),self:getName(),self:getState(),self:getAction())
end

--remote so these functions run on the node and on this object must do nil
function Sensor:runLogic()
end
function Sensor:checkLight()
end
function Sensor:checkMotion()
end
function Sensor:setAction()
end

return Sensor


text:
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )

package domainapp.modules.simple.fixture.scenario;

import domainapp.modules.simple.dom.impl.SimpleObject;
import domainapp.modules.simple.dom.impl.SimpleObjectMenu;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum SimpleObjectData {

    FOO("Foo"),
    BAR("Bar"),
    BAZ("Baz"),
    FRODO("Frodo"),
    FROYO("Froyo"),
    FIZZ("Fizz"),
    BIP("Bip"),
    BOP("Bop"),
    BANG("Bang"),
    BOO("Boo");

    private final String name;

    public SimpleObject createWith(final SimpleObjectMenu menu) {
        return menu.create(name);
    }

    public SimpleObject findWith(final SimpleObjectMenu menu) {
        return menu.findByName(name).get(0);
    }
}


text:
{% extends "servicefrontend_base.html" %}

{% block page_title %}{{error}}{% endblock %}

{% block content %}

    {% include "inc_alpha_banner.html" %}

        {% if code != 500 %}

                {{error}}

{{description}}

        {% else %}

                Sorry, we are experiencing technical difficulties

Please try again in a few moments.

        {% endif %}

{% endblock %}


text:
#include "tensorflow/compiler/xla/service/gpu/ir_emitter_nested.h"

#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instructions.h"
#include "tensorflow/compiler/xla/hlo/ir/hlo_casting_utils.h"
#include "tensorflow/compiler/xla/hlo/ir/hlo_computation.h"
#include "tensorflow/compiler/xla/hlo/ir/hlo_instruction.h"
#include "tensorflow/compiler/xla/hlo/ir/hlo_opcode.h"
#include "tensorflow/compiler/xla/service/gpu/gpu_constants.h"
#include "tensorflow/compiler/xla/service/gpu/hlo_to_ir_bindings.h"
#include "tensorflow/compiler/xla/service/gpu/ir_emission_utils.h"
#include "tensorflow/compiler/xla/service/gpu/ir_emitter_context.h"
#include "tensorflow/compiler/xla/service/llvm_ir/buffer_assignment_util.h"
#include "tensorflow/compiler/xla/service/llvm_ir/llvm_util.h"
#include "tensorflow/compiler/xla/service/llvm_ir/tuple_ops.h"
#include "tensorflow/compiler/xla/service/name_uniquer.h"
#include "tensorflow/tsl/platform/status.h"

namespace xla {
namespace gpu {

IrEmitterNested::IrEmitterNested(const HloModuleConfig& hlo_module_config,
                                 const HloComputation& nested_computation,
                                 IrEmitterContext* ir_emitter_context)
    : IrEmitter(hlo_module_config, ir_emitter_context, /*is_nested=*/true),
      nested_computation_(nested_computation) {}

StatusOr<std::unique_ptr<IrEmitterNested>> IrEmitterNested::Create(
    const HloModuleConfig& hlo_module_config,
    const HloComputation& nested_computation,
    IrEmitterContext* ir_emitter_context) {
  std::unique_ptr<IrEmitterNested> emitter(new IrEmitterNested(
      hlo_module_config, nested_computation, ir_emitter_context));
  TF_RETURN_IF_ERROR(emitter->EmitConstants(nested_computation));
  return emitter;
}

// Nested function serves the same purpose on GPU as a thread-local function on
// a CPU.
Status IrEmitterNested::CodegenNestedComputation() {
  std::vector<const HloInstruction*> io_hlos;
  std::vector<llvm::Type*> argument_types;
  std::vector<int64_t> argument_dereferenceable_bytes;
  const auto& params = nested_computation_.parameter_instructions();
  const auto n = params.size() + 1;
  io_hlos.reserve(n - 1);
  argument_types.reserve(n);
  argument_dereferenceable_bytes.reserve(n);
  for (const HloInstruction* param : params) {
    io_hlos.push_back(param);
    const Shape& param_shape = param->shape();
    argument_types.push_back(
        llvm_ir::ShapeToIrType(param_shape, module_)->getPointerTo());
    int64_t param_size =
        llvm_ir::ByteSizeOf(param_shape, module_->getDataLayout());
    argument_dereferenceable_bytes.push_back(param_size);
  }

  const HloInstruction* root = nested_computation_.root_instruction();
  {
    const Shape& root_shape = root->shape();
    argument_types.push_back(
        llvm_ir::ShapeToIrType(root_shape, module_)->getPointerTo());
    int64_t root_size = llvm_ir::ByteSizeOf(
        root_shape, ir_emitter_context_->llvm_module()->getDataLayout());
    argument_dereferenceable_bytes.push_back(root_size);
  }

  llvm::FunctionType* function_type =
      llvm::FunctionType::get(b_.getVoidTy(), argument_types, false);
  llvm::Function* function = llvm::Function::Create(
      function_type,                       // The function type.
      llvm::GlobalValue::InternalLinkage,  // The linkage type.
      ir_emitter_context_->name_uniquer()->GetUniqueName(
          llvm_ir::SanitizeFunctionName(
              nested_computation_.name())),  // The name of the function.
      ir_emitter_context_->llvm_module());   // The parent LLVM module.
  for (size_t arg_no = 0; arg_no < argument_dereferenceable_bytes.size();
       ++arg_no) {
    int64_t arg_size = argument_dereferenceable_bytes[arg_no];
    if (arg_size > 0) {
      function->addDereferenceableParamAttr(arg_no, arg_size);
    }
  }

  // TODO(b/65380986): Investigate if adding fast math flags for generated
  // kernels makes sense.

  llvm::BasicBlock* entry_bb =
      llvm::BasicBlock::Create(function->getContext(), "entry", function);
  // Emit a "return void" at entry_bb's end, and sets the insert point before
  // that return instruction.
  llvm::ReturnInst* ret_instr =
      llvm::ReturnInst::Create(function->getContext(), entry_bb);
  b_.SetInsertPoint(ret_instr);

  std::vector<const HloInstruction*> non_io_hlos;
  non_io_hlos.push_back(root);
  for (const auto* hlo : nested_computation_.instructions()) {
    if (hlo->opcode() != HloOpcode::kParameter &&
        hlo != nested_computation_.root_instruction()) {
      non_io_hlos.push_back(hlo);
    }
  }
  bindings_.EmitBasePointersForHlos(io_hlos, non_io_hlos);

  TF_RETURN_IF_ERROR(nested_computation_.root_instruction()->Accept(this));
  b_.SetInsertPoint(ret_instr);

  // Function epilogue: copy the output value back.
  {
    // TODO(cheshire) Duplication vs. EmitThreadLocalFunctionEpilogue
    const HloInstruction* root_instruction =
        nested_computation_.root_instruction();
    llvm::Value* root_value = bindings_.GetBasePointer(*root_instruction);
    const Shape& return_shape = root_instruction->shape();

    // Last argument is the out parameter.
    llvm::Argument* out_parameter = std::prev(function->arg_end(), 1);

    if (ShapeUtil::IsScalar(return_shape)) {
      llvm::Value* ret_value =
          Load(llvm_ir::ShapeToIrType(return_shape, module_), root_value,
               "load_ret_value");
      Store(ret_value,
            BitCast(out_parameter, root_value->getType(), "bitcast_ret_value"));
    } else {
      CHECK(return_shape.IsTuple());
      llvm::Type* tuple_type = llvm_ir::ShapeToIrType(return_shape, module_);
      llvm::Type* tuple_type_ptr = tuple_type->getPointerTo();
      llvm::Value* tuple_ptr = BitCast(out_parameter, tuple_type_ptr);

      for (int i = 0; i < return_shape.tuple_shapes_size(); i++) {
        const Shape& element_shape = return_shape.tuple_shapes(i);
        llvm::Value* destination = llvm_ir::EmitGetTupleElement(
            element_shape,
            /*index=*/i,
            /*alignment=*/1, tuple_ptr, tuple_type, &b_);
        llvm::Value* source = llvm_ir::EmitGetTupleElement(
            element_shape,
            /*index=*/i,
            /*alignment=*/1, root_value,
            llvm_ir::ShapeToIrType(root_instruction->shape(), module_), &b_);
        Store(Load(llvm_ir::ShapeToIrType(element_shape, module_), source),
              destination);
      }
    }
  }
  b_.SetInsertPoint(ret_instr);
  emitted_function_ = function;
  return OkStatus();
}

Status IrEmitterNested::HandleParameter(HloInstruction* parameter) {
  return OkStatus();
}

Status IrEmitterNested::EmitTargetElementLoop(
    const HloInstruction& hlo,
    const llvm_ir::ElementGenerator& element_generator) {
  // For MOF we give the loop emitter an array for every output it should
  // generate.
  if (hlo.shape().IsTuple()) {
    std::vector<llvm_ir::IrArray> target_arrays =
        ConstructIrArrayForOutputs(hlo);
    TF_RETURN_IF_ERROR(
        llvm_ir::LoopEmitter(element_generator, target_arrays, &b_).EmitLoop());
    llvm_ir::EmitTuple(GetIrArray(hlo, hlo), target_arrays, &b_);
    return OkStatus();
  }
  return llvm_ir::LoopEmitter(element_generator, GetIrArray(hlo, hlo), &b_)
      .EmitLoop();
}

Status IrEmitterNested::EmitConstants(const HloComputation& computation) {
  for (HloInstruction* instr : computation.instructions()) {
    if (instr->opcode() != HloOpcode::kConstant) {
      continue;
    }
    Literal& literal = *Cast<HloConstantInstruction>(instr)->mutable_literal();

    // These globals will be looked up by name by GpuExecutable so we need to
    // give them an external linkage.  Not all of their uses are visible in
    // the LLVM IR (e.g. TupleThunk) so we can't give then a linkage that
    // merely preserves their names (like available_externally), we also need
    // to ensure that they stick around even if they're "unused".
    //
    // We may have to be more clever here in the future if we notice that we're
    // keeping around too many globals because of their linkage.
    std::string global_name = llvm_ir::ConstantHloToGlobalName(*instr);

    auto base = static_cast<const uint8_t*>(literal.untyped_data());
    ir_emitter_context_->emit_constant(
        literal.element_count(),
        ShapeUtil::ByteSizeOfPrimitiveType(literal.shape().element_type()),

        global_name,
        /*allocation_idx=*/-1,
        llvm::ArrayRef<uint8_t>(base, base + literal.size_bytes()), &b_);
  }
  return OkStatus();
}

}  // namespace gpu
}  // namespace xla


text:
package examples.fancy_numbers

import com.swoop.spark.records._

/** Shared test behavior trait used by [[LocalTest]] and [[SparkTest]]. */
trait TestNegative5To100 {
  this: ExampleSpec =>

  def fancyRecordBuilder(records: Iterable[FancyNumberRecord], jc: SimpleJobContext): Unit = {
    "fancy_numbers.Example.Builder" - {
      "with numbers from -5 to 100 should behave like a" - {
        "stats collector" in {
          // @formatter:off
          val stats = jc.stats
          stats("input.count")          should be(106)
          stats("numbers.even")         should be(51)
          stats("numbers.odd")          should be(50)

          stats("record.count")         should be(105)
          stats("record.error.count")   should be(6)   // -5..-1 & 100
          stats("record.skipped.count") should be(1)   // 0
          stats("record.data.count")    should be(99)  // 1..99

          stats("record.features.0")    should be(97)  // plain data
          stats("record.features.1")    should be(6)   // errors
          stats("record.features.2")    should be(2)   // warnings

          stats("issue.count")          should be(8)
          stats("issue.category.1")     should be(6)   // errors
          stats("issue.category.2")     should be(2)   // warnings
          stats("issue.id.1-1001")      should be(5)   // error FancyExample.Err.NEGATIVE_NUMBER
          stats("issue.id.2-1024")      should be(2)   // warning Features.QUALITY_CONCERN
        }
        "quality checker" in {
          val ex = the[ThrowableMessage] thrownBy {
            jc.checkDataQuality(minInputs=10, maxErrorRate=0.01, maxSkippedRate=0.001)
          }
          ex should have message "Too many errors. (inputs: 106, skipped: 1, errors: 6, withData: 99)"
          ex.idMessage should be("data quality check failed")
        }
        "perfect number record builder" in {
          val perfectNumbers = records.filter(_.data.exists(Seq(6, 28) contains _.n))
          forAll(perfectNumbers) { r =>
            inside(r) { case FancyNumberRecord(features, data, source, flight, maybeIssues) =>
              features                  should be(Features.WARNING)
              data.get.category         should be("perfect")
              source                    should be('empty)
              flight                    should be(jc.flight)
              inside(maybeIssues)   { case Some(issues) =>
                issues.length           should be(1)
                inside(issues.head) { case Issue(category, message, causes, id, details) =>
                  category              should be(Issue.Warning.categoryId)
                  id                    should be(Some(Features.QUALITY_CONCERN))
                  message               should be("W01024: rare number")
                  details               should be(Some("perfect, really?"))
                }
              }
            }
          }
        }
        // @formatter:on
      }
    }
  }

}


text:
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <!-- IMAGE -->
        <parameter key="image.external_javascripts.cms" type="collection">
            <parameter>@RedKiteCmsBaseBlocksBundle/Resources/public/image/js/image_editor.js</parameter>
        </parameter>

        <parameter key="image.block.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Block\Image\BlockManagerImage</parameter>
        <parameter key="image.form.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Form\Image\ImageType</parameter>

        <!-- SCRIPT -->
        <parameter key="script.block.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Block\Script\BlockManagerScript</parameter>

        <!-- MENU -->
        <parameter key="menu.external_javascripts.cms" type="collection">
            <parameter>@RedKiteCmsBaseBlocksBundle/Resources/public/menu/js/menu_editor.js</parameter>
        </parameter>

        <parameter key="menu.block.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Block\Menu\BlockManagerMenu</parameter>
        <parameter key="menu_vertical.block.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Block\Menu\BlockManagerMenuVertical</parameter>

        <!-- LINK -->
        <parameter key="link.external_javascripts.cms" type="collection">
            <parameter>@RedKiteCmsBaseBlocksBundle/Resources/public/link/js/link_editor.js</parameter>
        </parameter>

        <parameter key="link.external_stylesheets.cms" type="collection">
            <parameter>@RedKiteCmsBaseBlocksBundle/Resources/public/link/css/link_editor.css</parameter>
        </parameter>

        <parameter key="link.block.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Block\Link\BlockManagerLink</parameter>
        <parameter key="bootstrap_link.form.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Form\Link\LinkType</parameter>

        <!-- FILE -->
        <parameter key="file.external_javascripts.cms" type="collection">
            <parameter>@RedKiteCmsBaseBlocksBundle/Resources/public/file/js/file_editor.js</parameter>
        </parameter>

        <parameter key="file.base_folder">files</parameter>
        <parameter key="el_finder.file_connector">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\ElFinder\File\ElFinderFileConnector</parameter>
        <parameter key="file.block.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Block\File\BlockManagerFile</parameter>
        <parameter key="file.form.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Form\File\FileType</parameter>

        <!-- LANGUAGES MENU -->
        <parameter key="languages_menu.block.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Block\LanguagesMenu\BlockManagerLanguagesMenu</parameter>

        <!-- SCRIPT -->
        <parameter key="bootstrap_script.form.class">RedKiteLabs\RedKiteCms\RedKiteCmsBaseBlocksBundle\Core\Form\Script\ScriptType</parameter>
    </parameters>

    <services>
        <!-- IMAGE -->
        <service id="image.block" class="%image.block.class%">
            <tag name="red_kite_cms.blocks_factory.block" description="Image block" type="Image" group="redkitecms_internals" />
            <argument type="service" id="service_container" />
        </service>

        <service id="image.form" class="%image.form.class%">
        </service>

        <!-- SCRIPT -->
        <service id="script.block" class="%script.block.class%">
            <argument type="service" id="service_container" />
            <tag name="red_kite_cms.blocks_factory.block" description="Script block" type="Script" group="redkitecms_internals" />
        </service>

        <!-- MENU -->
        <service id="menu.block" class="%menu.block.class%">
            <argument type="service" id="service_container" />
            <tag name="red_kite_cms.blocks_factory.block" description="Menu" type="Menu" group="redkitecms_internals" />
        </service>

        <service id="menu_vertical.block" class="%menu_vertical.block.class%">
            <argument type="service" id="service_container" />
            <tag name="red_kite_cms.blocks_factory.block" description="Vertical Menu" type="MenuVertical" group="redkitecms_internals" />
        </service>

        <!-- LINK -->
        <service id="link.block" class="%link.block.class%">
            <tag name="red_kite_cms.blocks_factory.block" description="Link" type="Link" group="redkitecms_internals" filter="none menu-navbar menu" />
            <argument type="service" id="service_container" />
        </service>

        <service id="bootstrap_link.form" class="%bootstrap_link.form.class%">
        </service>

        <!-- FILE -->
        <service id="el_finder.file_connector" class="%el_finder.file_connector%" >
            <argument type="service" id="service_container" />
        </service>

        <service id="file.block" class="%file.block.class%">
            <argument type="service" id="service_container" />
            <tag name="red_kite_cms.blocks_factory.block" description="File block" type="File" group="redkitecms_internals" />
        </service>

        <service id="file.form" class="%file.form.class%">
        </service>

        <!-- LANGUAGES MENU -->
        <service id="languages_menu.block" class="%languages_menu.block.class%">
            <argument type="service" id="service_container" />
            <tag name="red_kite_cms.blocks_factory.block" description="Languages navigation menu" type="LanguagesMenu" group="redkitecms_internals" />
        </service>

        <!-- SCRIPT -->
        <service id="script.form" class="%bootstrap_script.form.class%">
        </service>
    </services>
</container>


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Summa veg. Scand. (Stockholm), Section Post. 347 (1849)

#### Original name
Cidaris E.M. Fries, 1849

### Remarks
null


text:
package singhdas

import (
	"github.com/ronperry/cryptoedge/eccutil"
)

// Verify verifies that a signature signs message by the signer defined in SignerClient
func (client SignerClient) Verify(message []byte, signature *SignatureInt) (bool, error) {
	Hm := client.curve.GenHash(message)
	if Hm.Cmp(signature.Hm) != 0 {
		return false, eccutil.ErrHashDif
	}
	SG := client.curve.ScalarBaseMult(signature.S.Bytes())
	r2B := client.curve.ScalarMult(client.pubkey, signature.r2.Bytes())
	HmR := client.curve.ScalarMult(signature.R, Hm.Bytes())
	R2BHmR := client.curve.AddPoints(r2B, HmR)
	if SG.X.Cmp(R2BHmR.X) != 0 || SG.Y.Cmp(R2BHmR.Y) != 0 {
		return false, eccutil.ErrSigWrong
	}
	return true, nil
}


text:
@interface DoraemonHealthAlertView()<UITextFieldDelegate>

@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGFloat padding;
@property (nonatomic, strong) UILabel *title;
@property (nonatomic, strong) UIView *alertView;
@property (nonatomic, strong) NSMutableArray *inputViewArray;
@property (nonatomic, strong) UIButton *okBtn;
@property (nonatomic, strong) UIButton *cancleBtn;
@property (nonatomic, strong) UIButton *quitBtn;
@property (nonatomic, copy) DoraemonHealthAlertOKActionBlock okBlock;
@property (nonatomic, copy) DoraemonHealthAlertCancleActionBlock cancleBlock;
@property (nonatomic, copy) DoraemonHealthAlertQuitActionBlock quitBlock;

@end

@implementation DoraemonHealthAlertView

- (instancetype)init{
    self = [super initWithFrame:[UIScreen mainScreen].bounds];
    if (self) {
        self.backgroundColor = [UIColor colorWithWhite:0.2 alpha:0.6];
        self.userInteractionEnabled = YES;
        _padding = kDoraemonSizeFrom750_Landscape(134);
        _width = self.doraemon_width - _padding*2;
        _height = _padding;
        _alertView = [[UIView alloc] initWithFrame:CGRectMake(_padding, self.doraemon_height/5, _width, _height)];
        _alertView.backgroundColor = [UIColor whiteColor];
        _alertView.layer.cornerRadius = kDoraemonSizeFrom750_Landscape(10);

        _title = [[UILabel alloc] initWithFrame:CGRectMake(0, _padding/3, _width, _padding/2)];
        _title.textAlignment = NSTextAlignmentCenter;
        _title.font = [UIFont systemFontOfSize:kDoraemonSizeFrom750_Landscape(30)];
        _title.textColor = [UIColor doraemon_black_1];

        _inputViewArray = [[NSMutableArray alloc] init];

        _okBtn = [[UIButton alloc] initWithFrame:CGRectMake(_width/3*2, 0, _width/3, kDoraemonSizeFrom750_Landscape(90))];
        _okBtn.titleLabel.font = [UIFont systemFontOfSize:kDoraemonSizeFrom750_Landscape(30)];
        [_okBtn.layer setBorderColor:[UIColor doraemon_black_3].CGColor];
        [_okBtn.layer setBorderWidth:kDoraemonSizeFrom750_Landscape(0.5)];
        [_okBtn.layer setMasksToBounds:YES];
        [_okBtn setTitleColor:[UIColor doraemon_black_3] forState:UIControlStateNormal];
        [_okBtn setTitle:DoraemonLocalizedString(@"确定") forState:UIControlStateNormal];
        _okBtn.enabled = NO;
        [_okBtn addTarget:self action:@selector(okBtnAction:) forControlEvents:UIControlEventTouchUpInside];

        _quitBtn = [[UIButton alloc] initWithFrame:CGRectMake(_width/3, 0, _width/3, kDoraemonSizeFrom750_Landscape(90))];
        _quitBtn.titleLabel.font = [UIFont systemFontOfSize:kDoraemonSizeFrom750_Landscape(30)];
        [_quitBtn.layer setBorderColor:[UIColor doraemon_black_3].CGColor];
        [_quitBtn.layer setBorderWidth:kDoraemonSizeFrom750_Landscape(0.5)];
        [_quitBtn.layer setMasksToBounds:YES];
        [_quitBtn setTitleColor:[UIColor doraemon_black_3] forState:UIControlStateNormal];
        [_quitBtn setTitle:DoraemonLocalizedString(@"丢弃") forState:UIControlStateNormal];
        [_quitBtn addTarget:self action:@selector(quitBtnAction:) forControlEvents:UIControlEventTouchUpInside];

        _cancleBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, _width/3, _okBtn.doraemon_height)];
        _cancleBtn.titleLabel.font = [UIFont systemFontOfSize:kDoraemonSizeFrom750_Landscape(30)];
        [_cancleBtn.layer setBorderColor:[UIColor doraemon_black_3].CGColor];
        [_cancleBtn.layer setBorderWidth:kDoraemonSizeFrom750_Landscape(0.5)];
        [_cancleBtn.layer setMasksToBounds:YES];
        [_cancleBtn setTitleColor:[UIColor doraemon_black_3] forState:UIControlStateNormal];
        [_cancleBtn setTitle:DoraemonLocalizedString(@"取消") forState:UIControlStateNormal];
        [_cancleBtn addTarget:self action:@selector(cancleBtnAction:) forControlEvents:UIControlEventTouchUpInside];

        [self addSubview:_alertView];

        [_alertView addSubview:_title];
        [_alertView addSubview:_okBtn];
        [_alertView addSubview:_quitBtn];
        [_alertView addSubview:_cancleBtn];

    }
    return self;
}

- (void)renderUI:(NSString *)title placeholder:(NSArray*)placeholders inputTip:(NSArray*)inputTips ok:(NSString *)okText quit:(NSString *)quitText cancle:(NSString *)cancleText  okBlock:(DoraemonHealthAlertOKActionBlock)okBlock quitBlock:(DoraemonHealthAlertQuitActionBlock) quitBlock
cancleBlock:(DoraemonHealthAlertCancleActionBlock)cancleBlock{
    int index = 0;
    _title.text = title;
    NSString *placeholder = nil;
    for (NSString* inputTip in inputTips) {
        DoraemonHealthEndInputView *inputView = [[DoraemonHealthEndInputView alloc] initWithFrame:CGRectMake(0, _height, _width, _padding)];
        if(index < placeholders.count){
            placeholder = placeholders[index];
        }else{
            placeholder = @"";
        }
        [inputView renderUIWithTitle:inputTip placeholder:placeholder];
        inputView.textField.delegate = self;
        [_alertView addSubview:inputView];
        [_inputViewArray addObject:inputView];
        _height += _padding + kDoraemonSizeFrom750_Landscape(10);
        index++;
    }
    _height += kDoraemonSizeFrom750_Landscape(38);
    _okBtn.frame = CGRectMake(_okBtn.doraemon_x, _height, _okBtn.doraemon_width, _okBtn.doraemon_height);
    if(okText.length>0){
        [_okBtn setTitle:okText forState:UIControlStateNormal];
    }
    _quitBtn.frame = CGRectMake(_quitBtn.doraemon_x, _height, _quitBtn.doraemon_width, _quitBtn.doraemon_height);
    if (quitText.length>0) {
        [_quitBtn setTitle:quitText forState:UIControlStateNormal];
    }
    _cancleBtn.frame = CGRectMake(_cancleBtn.doraemon_x, _height, _cancleBtn.doraemon_width, _cancleBtn.doraemon_height);
    if(cancleText.length>0){
        [_cancleBtn setTitle:cancleText forState:UIControlStateNormal];
    }
    _height += _okBtn.doraemon_height;
    _alertView.frame = CGRectMake(_padding, _alertView.doraemon_y, _width, _height);
    self.okBlock = okBlock;
    self.cancleBlock = cancleBlock;
    self.quitBlock = quitBlock;
}

- (NSArray *)getInputText{
    NSMutableArray *array = [[NSMutableArray alloc] init];
    for (DoraemonHealthEndInputView *inputView in _inputViewArray) {
        [array addObject:inputView.textField.text];
    }
    return array;
}

- (void)cancleBtnAction:(id)sender{
    self.cancleBlock ? self.cancleBlock() : nil;
    self.hidden = YES;
}

- (void)okBtnAction:(id)sender{
    self.okBlock ? self.okBlock() : nil;
    self.hidden = YES;
}

- (void)quitBtnAction:(id)sender{
    self.quitBlock ? self.quitBlock() : nil;
    self.hidden = YES;
}

- (void)textFieldDidEndEditing:(UITextField *)textField{
    BOOL enabled = YES;
    for (DoraemonHealthEndInputView *inputView in _inputViewArray) {
        if(inputView.textField.text.length <= 0){
            enabled = NO;
            break;
        }
    }
    _okBtn.enabled = enabled;
    if(enabled){
        [_okBtn setTitleColor:[UIColor doraemon_black_1] forState:UIControlStateNormal];
    }else{
        [_okBtn setTitleColor:[UIColor doraemon_black_3] forState:UIControlStateNormal];
    }
}
@end


text:
// .NAME vtkProjectSphereFilter - A filter to 'unroll' a sphere.  The
// unroll longitude is -180.
//
// .SECTION Description

#ifndef vtkProjectSphereFilter_h
#define vtkProjectSphereFilter_h

#include "vtkFiltersGeometryModule.h" // For export macro
#include "vtkPointSetAlgorithm.h"

class vtkCell;
class vtkCellArray;
class vtkDataSetAttributes;
class vtkIdList;
class vtkIncrementalPointLocator;
class vtkUnstructuredGrid;

class VTKFILTERSGEOMETRY_EXPORT vtkProjectSphereFilter :
  public vtkPointSetAlgorithm
{
public:
  vtkTypeMacro(vtkProjectSphereFilter, vtkPointSetAlgorithm);
  virtual void PrintSelf(ostream &os, vtkIndent indent);

  static vtkProjectSphereFilter *New();

  // Description:
  // Set the center of the sphere to be split. Default is 0,0,0.
  vtkSetVector3Macro(Center,double);
  vtkGetVectorMacro(Center,double,3);

  // Description:
  // Specify whether or not to keep the cells using a point at
  // a pole. The default is false.
  vtkGetMacro(KeepPolePoints, bool);
  vtkSetMacro(KeepPolePoints, bool);
  vtkBooleanMacro(KeepPolePoints, bool);

  // Description:
  // Specify whether (true) or not to translate the points in the projected
  // transformation such that the input point with the smallest
  // radius is at 0. The default is false.
  vtkGetMacro(TranslateZ, bool);
  vtkSetMacro(TranslateZ, bool);
  vtkBooleanMacro(TranslateZ, bool);

protected:
  vtkProjectSphereFilter();
  ~vtkProjectSphereFilter();

  virtual int FillInputPortInformation(int port, vtkInformation *info);

  virtual int RequestData(vtkInformation *, vtkInformationVector **,
                          vtkInformationVector *);

  void TransformPointInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
  void TransformCellInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
  void TransformTensors(vtkIdType id, double* coord, vtkDataSetAttributes* arrays);

  // Description:
  // Parallel part of the algorithm to figure out the closest point
  // to the centerline (i.e. line connecting -90 latitude to 90 latitude)
  // if we don't build cells using points at the poles.
  virtual void ComputePointsClosestToCenterLine(double, vtkIdList*)
  {}

  // Description:
  // If TranslateZ is true then this is the method that computes
  // the amount to translate.
  virtual double GetZTranslation(vtkPointSet* input);

  // Description:
  // Split a cell into multiple cells because it stretches across the
  // SplitLongitude. splitSide is 1 for left side and 0 for sight side.
  void SplitCell(  vtkPointSet* input, vtkPointSet* output, vtkIdType inputCellId,
                   vtkIncrementalPointLocator* locator, vtkCellArray* connectivity,
                   int splitSide);

  void SetCellInformation(
    vtkUnstructuredGrid* output, vtkCell* cell, vtkIdType numberOfNewCells);

private:
  vtkProjectSphereFilter(const vtkProjectSphereFilter &); // Not implemented
  void operator=(const vtkProjectSphereFilter &);    // Not implemented

  double Center[3];
  const double SplitLongitude;
  bool KeepPolePoints;
  bool TranslateZ;
};

#endif // vtkProjectSphereFilter_h


text:
@interface RFUILoadingViewParam : NSObject
{
}
@property (nonatomic, SAFE_ARC_STRONG) NSString *category;
@property (nonatomic, assign) BOOL isShowActivity;
@property (nonatomic, SAFE_ARC_STRONG) NSString *title;
@property (nonatomic, assign) BOOL isAutoHide;

@end

@implementation RFUILoadingViewParam
@synthesize category;
@synthesize isShowActivity;
@synthesize title;
@synthesize isAutoHide;

- (id)init
{
	self = [super init];
    if (self)
    {

    }
    return self;
}

- (void)dealloc
{
	SAFE_ARC_RELEASE(category);
	SAFE_ARC_RELEASE(title);

	SAFE_ARC_SUPER_DEALLOC();
}

@end

#pragma mark RFUILoadingView

@interface RFUILoadingView ()
{
}
@property (nonatomic, assign) NSInteger count;
@property (nonatomic, SAFE_ARC_STRONG) NSMutableDictionary *categorys;
@property (nonatomic, SAFE_ARC_STRONG) UIView *viewLoading;
@property (nonatomic, SAFE_ARC_STRONG) UILabel *lbTitle;
@property (nonatomic, SAFE_ARC_STRONG) UIActivityIndicatorView *activityView;

- (void)showLoadingInner:(RFUILoadingViewParam *)aParam;
- (void)hideInner;
- (void)forceHideInner;
- (void)showLoadingInnerWithCategoryParam:(RFUILoadingViewParam *)aParam;
- (void)hideInnerWithCategory:(NSString *)aCategory;
- (void)forceHideInnerWithCategory:(NSString *)aCategory;
- (void)displayLoadingView:(RFUILoadingViewParam *)aParam;
- (void)hideLoadingView;

@end

@implementation RFUILoadingView
@synthesize count;
@synthesize categorys;
@synthesize viewLoading;
@synthesize lbTitle;
@synthesize activityView;

- (id)init
{
	self = [super init];
    if (self)
    {
		count = 0;
		categorys = [[NSMutableDictionary alloc] init];

		viewLoading = [[UIView alloc] init];
		viewLoading.backgroundColor = RGBA2COLOR(51, 51, 51, 0.8);
		viewLoading.layer.cornerRadius = 6;
		viewLoading.userInteractionEnabled = NO;
		viewLoading.multipleTouchEnabled = NO;

		lbTitle = [[UILabel alloc] init];
		[lbTitle setFont:[UIFont systemFontOfSize:13]];
		lbTitle.textColor = [UIColor whiteColor];
		lbTitle.backgroundColor = [UIColor clearColor];
		lbTitle.textAlignment = NSTextAlignmentLeft;
		[viewLoading addSubview:lbTitle];

		activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
		activityView.frame = CGRectMake(5.0f, 8.0f, 20.0f, 20.0f);
		[viewLoading addSubview:activityView];
    }
    return self;
}

- (void)dealloc
{
	SAFE_ARC_RELEASE(categorys);
	SAFE_ARC_RELEASE(viewLoading);
	SAFE_ARC_RELEASE(lbTitle);
	SAFE_ARC_RELEASE(activityView);

    SAFE_ARC_SUPER_DEALLOC();
}

+ (RFUILoadingView *)shared
{
	static RFUILoadingView *s_loadingView = nil;

	static dispatch_once_t onceToken;
	dispatch_once(&onceToken, ^{
		s_loadingView = [[RFUILoadingView alloc] init];
	});

	return s_loadingView;
}

+ (void)showLoading:(BOOL)bShowActivity title:(NSString *)aTitle autoHide:(BOOL)bAutoHide
{
	RFUILoadingViewParam *param = SAFE_ARC_AUTORELEASE([[RFUILoadingViewParam alloc] init]);
	param.category = @"";
	param.isShowActivity = bShowActivity;
	param.title = aTitle;
	param.isAutoHide = bAutoHide;

	RFUILoadingView *lv = [RFUILoadingView shared];
	[lv performSelectorOnMainThread:@selector(showLoadingInner:) withObject:param waitUntilDone:NO];
}

+ (void)hide
{
	RFUILoadingView *lv = [RFUILoadingView shared];
	[lv performSelectorOnMainThread:@selector(hideInner) withObject:nil waitUntilDone:NO];
}

+ (void)forceHide
{
	RFUILoadingView *lv = [RFUILoadingView shared];
	[lv performSelectorOnMainThread:@selector(forceHideInner) withObject:nil waitUntilDone:NO];
}

+ (void)showLoadingWithCategory:(NSString *)aCategory showActivity:(BOOL)bShowActivity title:(NSString *)aTitle autoHide:(BOOL)bAutoHide
{
	RFUILoadingViewParam *param = SAFE_ARC_AUTORELEASE([[RFUILoadingViewParam alloc] init]);
	param.category = aCategory;
	param.isShowActivity = bShowActivity;
	param.title = aTitle;
	param.isAutoHide = bAutoHide;

	RFUILoadingView *lv = [RFUILoadingView shared];

	[lv performSelectorOnMainThread:@selector(showLoadingInnerWithCategoryParam:) withObject:param waitUntilDone:NO];
}

+ (void)hideWithCategory:(NSString *)aCategory
{
	RFUILoadingView *lv = [RFUILoadingView shared];
	[lv performSelectorOnMainThread:@selector(hideInnerWithCategory:) withObject:aCategory waitUntilDone:NO];
}

+ (void)forceHideWithCategory:(NSString *)aCategory
{
	RFUILoadingView *lv = [RFUILoadingView shared];
	[lv performSelectorOnMainThread:@selector(forceHideInnerWithCategory:) withObject:aCategory waitUntilDone:NO];
}

- (void)showLoadingInner:(RFUILoadingViewParam *)aParam
{
	[self displayLoadingView:aParam];
	count++;

	if (aParam.isAutoHide)
	{
		[self performSelector:@selector(hideInner) withObject:nil afterDelay:3];
	}

	NSLog(@"loading count(showLoading):%ld", (long)(count));
}

- (void)hideInner
{
	// 减去计数
	count--;
	if (count <= 0)
	{
		[self hideLoadingView];
		count = 0;
	}

	NSLog(@"loading count(hide):%ld", (long)(count));
}

- (void)forceHideInner
{
	count = 0;
	[categorys removeAllObjects];
	[self hideLoadingView];

	NSLog(@"loading count(forceHide):%ld", (long)(count));
}

- (void)showLoadingInnerWithCategoryParam:(RFUILoadingViewParam *)aParam
{
	[self displayLoadingView:aParam];

	NSInteger categoryCount = [[categorys objectForKey:aParam.category] integerValue];
	if (categoryCount == 0)
	{
		// 首次调用,只加一次
		count++;
	}
	categoryCount++;
	[categorys setObject:[NSNumber numberWithInteger:categoryCount] forKey:aParam.category];

	if (aParam.isAutoHide)
	{
		[self performSelector:@selector(hideInnerWithCategory:) withObject:aParam.category afterDelay:3];
	}

	NSLog(@"loading count(showLoadingWithCategory):%ld", (long)(count));
}

- (void)hideInnerWithCategory:(NSString *)aCategory
{
	NSInteger categoryCount = [[categorys objectForKey:aCategory] integerValue];
	if (categoryCount > 0)
	{
		categoryCount--;
		if (categoryCount <= 0)
		{
			// 此类别计数为0,总计数只减一次
			count--;
			categoryCount = 0;
		}
	}
	else
	{
		categoryCount = 0;
	}
	[categorys setObject:[NSNumber numberWithInteger:categoryCount] forKey:aCategory];

	if (count <= 0)
	{
		[self hideLoadingView];
		count = 0;
	}

	NSLog(@"loading count(hideWithCategory):%ld", (long)(count));
}

- (void)forceHideInnerWithCategory:(NSString *)aCategory
{
	NSInteger categoryCount = [[categorys objectForKey:aCategory] integerValue];
	if (categoryCount > 0)
	{
		// 此类别计数为0,总计数只减一次
		count--;
	}
	categoryCount = 0;
	[categorys setObject:[NSNumber numberWithInteger:categoryCount] forKey:aCategory];

	if (count <= 0)
	{
		[self hideLoadingView];
		count = 0;
	}

	NSLog(@"loading count(forceHideWithCategory):%ld", (long)(count));
}

- (void)displayLoadingView:(RFUILoadingViewParam *)aParam
{
	NSLog(@"displayLoadingView");

	float _top_onKeyBoard = 50.0f;

	if ([NSString isEmpty:aParam.title])
	{
		if (count <= 0)
		{
			// 第一次使用默认标题
			aParam.title = NSLocalizedString(@"Loading...", nil);
		}
		else
		{
			// 如果已经存在一个标题,使用原有的
			aParam.title = lbTitle.text;
		}
	}

	float h = 36.0f;
	float w = 0;

	CGFloat titleWidth = [aParam.title widthWithFont:[UIFont systemFontOfSize:13]];

	// view
	if (aParam.isShowActivity)
	{
		w = titleWidth + 35 + 15;

		activityView.frame = CGRectMake(5.0f, 8.0f, 20.0f, 20.0f);
		activityView.hidden = NO;
		if (![activityView isAnimating])
		{
			[activityView startAnimating];
		}
	}
	else
	{
		w = titleWidth + 20;

		if ([activityView isAnimating])
		{
			[activityView stopAnimating];
		}
		activityView.hidden = YES;
	}
	[viewLoading removeFromSuperview];
	UIWindow *window = [[UIApplication sharedApplication].windows objectAtIndex:0];
	[window addSubview:viewLoading];
	[viewLoading.layer removeAllAnimations];

	//==================================================
    //支持换行
    int row = (int)w / 300 + ((((int)w / 300) > 0)?1:0);
    if (w > 300)
        w = 300;
    if (row > 1)
    {
        lbTitle.numberOfLines = 0;
        h = 20 * row;
    }
    CGRect frmActivity = activityView.frame;
    frmActivity.origin.y = (h - frmActivity.size.height)/2;
    [activityView setFrame:frmActivity];
	//==================================================

    [viewLoading setFrame:CGRectMake((320.0f-w)/2, (480.0f-_top_onKeyBoard-h)/2, w, h)];
	[lbTitle setFrame:CGRectMake(aParam.isShowActivity?35.0f:10.0f, 0.0f, w-(aParam.isShowActivity?35.0f:10.0f), h)];
    lbTitle.text = aParam.title;

	viewLoading.hidden = NO;
}

- (void)hideLoadingView
{
	CATransition *animation = [CATransition animation];
	animation.duration = 1.0f;
	animation.timingFunction = UIViewAnimationCurveEaseInOut;
	animation.removedOnCompletion = YES;
	animation.type = kCATransitionFade;
	viewLoading.hidden = YES;
	[viewLoading.layer removeAllAnimations];
	[viewLoading.layer addAnimation:animation forKey:@"hideLoadingView"];
}

@end


text:
package com.bj58.oceanus.exchange.nodes.value.impl;

import java.util.LinkedList;
import java.util.List;

import com.bj58.oceanus.core.shard.AnalyzeResult;
import com.bj58.oceanus.core.shard.TableColumn;
import com.bj58.oceanus.exchange.nodes.AbstractNodeAnalyzer;
import com.bj58.oceanus.exchange.nodes.DefaultAnalyzeResult;
import com.bj58.sql.parser.LikeEscapeOperatorNode;
import com.bj58.sql.parser.NodeTypes;

/**
 * SQL节点解析器:LikeOperatorNodeAnalyzer
 *
 * @author Service Platform Architecture Team (spat@58.com)
 */
public class LikeOperatorNodeAnalyzer extends
		AbstractNodeAnalyzer<LikeEscapeOperatorNode, AnalyzeResult> {
	int[] nodeTypes = { NodeTypes.LIKE_OPERATOR_NODE };

	@Override
	public int[] getNodeTypes() {
		return nodeTypes;
	}

	@Override
	public AnalyzeResult doAnalyze(LikeEscapeOperatorNode node) {
		DefaultAnalyzeResult result = new DefaultAnalyzeResult();
		List<TableColumn> columns = new LinkedList<TableColumn>();
		TableColumn column = new TableColumn();
		column.setName(node.getReceiver().getColumnName());
		column.setTable(node.getReceiver().getTableName());
		column.setValue(node.getLeftOperand());

		columns.add(column);
		result.addConditionColumns(columns);
		return result;
	}

}