text:
package com.amazonaws.services.simplesystemsmanagement.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 *

 * A count of OpsItems.
 *

 *
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class OpsItemSummary implements Serializable, Cloneable, StructuredPojo {

    /**
     *

     * The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     *

     */
    private String createdBy;
    /**
     *

     * The date and time the OpsItem was created.
     *

     */
    private java.util.Date createdTime;
    /**
     *

     * The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     *

     */
    private String lastModifiedBy;
    /**
     *

     * The date and time the OpsItem was last updated.
     *

     */
    private java.util.Date lastModifiedTime;
    /**
     *

     * The importance of this OpsItem in relation to other OpsItems in the system.
     *

     */
    private Integer priority;
    /**
     *

     * The impacted Amazon Web Services resource.
     *

     */
    private String source;
    /**
     *

     * The OpsItem status. Status can be Open, In Progress, or Resolved.
     *

     */
    private String status;
    /**
     *

     * The ID of the OpsItem.
     *

     */
    private String opsItemId;
    /**
     *

     * A short heading that describes the nature of the OpsItem and the impacted resource.
     *

     */
    private String title;
    /**
     *

     * Operational data is custom data that provides useful reference details about the OpsItem.
     *

     */
    private java.util.Map<String, OpsItemDataValue> operationalData;
    /**
     *

     * A list of OpsItems by category.
     *

     */
    private String category;
    /**
     *

     * A list of OpsItems by severity.
     *

     */
    private String severity;
    /**
     *

     * The type of OpsItem. Systems Manager supports the following types of OpsItems:
     *

     *

     *

     *

     * /aws/issue
     *

     *

     * This type of OpsItem is used for default OpsItems created by OpsCenter.
     *

     *

     *

     *

     * /aws/changerequest
     *

     *

     * This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
     *

     *

     *

     *

     * /aws/insights
     *

     *

     * This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
     *

     *

     *

     */
    private String opsItemType;
    /**
     *

     * The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest
     * .
     *

     */
    private java.util.Date actualStartTime;
    /**
     *

     * The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest.
     *

     */
    private java.util.Date actualEndTime;
    /**
     *

     * The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem
     * type /aws/changerequest.
     *

     */
    private java.util.Date plannedStartTime;
    /**
     *

     * The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem
     * type /aws/changerequest.
     *

     */
    private java.util.Date plannedEndTime;

    /**
     *

     * The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     *

     *
     * @param createdBy
     *        The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     */

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    /**
     *

     * The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     *

     *
     * @return The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     */

    public String getCreatedBy() {
        return this.createdBy;
    }

    /**
     *

     * The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     *

     *
     * @param createdBy
     *        The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withCreatedBy(String createdBy) {
        setCreatedBy(createdBy);
        return this;
    }

    /**
     *

     * The date and time the OpsItem was created.
     *

     *
     * @param createdTime
     *        The date and time the OpsItem was created.
     */

    public void setCreatedTime(java.util.Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     *

     * The date and time the OpsItem was created.
     *

     *
     * @return The date and time the OpsItem was created.
     */

    public java.util.Date getCreatedTime() {
        return this.createdTime;
    }

    /**
     *

     * The date and time the OpsItem was created.
     *

     *
     * @param createdTime
     *        The date and time the OpsItem was created.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withCreatedTime(java.util.Date createdTime) {
        setCreatedTime(createdTime);
        return this;
    }

    /**
     *

     * The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     *

     *
     * @param lastModifiedBy
     *        The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     */

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    /**
     *

     * The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     *

     *
     * @return The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     */

    public String getLastModifiedBy() {
        return this.lastModifiedBy;
    }

    /**
     *

     * The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     *

     *
     * @param lastModifiedBy
     *        The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withLastModifiedBy(String lastModifiedBy) {
        setLastModifiedBy(lastModifiedBy);
        return this;
    }

    /**
     *

     * The date and time the OpsItem was last updated.
     *

     *
     * @param lastModifiedTime
     *        The date and time the OpsItem was last updated.
     */

    public void setLastModifiedTime(java.util.Date lastModifiedTime) {
        this.lastModifiedTime = lastModifiedTime;
    }

    /**
     *

     * The date and time the OpsItem was last updated.
     *

     *
     * @return The date and time the OpsItem was last updated.
     */

    public java.util.Date getLastModifiedTime() {
        return this.lastModifiedTime;
    }

    /**
     *

     * The date and time the OpsItem was last updated.
     *

     *
     * @param lastModifiedTime
     *        The date and time the OpsItem was last updated.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withLastModifiedTime(java.util.Date lastModifiedTime) {
        setLastModifiedTime(lastModifiedTime);
        return this;
    }

    /**
     *

     * The importance of this OpsItem in relation to other OpsItems in the system.
     *

     *
     * @param priority
     *        The importance of this OpsItem in relation to other OpsItems in the system.
     */

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    /**
     *

     * The importance of this OpsItem in relation to other OpsItems in the system.
     *

     *
     * @return The importance of this OpsItem in relation to other OpsItems in the system.
     */

    public Integer getPriority() {
        return this.priority;
    }

    /**
     *

     * The importance of this OpsItem in relation to other OpsItems in the system.
     *

     *
     * @param priority
     *        The importance of this OpsItem in relation to other OpsItems in the system.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withPriority(Integer priority) {
        setPriority(priority);
        return this;
    }

    /**
     *

     * The impacted Amazon Web Services resource.
     *

     *
     * @param source
     *        The impacted Amazon Web Services resource.
     */

    public void setSource(String source) {
        this.source = source;
    }

    /**
     *

     * The impacted Amazon Web Services resource.
     *

     *
     * @return The impacted Amazon Web Services resource.
     */

    public String getSource() {
        return this.source;
    }

    /**
     *

     * The impacted Amazon Web Services resource.
     *

     *
     * @param source
     *        The impacted Amazon Web Services resource.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withSource(String source) {
        setSource(source);
        return this;
    }

    /**
     *

     * The OpsItem status. Status can be Open, In Progress, or Resolved.
     *

     *
     * @param status
     *        The OpsItem status. Status can be Open, In Progress, or Resolved.
     * @see OpsItemStatus
     */

    public void setStatus(String status) {
        this.status = status;
    }

    /**
     *

     * The OpsItem status. Status can be Open, In Progress, or Resolved.
     *

     *
     * @return The OpsItem status. Status can be Open, In Progress, or Resolved.
     * @see OpsItemStatus
     */

    public String getStatus() {
        return this.status;
    }

    /**
     *

     * The OpsItem status. Status can be Open, In Progress, or Resolved.
     *

     *
     * @param status
     *        The OpsItem status. Status can be Open, In Progress, or Resolved.
     * @return Returns a reference to this object so that method calls can be chained together.
     * @see OpsItemStatus
     */

    public OpsItemSummary withStatus(String status) {
        setStatus(status);
        return this;
    }

    /**
     *

     * The OpsItem status. Status can be Open, In Progress, or Resolved.
     *

     *
     * @param status
     *        The OpsItem status. Status can be Open, In Progress, or Resolved.
     * @return Returns a reference to this object so that method calls can be chained together.
     * @see OpsItemStatus
     */

    public OpsItemSummary withStatus(OpsItemStatus status) {
        this.status = status.toString();
        return this;
    }

    /**
     *

     * The ID of the OpsItem.
     *

     *
     * @param opsItemId
     *        The ID of the OpsItem.
     */

    public void setOpsItemId(String opsItemId) {
        this.opsItemId = opsItemId;
    }

    /**
     *

     * The ID of the OpsItem.
     *

     *
     * @return The ID of the OpsItem.
     */

    public String getOpsItemId() {
        return this.opsItemId;
    }

    /**
     *

     * The ID of the OpsItem.
     *

     *
     * @param opsItemId
     *        The ID of the OpsItem.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withOpsItemId(String opsItemId) {
        setOpsItemId(opsItemId);
        return this;
    }

    /**
     *

     * A short heading that describes the nature of the OpsItem and the impacted resource.
     *

     *
     * @param title
     *        A short heading that describes the nature of the OpsItem and the impacted resource.
     */

    public void setTitle(String title) {
        this.title = title;
    }

    /**
     *

     * A short heading that describes the nature of the OpsItem and the impacted resource.
     *

     *
     * @return A short heading that describes the nature of the OpsItem and the impacted resource.
     */

    public String getTitle() {
        return this.title;
    }

    /**
     *

     * A short heading that describes the nature of the OpsItem and the impacted resource.
     *

     *
     * @param title
     *        A short heading that describes the nature of the OpsItem and the impacted resource.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withTitle(String title) {
        setTitle(title);
        return this;
    }

    /**
     *

     * Operational data is custom data that provides useful reference details about the OpsItem.
     *

     *
     * @return Operational data is custom data that provides useful reference details about the OpsItem.
     */

    public java.util.Map<String, OpsItemDataValue> getOperationalData() {
        return operationalData;
    }

    /**
     *

     * Operational data is custom data that provides useful reference details about the OpsItem.
     *

     *
     * @param operationalData
     *        Operational data is custom data that provides useful reference details about the OpsItem.
     */

    public void setOperationalData(java.util.Map<String, OpsItemDataValue> operationalData) {
        this.operationalData = operationalData;
    }

    /**
     *

     * Operational data is custom data that provides useful reference details about the OpsItem.
     *

     *
     * @param operationalData
     *        Operational data is custom data that provides useful reference details about the OpsItem.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withOperationalData(java.util.Map<String, OpsItemDataValue> operationalData) {
        setOperationalData(operationalData);
        return this;
    }

    /**
     * Add a single OperationalData entry
     *
     * @see OpsItemSummary#withOperationalData
     * @returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary addOperationalDataEntry(String key, OpsItemDataValue value) {
        if (null == this.operationalData) {
            this.operationalData = new java.util.HashMap<String, OpsItemDataValue>();
        }
        if (this.operationalData.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.operationalData.put(key, value);
        return this;
    }

    /**
     * Removes all the entries added into OperationalData.
     *
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary clearOperationalDataEntries() {
        this.operationalData = null;
        return this;
    }

    /**
     *

     * A list of OpsItems by category.
     *

     *
     * @param category
     *        A list of OpsItems by category.
     */

    public void setCategory(String category) {
        this.category = category;
    }

    /**
     *

     * A list of OpsItems by category.
     *

     *
     * @return A list of OpsItems by category.
     */

    public String getCategory() {
        return this.category;
    }

    /**
     *

     * A list of OpsItems by category.
     *

     *
     * @param category
     *        A list of OpsItems by category.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withCategory(String category) {
        setCategory(category);
        return this;
    }

    /**
     *

     * A list of OpsItems by severity.
     *

     *
     * @param severity
     *        A list of OpsItems by severity.
     */

    public void setSeverity(String severity) {
        this.severity = severity;
    }

    /**
     *

     * A list of OpsItems by severity.
     *

     *
     * @return A list of OpsItems by severity.
     */

    public String getSeverity() {
        return this.severity;
    }

    /**
     *

     * A list of OpsItems by severity.
     *

     *
     * @param severity
     *        A list of OpsItems by severity.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withSeverity(String severity) {
        setSeverity(severity);
        return this;
    }

    /**
     *

     * The type of OpsItem. Systems Manager supports the following types of OpsItems:
     *

     *

     *

     *

     * /aws/issue
     *

     *

     * This type of OpsItem is used for default OpsItems created by OpsCenter.
     *

     *

     *

     *

     * /aws/changerequest
     *

     *

     * This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
     *

     *

     *

     *

     * /aws/insights
     *

     *

     * This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
     *

     *

     *

     *
     * @param opsItemType
     *        The type of OpsItem. Systems Manager supports the following types of OpsItems:

     *

     *

     *

     *        /aws/issue
     *

     *

     *        This type of OpsItem is used for default OpsItems created by OpsCenter.
     *

     *

     *

     *

     *        /aws/changerequest
     *

     *

     *        This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
     *

     *

     *

     *

     *        /aws/insights
     *

     *

     *        This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
     *

     *

     */

    public void setOpsItemType(String opsItemType) {
        this.opsItemType = opsItemType;
    }

    /**
     *

     * The type of OpsItem. Systems Manager supports the following types of OpsItems:
     *

     *

     *

     *

     * /aws/issue
     *

     *

     * This type of OpsItem is used for default OpsItems created by OpsCenter.
     *

     *

     *

     *

     * /aws/changerequest
     *

     *

     * This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
     *

     *

     *

     *

     * /aws/insights
     *

     *

     * This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
     *

     *

     *

     *
     * @return The type of OpsItem. Systems Manager supports the following types of OpsItems:

     *

     *

     *

     *         /aws/issue
     *

     *

     *         This type of OpsItem is used for default OpsItems created by OpsCenter.
     *

     *

     *

     *

     *         /aws/changerequest
     *

     *

     *         This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
     *

     *

     *

     *

     *         /aws/insights
     *

     *

     *         This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
     *

     *

     */

    public String getOpsItemType() {
        return this.opsItemType;
    }

    /**
     *

     * The type of OpsItem. Systems Manager supports the following types of OpsItems:
     *

     *

     *

     *

     * /aws/issue
     *

     *

     * This type of OpsItem is used for default OpsItems created by OpsCenter.
     *

     *

     *

     *

     * /aws/changerequest
     *

     *

     * This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
     *

     *

     *

     *

     * /aws/insights
     *

     *

     * This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
     *

     *

     *

     *
     * @param opsItemType
     *        The type of OpsItem. Systems Manager supports the following types of OpsItems:

     *

     *

     *

     *        /aws/issue
     *

     *

     *        This type of OpsItem is used for default OpsItems created by OpsCenter.
     *

     *

     *

     *

     *        /aws/changerequest
     *

     *

     *        This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
     *

     *

     *

     *

     *        /aws/insights
     *

     *

     *        This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
     *

     *

     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withOpsItemType(String opsItemType) {
        setOpsItemType(opsItemType);
        return this;
    }

    /**
     *

     * The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest
     * .
     *

     *
     * @param actualStartTime
     *        The time a runbook workflow started. Currently reported only for the OpsItem type
     *        /aws/changerequest.
     */

    public void setActualStartTime(java.util.Date actualStartTime) {
        this.actualStartTime = actualStartTime;
    }

    /**
     *

     * The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest
     * .
     *

     *
     * @return The time a runbook workflow started. Currently reported only for the OpsItem type
     *         /aws/changerequest.
     */

    public java.util.Date getActualStartTime() {
        return this.actualStartTime;
    }

    /**
     *

     * The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest
     * .
     *

     *
     * @param actualStartTime
     *        The time a runbook workflow started. Currently reported only for the OpsItem type
     *        /aws/changerequest.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withActualStartTime(java.util.Date actualStartTime) {
        setActualStartTime(actualStartTime);
        return this;
    }

    /**
     *

     * The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest.
     *

     *
     * @param actualEndTime
     *        The time a runbook workflow ended. Currently reported only for the OpsItem type
     *        /aws/changerequest.
     */

    public void setActualEndTime(java.util.Date actualEndTime) {
        this.actualEndTime = actualEndTime;
    }

    /**
     *

     * The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest.
     *

     *
     * @return The time a runbook workflow ended. Currently reported only for the OpsItem type
     *         /aws/changerequest.
     */

    public java.util.Date getActualEndTime() {
        return this.actualEndTime;
    }

    /**
     *

     * The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest.
     *

     *
     * @param actualEndTime
     *        The time a runbook workflow ended. Currently reported only for the OpsItem type
     *        /aws/changerequest.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withActualEndTime(java.util.Date actualEndTime) {
        setActualEndTime(actualEndTime);
        return this;
    }

    /**
     *

     * The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem
     * type /aws/changerequest.
     *

     *
     * @param plannedStartTime
     *        The time specified in a change request for a runbook workflow to start. Currently supported only for the
     *        OpsItem type /aws/changerequest.
     */

    public void setPlannedStartTime(java.util.Date plannedStartTime) {
        this.plannedStartTime = plannedStartTime;
    }

    /**
     *

     * The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem
     * type /aws/changerequest.
     *

     *
     * @return The time specified in a change request for a runbook workflow to start. Currently supported only for the
     *         OpsItem type /aws/changerequest.
     */

    public java.util.Date getPlannedStartTime() {
        return this.plannedStartTime;
    }

    /**
     *

     * The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem
     * type /aws/changerequest.
     *

     *
     * @param plannedStartTime
     *        The time specified in a change request for a runbook workflow to start. Currently supported only for the
     *        OpsItem type /aws/changerequest.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withPlannedStartTime(java.util.Date plannedStartTime) {
        setPlannedStartTime(plannedStartTime);
        return this;
    }

    /**
     *

     * The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem
     * type /aws/changerequest.
     *

     *
     * @param plannedEndTime
     *        The time specified in a change request for a runbook workflow to end. Currently supported only for the
     *        OpsItem type /aws/changerequest.
     */

    public void setPlannedEndTime(java.util.Date plannedEndTime) {
        this.plannedEndTime = plannedEndTime;
    }

    /**
     *

     * The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem
     * type /aws/changerequest.
     *

     *
     * @return The time specified in a change request for a runbook workflow to end. Currently supported only for the
     *         OpsItem type /aws/changerequest.
     */

    public java.util.Date getPlannedEndTime() {
        return this.plannedEndTime;
    }

    /**
     *

     * The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem
     * type /aws/changerequest.
     *

     *
     * @param plannedEndTime
     *        The time specified in a change request for a runbook workflow to end. Currently supported only for the
     *        OpsItem type /aws/changerequest.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public OpsItemSummary withPlannedEndTime(java.util.Date plannedEndTime) {
        setPlannedEndTime(plannedEndTime);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getCreatedBy() != null)
            sb.append("CreatedBy: ").append(getCreatedBy()).append(",");
        if (getCreatedTime() != null)
            sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
        if (getLastModifiedBy() != null)
            sb.append("LastModifiedBy: ").append(getLastModifiedBy()).append(",");
        if (getLastModifiedTime() != null)
            sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
        if (getPriority() != null)
            sb.append("Priority: ").append(getPriority()).append(",");
        if (getSource() != null)
            sb.append("Source: ").append(getSource()).append(",");
        if (getStatus() != null)
            sb.append("Status: ").append(getStatus()).append(",");
        if (getOpsItemId() != null)
            sb.append("OpsItemId: ").append(getOpsItemId()).append(",");
        if (getTitle() != null)
            sb.append("Title: ").append(getTitle()).append(",");
        if (getOperationalData() != null)
            sb.append("OperationalData: ").append(getOperationalData()).append(",");
        if (getCategory() != null)
            sb.append("Category: ").append(getCategory()).append(",");
        if (getSeverity() != null)
            sb.append("Severity: ").append(getSeverity()).append(",");
        if (getOpsItemType() != null)
            sb.append("OpsItemType: ").append(getOpsItemType()).append(",");
        if (getActualStartTime() != null)
            sb.append("ActualStartTime: ").append(getActualStartTime()).append(",");
        if (getActualEndTime() != null)
            sb.append("ActualEndTime: ").append(getActualEndTime()).append(",");
        if (getPlannedStartTime() != null)
            sb.append("PlannedStartTime: ").append(getPlannedStartTime()).append(",");
        if (getPlannedEndTime() != null)
            sb.append("PlannedEndTime: ").append(getPlannedEndTime());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof OpsItemSummary == false)
            return false;
        OpsItemSummary other = (OpsItemSummary) obj;
        if (other.getCreatedBy() == null ^ this.getCreatedBy() == null)
            return false;
        if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false)
            return false;
        if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
            return false;
        if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false)
            return false;
        if (other.getLastModifiedBy() == null ^ this.getLastModifiedBy() == null)
            return false;
        if (other.getLastModifiedBy() != null && other.getLastModifiedBy().equals(this.getLastModifiedBy()) == false)
            return false;
        if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
            return false;
        if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false)
            return false;
        if (other.getPriority() == null ^ this.getPriority() == null)
            return false;
        if (other.getPriority() != null && other.getPriority().equals(this.getPriority()) == false)
            return false;
        if (other.getSource() == null ^ this.getSource() == null)
            return false;
        if (other.getSource() != null && other.getSource().equals(this.getSource()) == false)
            return false;
        if (other.getStatus() == null ^ this.getStatus() == null)
            return false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
            return false;
        if (other.getOpsItemId() == null ^ this.getOpsItemId() == null)
            return false;
        if (other.getOpsItemId() != null && other.getOpsItemId().equals(this.getOpsItemId()) == false)
            return false;
        if (other.getTitle() == null ^ this.getTitle() == null)
            return false;
        if (other.getTitle() != null && other.getTitle().equals(this.getTitle()) == false)
            return false;
        if (other.getOperationalData() == null ^ this.getOperationalData() == null)
            return false;
        if (other.getOperationalData() != null && other.getOperationalData().equals(this.getOperationalData()) == false)
            return false;
        if (other.getCategory() == null ^ this.getCategory() == null)
            return false;
        if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == false)
            return false;
        if (other.getSeverity() == null ^ this.getSeverity() == null)
            return false;
        if (other.getSeverity() != null && other.getSeverity().equals(this.getSeverity()) == false)
            return false;
        if (other.getOpsItemType() == null ^ this.getOpsItemType() == null)
            return false;
        if (other.getOpsItemType() != null && other.getOpsItemType().equals(this.getOpsItemType()) == false)
            return false;
        if (other.getActualStartTime() == null ^ this.getActualStartTime() == null)
            return false;
        if (other.getActualStartTime() != null && other.getActualStartTime().equals(this.getActualStartTime()) == false)
            return false;
        if (other.getActualEndTime() == null ^ this.getActualEndTime() == null)
            return false;
        if (other.getActualEndTime() != null && other.getActualEndTime().equals(this.getActualEndTime()) == false)
            return false;
        if (other.getPlannedStartTime() == null ^ this.getPlannedStartTime() == null)
            return false;
        if (other.getPlannedStartTime() != null && other.getPlannedStartTime().equals(this.getPlannedStartTime()) == false)
            return false;
        if (other.getPlannedEndTime() == null ^ this.getPlannedEndTime() == null)
            return false;
        if (other.getPlannedEndTime() != null && other.getPlannedEndTime().equals(this.getPlannedEndTime()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        hashCode = prime * hashCode + ((getLastModifiedBy() == null) ? 0 : getLastModifiedBy().hashCode());
        hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
        hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode());
        hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode());
        hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
        hashCode = prime * hashCode + ((getOpsItemId() == null) ? 0 : getOpsItemId().hashCode());
        hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode());
        hashCode = prime * hashCode + ((getOperationalData() == null) ? 0 : getOperationalData().hashCode());
        hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode());
        hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode());
        hashCode = prime * hashCode + ((getOpsItemType() == null) ? 0 : getOpsItemType().hashCode());
        hashCode = prime * hashCode + ((getActualStartTime() == null) ? 0 : getActualStartTime().hashCode());
        hashCode = prime * hashCode + ((getActualEndTime() == null) ? 0 : getActualEndTime().hashCode());
        hashCode = prime * hashCode + ((getPlannedStartTime() == null) ? 0 : getPlannedStartTime().hashCode());
        hashCode = prime * hashCode + ((getPlannedEndTime() == null) ? 0 : getPlannedEndTime().hashCode());
        return hashCode;
    }

    @Override
    public OpsItemSummary clone() {
        try {
            return (OpsItemSummary) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

    @com.amazonaws.annotation.SdkInternalApi
    @Override
    public void marshall(ProtocolMarshaller protocolMarshaller) {
        com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}


text:
<?php

namespace Inowas\ModflowBundle\Infrastructure\Container;

use Prooph\ServiceBus\CommandBus;
use Prooph\ServiceBus\Plugin\Router\CommandRouter;

class CommandBusFactory extends AbstractBusFactory
{
    /**
     * @return string
     */
    protected static function getBusClass(): string
    {
        return CommandBus::class;
    }

    /**
     * @return string
     */
    protected static function getBusKey(): string
    {
        return 'command_buses';
    }

    /**
     * @return string
     */
    protected static function getConfigKey(): string
    {
        return 'modflow_command_bus';
    }

    /**
     * @return string
     */
    protected static function getRouterClass(): string
    {
        return CommandRouter::class;
    }
}

redpajama_set_name: RedPajamaGithub


text:
module NSXDriver

    # Class VirtualWire NSX-V Network
    class VirtualWire < LogicalSwitch

        # CONSTRUCTOR
        def initialize(nsx_client, ls_id = nil, tz_id = nil, ls_data = nil)
            super(nsx_client)
            if ls_id
                initialize_with_id(ls_id)
            else
                if tz_id && ls_data
                    begin
                        @ls_id = new_logical_switch(ls_data, tz_id)
                    rescue NSXError::IncorrectResponseCodeError => e
                        raise 'VirtualWire not created in NSX Manager: ' \
                              "#{e.message}"
                    end
                    unless @ls_id
                        raise 'Virtual Wire not created in NSX Manager: ' \
                              'generic error'
                    end

                    # Construct URL of the created logical switch
                    @url_ls = NSXConstants::NSXV_LS_SECTION + @ls_id
                    @ls_vni = ls_vni
                    @ls_name = ls_name
                    @tz_id = ls_tz
                    @tenant_id = 'virtual wire tenant'
                    @guest_vlan_allowed = false
                end
            end
        end

        # Creates a VirtualWire from its name
        def self.new_from_name(nsx_client, ls_name)
            virtualwire = new(nsx_client)
            ls_id = virtualwire.ls_id_from_name(nsx_client, ls_name)
            unless ls_id
                error_msg = "VirtualWire with name: #{ls_name} not found"
                error = NSXError::ObjectNotFound
                        .new(error_msg)
                raise error
            end

            # initialize_with_id(@ls_id)
            virtualwire.initialize_with_id(ls_id)
            virtualwire
        end

        # Creates a VirtualWire from its id
        def initialize_with_id(ls_id)
            @ls_id = ls_id
            # Construct URL of the created logical switch
            @url_ls = NSXConstants::NSXV_LS_SECTION + \
                      @ls_id
            # Raise an error if VirtualWire id doesn't exists
            unless ls?
                error_msg = "VirtualWire with id: #{ls_id} not found"
                error = NSXError::ObjectNotFound
                        .new(error_msg)
                raise error
            end

            @ls_vni =  ls_vni
            @ls_name = ls_name
            @tz_id = ls_tz
            @tenant_id = 'virtual wire tenant'
            @guest_vlan_allowed = false
        end

        # Get the logical switch id from its name
        def ls_id_from_name(nsx_client, name)
            url = NSXConstants::NSXV_LS_SECTION
            virtualwires = nsx_client
                           .get(url)
                           .xpath(NSXConstants::NSXV_LS_XPATH)
            virtualwires.each do |virtualwire|
                lsname_arr = name.split(/-sid-/)
                lsname = lsname_arr[-1].split('-', 2)[-1]
                lsid = lsname_arr[0].split(/vxw-dvs-\w.-/)[-1]
                if virtualwire.xpath('name').text == lsname &&
                   virtualwire.xpath('objectId').text == lsid
                    return virtualwire.xpath('objectId').text
                end
            end
            nil
        end

        # METHODS

        # Check if logical switch exists
        def ls?
            @nsx_client.get(@url_ls) ? true : false
        end

        # Get logical switch's name
        def ls_name
            @nsx_client.get(@url_ls)
                       .xpath(NSXConstants::NSXV_LS_NAME_XPATH).text
        end

        # Get logical switch's vni
        def ls_vni
            @nsx_client.get(@url_ls)
                       .xpath(NSXConstants::NSXV_LS_VNI_XPATH).text
        end

        # Get the Transport Zone of the logical switch
        def ls_tz
            @nsx_client.get(@url_ls)
                       .xpath(NSXConstants::NSXV_TZ_XPATH).text
        end

        # Get the logical switch reference into vcenter
        def ls_vcenter_ref
            @nsx_client.get(@url_ls)
                       .xpath(NSXConstants::NSXV_LS_BACKING_XPATH)
                       .text
        end

        # Get the distributed virtual switch's ref associated to a LS
        def ls_dvs_ref
            @nsx_client.get(@url_ls)
                       .xpath(NSXConstants::NSXV_LS_OBJECTID_XPATH)
                       .text
        end

        # Create a new logical switch (NSX-V: virtualwire)
        def new_logical_switch(ls_data, tz_id)
            url = "#{NSXConstants::NSXV_TZ_SECTION}#{tz_id}" \
                  '/virtualwires'
            @nsx_client.post(url, ls_data)
        end

        # Delete a logical switch
        def delete_logical_switch
            @nsx_client.delete(@url_ls)
        end

    end

end


text:
// Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using Google.Apis.Appengine.v1.Data;
using GoogleCloudExtension.Accounts;
using GoogleCloudExtension.Analytics;
using GoogleCloudExtension.Analytics.Events;
using GoogleCloudExtension.CloudExplorer;
using GoogleCloudExtension.DataSources;
using GoogleCloudExtension.Utils;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace GoogleCloudExtension.CloudExplorerSources.Gae
{
    /// <summary>
    /// The root view for Google App Engine for the Cloud Explorer.
    /// </summary>
    internal class GaeSourceRootViewModel : SourceRootViewModelBase
    {
        private static readonly TreeLeaf s_loadingPlaceholder = new TreeLeaf
        {
            Caption = Resources.CloudExplorerGaeLoadingServicesCaption,
            IsLoading = true
        };
        private static readonly TreeLeaf s_noItemsPlacehoder = new TreeLeaf
        {
            Caption = Resources.CloudExplorerGaeNoServicesFoundCaption,
            IsWarning = true
        };
        private static readonly TreeLeaf s_errorPlaceholder = new TreeLeaf
        {
            Caption = Resources.CloudExplorerGaeFailedToLoadServicesCaption,
            IsError = true
        };

        private Lazy<GaeDataSource> _dataSource;
        private Task<Application> _gaeApplication;

        public GaeDataSource DataSource => _dataSource.Value;

        public Task<Application> GaeApplication => _gaeApplication;

        public override string RootCaption => Resources.CloudExplorerGaeRootNodeCaption;

        public override TreeLeaf ErrorPlaceholder => s_errorPlaceholder;

        public override TreeLeaf LoadingPlaceholder => s_loadingPlaceholder;

        public override TreeLeaf NoItemsPlaceholder => s_noItemsPlacehoder;

        public override void Initialize(ICloudSourceContext context)
        {
            base.Initialize(context);

            InvalidateProjectOrAccount();

            var menuItems = new List<MenuItem>
            {
                new MenuItem { Header = Resources.CloudExplorerStatusMenuHeader, Command = new ProtectedCommand(OnStatusCommand) },
                new MenuItem { Header = Resources.UiOpenOnCloudConsoleMenuHeader, Command = new ProtectedCommand(OnOpenOnCloudConsoleCommand) },
            };
            ContextMenu = new ContextMenu { ItemsSource = menuItems };
        }

        /// <summary>
        /// Invalidates the state of the service given by <paramref name="id"/> reloading the entire
        /// service and updating the UI.
        /// </summary>
        /// <param name="id">The id of the service to update.</param>
        public async void InvalidateService(string id)
        {
            int idx = 0;
            ServiceViewModel oldService = null;
            foreach (ServiceViewModel service in Children)
            {
                if (service.Service.Id == id)
                {
                    oldService = service;
                    break;
                }
                ++idx;
            }
            if (oldService == null)
            {
                Debug.WriteLine($"Could not find the service {id}");
                return;
            }

            var wasExpanded = oldService.IsExpanded;
            var newService = await _dataSource.Value.GetServiceAsync(id);
            var newModel = await LoadService(newService);
            Children[idx] = newModel;
            newModel.IsExpanded = wasExpanded;
        }

        private void OnStatusCommand()
        {
            Process.Start("https://status.cloud.google.com/");
        }

        private void OnOpenOnCloudConsoleCommand()
        {
            var url = $"https://console.cloud.google.com/appengine/services?project={Context.CurrentProject.ProjectId}";
            Process.Start(url);
        }

        public override void InvalidateProjectOrAccount()
        {
            Debug.WriteLine("New credentials, invalidating the Google Cloud App Engine source.");
            _dataSource = new Lazy<GaeDataSource>(CreateDataSource);
        }

        private GaeDataSource CreateDataSource()
        {
            if (CredentialsStore.Default.CurrentProjectId != null)
            {
                return new GaeDataSource(
                    CredentialsStore.Default.CurrentProjectId,
                    CredentialsStore.Default.CurrentGoogleCredential,
                    GoogleCloudExtensionPackage.ApplicationName);
            }
            else
            {
                return null;
            }
        }

        protected override async Task LoadDataOverride()
        {
            try
            {
                Debug.WriteLine("Loading list of services.");
                _gaeApplication = _dataSource.Value.GetApplicationAsync();
                IList<ServiceViewModel> services = await LoadServiceList();

                Children.Clear();
                foreach (var item in services)
                {
                    Children.Add(item);
                }
                if (Children.Count == 0)
                {
                    Children.Add(s_noItemsPlacehoder);
                }
                EventsReporterWrapper.ReportEvent(GaeServicesLoadedEvent.Create(CommandStatus.Success));
            }
            catch (DataSourceException ex)
            {
                GcpOutputWindow.OutputLine(Resources.CloudExplorerGaeFailedServicesMessage);
                GcpOutputWindow.OutputLine(ex.Message);
                GcpOutputWindow.Activate();

                EventsReporterWrapper.ReportEvent(GaeServicesLoadedEvent.Create(CommandStatus.Failure));
                throw new CloudExplorerSourceException(ex.Message, ex);
            }
        }

        private async Task<IList<ServiceViewModel>> LoadServiceList()
        {
            var services = await _dataSource.Value.GetServiceListAsync();
            var resultTasks = services.Select(x => LoadService(x));
            return await Task.WhenAll(resultTasks);
        }

        private async Task<ServiceViewModel> LoadService(Service service)
        {
            var versions = await _dataSource.Value.GetVersionListAsync(service.Id);
            var versionModels = versions
                .Select(x => new VersionViewModel(this, service, x, isLastVersion: versions.Count == 1))
                .OrderByDescending(x => GaeServiceExtensions.GetTrafficAllocation(service, x.Version.Id))
                .ToList();
            return new ServiceViewModel(this, service, versionModels);
        }
    }
}


text:
//
//  PPDataCollector.h
//  PayPalDataCollector
//
//  Copyright © 2015 PayPal, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 Used to collect risk data via the PayPal data collector
 */
@interface PPDataCollector : NSObject

/**
 Returns a client metadata ID.

 @note This returns a raw client metadata ID, which is not the correct format for device data
 when creating a transaction. Instead, it is recommended to use `collectPayPalDeviceData`.

 @param pairingID a pairing ID to associate with this clientMetadataID must be 10-32 chars long or null
 @return a client metadata ID to send as a header
*/
+ (nonnull NSString *)clientMetadataID:(nullable NSString *)pairingID;

/**
 Returns a client metadata ID.

 @note This returns a raw client metadata ID, which is not the correct format for device data
 when creating a transaction. Instead, it is recommended to use `collectPayPalDeviceData`.

 @return a client metadata ID to send as a header
*/
+ (nonnull NSString *)clientMetadataID DEPRECATED_MSG_ATTRIBUTE("Use [PPDataCollector collectPayPalDeviceData] to generate a device data string.");

/**
 Collects device data for PayPal.

 This should be used when the user is paying with PayPal or Venmo only.

 @return a deviceData string that should be passed into server-side calls, such as `Transaction.sale`,
         for PayPal transactions. This JSON serialized string contains a PayPal fraud ID.
*/
+ (nonnull NSString *)collectPayPalDeviceData;

@end


text:
package com.camunda.consulting.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@ConfigurationProperties("custom")
@PropertySource("classpath:custom.yaml")
@Data
@Component
public class CustomConfig {

    private Long processInstanceAmount = 10L;
    private String processKey;
    private String databaseName;
}


text:
using UnityEngine;
using System.Collections;

/// <summary>
/// #DESCRIPTION OF CLASS#
/// </summary>
public class CharacterControllerLogic : MonoBehaviour
{
	[SerializeField] private Animator animator;
	[SerializeField] private float directionDampTime = 0.25f;
	[SerializeField] private float directionSpeed = 3.0f;
	[SerializeField] private ThirdPersonCamera gamecam;

	// camera orbit (when holding left/right)
	[SerializeField] private float rotationDegreesPerSecond = 120f;

	private float speed = 0.0f;
	private float direction = 0.0f;
	private float horizontal = 0.0f;
	private float vertical = 0.0f;
	private AnimatorStateInfo stateInfo;

	// Hash ID (I don't even know what the fuck is this)
	private int m_LocomotionId = 0;

	void Start() {
		animator = GetComponent<Animator>();
		if (animator.layerCount >= 2) {
			animator.SetLayerWeight(1, 1);
		}

		// Hash all animation names. wtf is this
		m_LocomotionId = Animator.StringToHash("Base Layer.Locomotion");
	}

	void Update() {
		if (animator) {
			stateInfo = animator.GetCurrentAnimatorStateInfo(0);

			horizontal = Input.GetAxis("Horizontal");
			vertical = Input.GetAxis("Vertical");

			speed = new Vector2(horizontal, vertical).sqrMagnitude;

			StickToWorldSpace(this.transform, gamecam.transform, ref direction, ref speed);

			animator.SetFloat("Speed", speed);
			animator.SetFloat("Direction", direction, directionDampTime, Time.deltaTime);

		}
	}

	void FixedUpdate () {
		if (IsInLocomotion() && ((direction >= 0 && horizontal >= 0) || (direction < 0 && horizontal < 0))) {
			Vector3 rotationAmount = Vector3.Lerp(Vector3.zero,
				new Vector3(0f, rotationDegreesPerSecond + (horizontal < 0f ? -1f : 1f), 0f), Mathf.Abs(horizontal));
			Quaternion deltaRotation = Quaternion.Euler(rotationAmount * Time.deltaTime);
			this.transform.rotation *= deltaRotation;
		}
	}

	public void StickToWorldSpace (Transform root, Transform camera, ref float directionOut, ref float speedOut) {
		Vector3 rootDirection = root.forward;
		Vector3 stickDirection = new Vector3(horizontal, 0, vertical);
		speedOut = stickDirection.sqrMagnitude;

		// get camera rotation
		Vector3 cameraDirection = camera.forward;
		cameraDirection.y = 0.0f;
		Quaternion referentialShift = Quaternion.FromToRotation(Vector3.forward, cameraDirection);

		// convert joystick input in WorldSpace coordinates
		Vector3 moveDirection = referentialShift * stickDirection;
		Vector3 axisSign = Vector3.Cross(moveDirection, rootDirection);

		float angleRootToMove = Vector3.Angle(rootDirection, moveDirection) * (axisSign.y >= 0 ? -1f : 1f);

		angleRootToMove /= 180f;

		directionOut = angleRootToMove * directionSpeed;
	}

	public bool IsInLocomotion () {
		return stateInfo.nameHash == m_LocomotionId;
	}
}


text:
import Ember from 'ember';
import config from './config/environment';

const Router = Ember.Router.extend({
  location: config.locationType,
  rootURL: config.rootURL
});

Router.map(function() {
  this.route('home');
  this.route('about');
  this.route('new');
});

export default Router;


text:
'use strict';
angular.module('yapp')
.controller('teacherCourseCtrl', ['$scope', '$location','$http','passDataService','$rootScope',function($scope, $location, $http, passDataService,$rootScope) {

	$http({
//    url: "https://utbweb.co/teacher/"+sessionStorage.getItem('user')+"/courses",
    url: "http://localhost:8000/teacher/"+sessionStorage.getItem('user')+"/courses",
    method: "GET",
    data: $.param( {username: sessionStorage.getItem('user'), token:sessionStorage.getItem('token')})
 }).success(function (response) {
	  console.log(response);
	  $scope.json = response;
	  $scope.courses = response.courses;
	  $scope.id = $scope.json.id;
	  $scope.names = $scope.json.names;
	  $scope.lastnames = $scope.json.lastnames;
	  $scope.resources_uri = $scope.json.resources_uri;
	  $scope.coursename = $scope.json.courses.subjct_name;
	  $scope.size = $scope.json.courses.length;
  	});
	$scope.send = function (nrc){
			console.log(nrc);
           	passDataService.sendData(nrc);
         };

	if(sessionStorage.getItem('user')==$scope.username){
		$location.path('/login');
	}
}]);


text:
#include <grp.h>

struct group *getgrnam(const char *name)
{
    anvil_syslog(0, "%s unimplemented\n", __FUNCTION__);
    return 0;
}


text:
import StimpakSubGenerator from "stimpak-subgenerator";

export default class Generator {
	setup(stimpak) {
		stimpak
			.use(StimpakSubGenerator)
			.prompt({
				type: "input",
				name: "promptName",
				message: "You should not see this"
			})
			.render("**/*", `${__dirname}/templates`);
	}
}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Change: The Smallest Effort for the Biggest Difference</title>

    <link href="css/bootstrap.css" rel="stylesheet">

    <link href="css/stylish-portfolio.css" rel="stylesheet">

    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

                    CHANGE

                    Home

                    About

                    How It Works

                    Our Team

                    Contact

The Smallest Effort for Biggest Difference

             <form action="https://docs.google.com/a/hawk.iit.edu/forms/d/1bQW6FfNfcAI7SvDhK9X5h6gk-fCbuoEFBKyesUYSUxE/formResponse?embedded=true" method="POST" id="ss-form" target="hidden_iframe">

                    <input placeholder="email address" type="text" name="entry.1934033073" style= color:black class="ss-q-short" id="entry_1934033073" dir="auto" aria-label="Email Address  Please enter a valid email address." aria-required="true" required pattern=".*[a-zA-Z0-9_\.\+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-\.]+.*" title="Please enter a valid email address">

                    <input type="submit" name="submit"  value="Sign Up for Early Access!" data-toggle="modal" id="ss-submit" class="btn btn-dark btn-sm">

    </form>

    Find Out More

CHANGE is based on the idea that every little bit helps. Spare change, cent by cent, can build up and help transform the lives of many.

Change gives you the option to round up your credit or debit card purchases so that your extra cents can find a greater purpose. When added up, spare change can make a huge difference.

                Our Services

How It Works

                                Register Your Credit Card

Subscribe to change and register your credit card to get started.

                                Round Up

Every transaction made on the credit card will be rounded up based on your preferences.

                                Contribute to Your Cause

Choose where your spare change goes by selecting a non-profit you care deeply about.

                                Change the World

See your spare change add up and make a difference in the world.

Sign Up

Our Team

Our Team

                             Prasanna Deshpande

                            Pratik Sampat

                        Chetan Munegowda

                    Francisco Alvarez Rincon

                Contact Us

CHANGE Headquarters

Illinois Institute of Technology
Chicago, IL 60616

 (312)927-4219

  changebta@gmail.com

Copyright © CHANGE 2015

        <button type="button" class="close" data-dismiss="modal">×</button>

Success!

Your email has been submitted! Thank you for your interest.

        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>


text:
interface EventInterface {
    [key: string]: any;
}

interface EventHandlerInterface {
    (sender: any, event?: Event|EventInterface, params?: EventParamsInterface): void;
}

interface EventParamsInterface extends AnyObjectInterface {}


text:
import json
import visa
from SimpleWebSocketServer import WebSocket, SimpleWebSocketServer
class VisaHandler(WebSocket):
	instruments = dict()
	def handleMessage(self):
		if self.data is None:
			self.data = ''
		else:
			self.decoded_msg = json.loads(str(self.data))
			if self.decoded_msg["action"] == "connect":
				# Create instrument instance
				self.instruments[self.decoded_msg["addr"]] = visa.instrument(self.decoded_msg["addr"], term_chars = self.decoded_msg["term_chars"], timeout = int(self.decoded_msg["timeout"]) )
				print "Connected to instrument at address " + self.decoded_msg["addr"]
			elif self.decoded_msg["action"] == "write":
				# Write to instrument
				self.instruments[self.decoded_msg["addr"]].write(self.decoded_msg["cmd"])
				print "Writing to instrument " + self.decoded_msg["addr"] + ", command: " + self.decoded_msg["cmd"]
			elif self.decoded_msg["action"] == "read":
				# Read from instrument
				print "Reading from instrument " + self.decoded_msg["addr"]
				read = self.instruments[self.decoded_msg["addr"]].read()
				print read
				msg = {'key': self.decoded_msg["key"], 'read': read}
				# Send data to client
				self.sendMessage(json.dumps(msg))
			else:
				print "None"
	def handleConnected(self):
		print self.address, 'connected'
	def handleClose(self):
		print self.address, 'closed'
server = SimpleWebSocketServer('', 8000, VisaHandler)
server.serveforever()


text:
/* reduce(func, index, array)
 *
 * This method applies a function against an accumulator and each value of the array
 * (from left-to-right) to reduce it to a single value.
 *
 * @param func - function
 *      Function to execute on each value in the array, taking four arguments:
 *          function(previousValue, value)
 *          Example (ES2015):
 *            const func = (a, b) => a + b
 *
 * @param index
 *      The index of the current element being processed in the array.
 *
 * @param array - Array
 *      The array reduce was called upon.
 *
 * Example:
 *
 * const sum = (a, b) => a + b
 * const array = [1,2,3,4,5]
 * const result = reduce(sum, 0, array)
 * => result = 15
 *
 */

export const reduce = (func, index, array) => {
  // Transform array to iterator es2015
  const iterator = array[Symbol.iterator]()

  // Recursive function
  const go = (acc, iterable) => {
    const {value, done} = iterable.next()
    return done ? acc : go(func(acc, value), iterable)
  }

  // Call recursive function
  return go(index, iterator)
}


text:
package org.socialsignin.spring.data.dynamodb.repository.support;

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBRangeKey;
import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;
import org.springframework.util.ReflectionUtils.FieldCallback;
import org.springframework.util.ReflectionUtils.MethodCallback;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

/**
 * @author Michael Lavelle
 * @author Sebastian Just
 */
public class DynamoDBHashAndRangeKeyMethodExtractorImpl<T> implements DynamoDBHashAndRangeKeyMethodExtractor<T> {

	private final Class<T> idType;
	private Method hashKeyMethod;
	private Method rangeKeyMethod;

	private Field hashKeyField;
	private Field rangeKeyField;

	/**
	 * Creates a new {@link DynamoDBHashAndRangeKeyMethodExtractor} for the given
	 * domain type.
	 *
	 * @param idType
	 *            must not be {@literal null}.
	 */
	public DynamoDBHashAndRangeKeyMethodExtractorImpl(final Class<T> idType) {

		Assert.notNull(idType, "Id type must not be null!");
		this.idType = idType;
		ReflectionUtils.doWithMethods(idType, new MethodCallback() {
			@Override
			public void doWith(Method method) {
				if (method.getAnnotation(DynamoDBHashKey.class) != null) {
					Assert.isNull(hashKeyMethod,
							"Multiple methods annotated by @DynamoDBHashKey within type " + idType.getName() + "!");
					ReflectionUtils.makeAccessible(method);
					hashKeyMethod = method;
				}
			}
		});
		ReflectionUtils.doWithFields(idType, new FieldCallback() {
			@Override
			public void doWith(Field field) {
				if (field.getAnnotation(DynamoDBHashKey.class) != null) {
					Assert.isNull(hashKeyField,
							"Multiple fields annotated by @DynamoDBHashKey within type " + idType.getName() + "!");
					ReflectionUtils.makeAccessible(field);

					hashKeyField = field;
				}
			}
		});
		ReflectionUtils.doWithMethods(idType, new MethodCallback() {
			@Override
			public void doWith(Method method) {
				if (method.getAnnotation(DynamoDBRangeKey.class) != null) {
					Assert.isNull(rangeKeyMethod,
							"Multiple methods annotated by @DynamoDBRangeKey within type " + idType.getName() + "!");
					ReflectionUtils.makeAccessible(method);
					rangeKeyMethod = method;
				}
			}
		});
		ReflectionUtils.doWithFields(idType, new FieldCallback() {
			@Override
			public void doWith(Field field) {
				if (field.getAnnotation(DynamoDBRangeKey.class) != null) {
					Assert.isNull(rangeKeyField,
							"Multiple fields annotated by @DynamoDBRangeKey within type " + idType.getName() + "!");
					ReflectionUtils.makeAccessible(field);
					rangeKeyField = field;
				}
			}
		});
		if (hashKeyMethod == null && hashKeyField == null) {
			throw new IllegalArgumentException(
					"No method or field annotated by @DynamoDBHashKey within type " + idType.getName() + "!");
		}
		if (rangeKeyMethod == null && rangeKeyField == null) {
			throw new IllegalArgumentException(
					"No method or field annotated by @DynamoDBRangeKey within type " + idType.getName() + "!");
		}
		if (hashKeyMethod != null && hashKeyField != null) {
			throw new IllegalArgumentException(
					"Both method and field annotated by @DynamoDBHashKey within type " + idType.getName() + "!");
		}
		if (rangeKeyMethod != null && rangeKeyField != null) {
			throw new IllegalArgumentException(
					"Both method and field annotated by @DynamoDBRangeKey within type " + idType.getName() + "!");
		}
	}

	@Override
	public Class<T> getJavaType() {
		return idType;
	}

	@Override
	public Method getHashKeyMethod() {

		return hashKeyMethod;
	}

	@Override
	public Method getRangeKeyMethod() {
		return rangeKeyMethod;
	}

	@Override
	public Field getHashKeyField() {

		return hashKeyField;
	}

	@Override
	public Field getRangeKeyField() {
		return rangeKeyField;
	}

}


text:
package org.yi.happy.archive.tag;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * A builder for {@link Tag} objects.
 */
public final class TagBuilder {
    private final Map<String, String> map;

    /**
     * Start with blank.
     */
    public TagBuilder() {
        this(null);
    }

    /**
     * Start with a value.
     *
     * @param tag
     *            the initial value.
     */
    public TagBuilder(Tag tag) {
        this.map = new LinkedHashMap<String, String>();

        if (tag == null) {
            return;
        }

        for (String field : tag.getFields()) {
            map.put(field, tag.get(field));
        }
    }

    /**
     * Add a field to the tag being built. If the field is already in the tag it
     * is ignored.
     *
     * @param key
     *            the name of the field.
     * @param value
     *            the value of the field.
     * @return a builder that adds the given field.
     */
    public final TagBuilder add(String key, String value) {
        if (key.contains("=")) {
            throw new IllegalArgumentException();
        }
        if (!map.containsKey(key)) {
            map.put(key, value);
        }
        return this;
    }

    /**
     * Put a field into the tag being built. If the field is already in the tag
     * it is replaced.
     *
     * @param key
     *            the name of the field.
     * @param value
     *            the value of the field.
     * @return a builder that stores the given field.
     */
    public final TagBuilder put(String key, String value) {
        if (key.contains("=")) {
            throw new IllegalArgumentException();
        }
        map.put(key, value);
        return this;
    }

    /**
     * Create the tag.
     *
     * @return the specified tag.
     */
    public final Tag create() {
        return new Tag(map);
    }
}


text:
flume
https://cwiki.apache.org//confluence/display/FLUME/Getting+Started

go book
https://www.gitbook.com/book/yar999/gopl-zh/details
http://gopl-zh.b0.upaiyun.com/ch1/ch1-01.html


text:
<?php

/**
 * @file
 * Contains \Drupal\Core\Database\RowCountException
 */

namespace Drupal\Core\Database;

/**
 * Exception thrown if a SELECT query trying to execute rowCount() on result.
 */
class RowCountException extends \RuntimeException implements DatabaseException {

  public function __construct($message = NULL, $code = 0, \Exception $previous = NULL) {
    if (!isset($message)) {
      $message = "rowCount() is supported for DELETE, INSERT, or UPDATE statements performed with structured query builders only, since they would not be portable across database engines otherwise. If the query builders are not sufficient, set the 'return' option to Database::RETURN_AFFECTED to get the number of affected rows.";
    }
    parent::__construct($message, $code, $previous);
  }

}


text:
SET(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/rodrigopex/Teaching/p1/2014.1/code/aula_cmake")
SET(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/rodrigopex/Teaching/p1/2014.1/code/aula_cmake/build")

# Force unix paths in dependencies.
SET(CMAKE_FORCE_UNIX_PATHS 1)

# The C and CXX include file regular expressions for this directory.
SET(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
SET(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
SET(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
SET(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})