text:
#pragma once
#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
#include <aws/servicecatalog/ServiceCatalogRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/servicecatalog/model/ProvisioningArtifactGuidance.h>
#include <utility>

namespace Aws
{
namespace ServiceCatalog
{
namespace Model
{

  /**
   */
  class AWS_SERVICECATALOG_API UpdateProvisioningArtifactRequest : public ServiceCatalogRequest
  {
  public:
    UpdateProvisioningArtifactRequest();

    // Service request name is the Operation name which will send this request out,
    // each operation should has unique request name, so that we can get operation's name from this request.
    // Note: this is not true for response, multiple operations may have the same response name,
    // so we can not get operation's name from response.
    inline virtual const char* GetServiceRequestName() const override { return "UpdateProvisioningArtifact"; }

    Aws::String SerializePayload() const override;

    Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

    /**
     *
The language code.

 en - English (default)

     *

 jp - Japanese

 zh -
     * Chinese

     */
    inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }

    /**
     *
The language code.

 en - English (default)

     *

 jp - Japanese

 zh -
     * Chinese

     */
    inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }

    /**
     *
The language code.

 en - English (default)

     *

 jp - Japanese

 zh -
     * Chinese

     */
    inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }

    /**
     *
The language code.

 en - English (default)

     *

 jp - Japanese

 zh -
     * Chinese

     */
    inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }

    /**
     *
The language code.

 en - English (default)

     *

 jp - Japanese

 zh -
     * Chinese

     */
    inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }

    /**
     *
The language code.

 en - English (default)

     *

 jp - Japanese

 zh -
     * Chinese

     */
    inline UpdateProvisioningArtifactRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}

    /**
     *
The language code.

 en - English (default)

     *

 jp - Japanese

 zh -
     * Chinese

     */
    inline UpdateProvisioningArtifactRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}

    /**
     *
The language code.

 en - English (default)

     *

 jp - Japanese

 zh -
     * Chinese

     */
    inline UpdateProvisioningArtifactRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}

    /**
     *
The product identifier.

     */
    inline const Aws::String& GetProductId() const{ return m_productId; }

    /**
     *
The product identifier.

     */
    inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }

    /**
     *
The product identifier.

     */
    inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; }

    /**
     *
The product identifier.

     */
    inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); }

    /**
     *
The product identifier.

     */
    inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); }

    /**
     *
The product identifier.

     */
    inline UpdateProvisioningArtifactRequest& WithProductId(const Aws::String& value) { SetProductId(value); return *this;}

    /**
     *
The product identifier.

     */
    inline UpdateProvisioningArtifactRequest& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;}

    /**
     *
The product identifier.

     */
    inline UpdateProvisioningArtifactRequest& WithProductId(const char* value) { SetProductId(value); return *this;}

    /**
     *
The identifier of the provisioning artifact.

     */
    inline const Aws::String& GetProvisioningArtifactId() const{ return m_provisioningArtifactId; }

    /**
     *
The identifier of the provisioning artifact.

     */
    inline bool ProvisioningArtifactIdHasBeenSet() const { return m_provisioningArtifactIdHasBeenSet; }

    /**
     *
The identifier of the provisioning artifact.

     */
    inline void SetProvisioningArtifactId(const Aws::String& value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId = value; }

    /**
     *
The identifier of the provisioning artifact.

     */
    inline void SetProvisioningArtifactId(Aws::String&& value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId = std::move(value); }

    /**
     *
The identifier of the provisioning artifact.

     */
    inline void SetProvisioningArtifactId(const char* value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId.assign(value); }

    /**
     *
The identifier of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithProvisioningArtifactId(const Aws::String& value) { SetProvisioningArtifactId(value); return *this;}

    /**
     *
The identifier of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithProvisioningArtifactId(Aws::String&& value) { SetProvisioningArtifactId(std::move(value)); return *this;}

    /**
     *
The identifier of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithProvisioningArtifactId(const char* value) { SetProvisioningArtifactId(value); return *this;}

    /**
     *
The updated name of the provisioning artifact.

     */
    inline const Aws::String& GetName() const{ return m_name; }

    /**
     *
The updated name of the provisioning artifact.

     */
    inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }

    /**
     *
The updated name of the provisioning artifact.

     */
    inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }

    /**
     *
The updated name of the provisioning artifact.

     */
    inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }

    /**
     *
The updated name of the provisioning artifact.

     */
    inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }

    /**
     *
The updated name of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithName(const Aws::String& value) { SetName(value); return *this;}

    /**
     *
The updated name of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}

    /**
     *
The updated name of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithName(const char* value) { SetName(value); return *this;}

    /**
     *
The updated description of the provisioning artifact.

     */
    inline const Aws::String& GetDescription() const{ return m_description; }

    /**
     *
The updated description of the provisioning artifact.

     */
    inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }

    /**
     *
The updated description of the provisioning artifact.

     */
    inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }

    /**
     *
The updated description of the provisioning artifact.

     */
    inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }

    /**
     *
The updated description of the provisioning artifact.

     */
    inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }

    /**
     *
The updated description of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}

    /**
     *
The updated description of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}

    /**
     *
The updated description of the provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithDescription(const char* value) { SetDescription(value); return *this;}

    /**
     *
Indicates whether the product version is active.

Inactive provisioning
     * artifacts are invisible to end users. End users cannot launch or update a
     * provisioned product from an inactive provisioning artifact.

     */
    inline bool GetActive() const{ return m_active; }

    /**
     *
Indicates whether the product version is active.

Inactive provisioning
     * artifacts are invisible to end users. End users cannot launch or update a
     * provisioned product from an inactive provisioning artifact.

     */
    inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }

    /**
     *
Indicates whether the product version is active.

Inactive provisioning
     * artifacts are invisible to end users. End users cannot launch or update a
     * provisioned product from an inactive provisioning artifact.

     */
    inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }

    /**
     *
Indicates whether the product version is active.

Inactive provisioning
     * artifacts are invisible to end users. End users cannot launch or update a
     * provisioned product from an inactive provisioning artifact.

     */
    inline UpdateProvisioningArtifactRequest& WithActive(bool value) { SetActive(value); return *this;}

    /**
     *
Information set by the administrator to provide guidance to end users about
     * which provisioning artifacts to use.

The DEFAULT value
     * indicates that the product version is active.

The administrator can set
     * the guidance to DEPRECATED to inform users that the product version
     * is deprecated. Users are able to make updates to a provisioned product of a
     * deprecated version but cannot launch new provisioned products using a deprecated
     * version.

     */
    inline const ProvisioningArtifactGuidance& GetGuidance() const{ return m_guidance; }

    /**
     *
Information set by the administrator to provide guidance to end users about
     * which provisioning artifacts to use.

The DEFAULT value
     * indicates that the product version is active.

The administrator can set
     * the guidance to DEPRECATED to inform users that the product version
     * is deprecated. Users are able to make updates to a provisioned product of a
     * deprecated version but cannot launch new provisioned products using a deprecated
     * version.

     */
    inline bool GuidanceHasBeenSet() const { return m_guidanceHasBeenSet; }

    /**
     *
Information set by the administrator to provide guidance to end users about
     * which provisioning artifacts to use.

The DEFAULT value
     * indicates that the product version is active.

The administrator can set
     * the guidance to DEPRECATED to inform users that the product version
     * is deprecated. Users are able to make updates to a provisioned product of a
     * deprecated version but cannot launch new provisioned products using a deprecated
     * version.

     */
    inline void SetGuidance(const ProvisioningArtifactGuidance& value) { m_guidanceHasBeenSet = true; m_guidance = value; }

    /**
     *
Information set by the administrator to provide guidance to end users about
     * which provisioning artifacts to use.

The DEFAULT value
     * indicates that the product version is active.

The administrator can set
     * the guidance to DEPRECATED to inform users that the product version
     * is deprecated. Users are able to make updates to a provisioned product of a
     * deprecated version but cannot launch new provisioned products using a deprecated
     * version.

     */
    inline void SetGuidance(ProvisioningArtifactGuidance&& value) { m_guidanceHasBeenSet = true; m_guidance = std::move(value); }

    /**
     *
Information set by the administrator to provide guidance to end users about
     * which provisioning artifacts to use.

The DEFAULT value
     * indicates that the product version is active.

The administrator can set
     * the guidance to DEPRECATED to inform users that the product version
     * is deprecated. Users are able to make updates to a provisioned product of a
     * deprecated version but cannot launch new provisioned products using a deprecated
     * version.

     */
    inline UpdateProvisioningArtifactRequest& WithGuidance(const ProvisioningArtifactGuidance& value) { SetGuidance(value); return *this;}

    /**
     *
Information set by the administrator to provide guidance to end users about
     * which provisioning artifacts to use.

The DEFAULT value
     * indicates that the product version is active.

The administrator can set
     * the guidance to DEPRECATED to inform users that the product version
     * is deprecated. Users are able to make updates to a provisioned product of a
     * deprecated version but cannot launch new provisioned products using a deprecated
     * version.

     */
    inline UpdateProvisioningArtifactRequest& WithGuidance(ProvisioningArtifactGuidance&& value) { SetGuidance(std::move(value)); return *this;}

  private:

    Aws::String m_acceptLanguage;
    bool m_acceptLanguageHasBeenSet = false;

    Aws::String m_productId;
    bool m_productIdHasBeenSet = false;

    Aws::String m_provisioningArtifactId;
    bool m_provisioningArtifactIdHasBeenSet = false;

    Aws::String m_name;
    bool m_nameHasBeenSet = false;

    Aws::String m_description;
    bool m_descriptionHasBeenSet = false;

    bool m_active;
    bool m_activeHasBeenSet = false;

    ProvisioningArtifactGuidance m_guidance;
    bool m_guidanceHasBeenSet = false;
  };

} // namespace Model
} // namespace ServiceCatalog
} // namespace Aws


text:
package org.team619.crossout.program.supplier;

import org.team619.crossout.program.data.Calculations;
import org.team619.crossout.program.data.Context;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.security.SecureRandom;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import static org.team619.crossout.program.calculator.ScreenCalculator.accuratePercent;

public class GeneratedSupplier implements Supplier {

    private static final Font arial = new Font("Arial", Font.BOLD, 10);
    private static final Font roboto = new Font("Tahoma", Font.PLAIN, 10);
    private static final Color backgroundColor = new Color(173, 216, 230);
    private static final Color whiteBackgroundColor = new Color(255, 255, 255);
    private static final Color redBorderColor = new Color(229, 0, 0);
    private static final Color blueBorderColor = new Color(0, 120, 171);
    private static final Color greenBorderColor = new Color(0, 189, 0);
    private static final Color widthColor = new Color(128, 164, 237);
    private static final Color heightColor = new Color(148, 156, 108);
    private static final Color alternativeWidthColor = new Color(204, 132, 126);
    private static final Color alternativeHeightColor = new Color(117, 180, 172);
    private static final Color textColor = new Color(241, 110, 135);
    private static final Color rectangleColor = new Color(239, 131, 84);

    private static final BasicStroke bigStroke = new BasicStroke(4.5f);
    private static final BasicStroke middleStroke = new BasicStroke(3.0f);
    private static final BasicStroke smallStroke = new BasicStroke(1.5f);
    private static final Stroke dashedStroke = new BasicStroke(4.0f, BasicStroke.CAP_ROUND,
            BasicStroke.JOIN_ROUND, 0, new float[]{9}, 0);
    private Calculations calculations;

    @Override
    public void config(Context context) {
        calculations = context.getCalculations();
    }

    @Override
    public BufferedImage takeScreenShot() {
        int screenSizeHeight = calculations.getScreenHeight();
        int screenSizeWidth = calculations.getScreenWidth();
        double bigStepX = accuratePercent(screenSizeWidth, 50);
        double bigStepY = accuratePercent(screenSizeHeight, 50);
        double headIndexX = accuratePercent(screenSizeWidth, 18.75);
        double headIndexY = accuratePercent(screenSizeHeight, 18.75);
        double middleStepX = accuratePercent(screenSizeWidth, 25);
        double middleStepY = accuratePercent(screenSizeHeight, 25);
        double smallStepX = accuratePercent(screenSizeWidth, 12.5);
        double smallStepY = accuratePercent(screenSizeHeight, 12.5);
        int centerX = Math.round(screenSizeWidth / 2.0f);
        int centerY = Math.round(screenSizeHeight / 2.0f);

        BufferedImage image = new BufferedImage(screenSizeWidth, screenSizeHeight, BufferedImage.TYPE_INT_ARGB);
        Graphics2D graphics = image.createGraphics();

        graphics.setPaint(whiteBackgroundColor);
        graphics.fillRect(0, 0, screenSizeWidth, screenSizeHeight);
//        graphics.setFont(arial);
        graphics.setFont(roboto);

        drawTable(screenSizeWidth, screenSizeHeight, smallStepX, smallStepY, graphics, greenBorderColor, smallStroke);
        drawTable(screenSizeWidth, screenSizeHeight, middleStepX, middleStepY, graphics, blueBorderColor, middleStroke);
        drawTable(screenSizeWidth, screenSizeHeight, bigStepX, bigStepY, graphics, redBorderColor, bigStroke);

        drawText(screenSizeWidth, screenSizeHeight, smallStepX, smallStepY, graphics);

        cleanCenter(headIndexX, headIndexY, middleStepX, middleStepY, smallStepX, smallStepY, centerX, centerY, graphics);
        drawDash(headIndexX, headIndexY, middleStepX, middleStepY, smallStepX, smallStepY, centerX, centerY, graphics);
        graphics.fillOval(centerX - 10, centerY - 10, 20, 20);

        return image;
    }

    private void drawCross(double headIndexX, double headIndexY, int centerX, int centerY, Graphics2D graphics) {
        int y = (int) Math.round(headIndexY);
        int x = (int) Math.round(headIndexX);
        graphics.drawLine(centerX, centerY - y, centerX, centerY + y);
        graphics.drawLine(centerX - x, centerY, centerX + x, centerY);
        graphics.drawLine(centerX - x, centerY - y, centerX + x, centerY + y);
        graphics.drawLine(centerX - x, centerY + y, centerX + x, centerY - y);
    }

    private void drawDash(double headIndexX, double headIndexY, double middleStepX, double middleStepY, double smallStepX, double smallStepY, int centerX, int centerY, Graphics2D graphics) {
        drawTarget(centerX, centerY, graphics, dashedStroke, rectangleColor, smallStepX, smallStepY);
        drawTarget(centerX, centerY, graphics, dashedStroke, rectangleColor, middleStepX, middleStepY);
        drawTarget(centerX, centerY, graphics, dashedStroke, rectangleColor, headIndexX, headIndexY);

        drawCross(headIndexX, headIndexY, centerX, centerY, graphics);
    }

    private void cleanCenter(double headIndexX, double headIndexY, double middleStepX, double middleStepY, double smallStepX, double smallStepY, int centerX, int centerY, Graphics2D graphics) {
        drawTarget(centerX, centerY, graphics, smallStroke, whiteBackgroundColor, smallStepX, smallStepY);
        drawTarget(centerX, centerY, graphics, middleStroke, whiteBackgroundColor, middleStepX, middleStepY);
        drawTarget(centerX, centerY, graphics, bigStroke, whiteBackgroundColor, headIndexX, headIndexY);

        drawCross(headIndexX, headIndexY, centerX, centerY, graphics);
    }

    private void drawTarget(int centerX, int centerY, Graphics2D graphics, Stroke stroke, Color color, double indexX, double indexY) {
        graphics.setStroke(stroke);
        graphics.setColor(color);
        int x = (int) Math.round(centerX - indexX);
        int y = (int) Math.round(centerY - indexY);
        int x2 = (int) Math.round(indexX * 2);
        int y2 = (int) Math.round(indexY * 2);
        graphics.drawRect(x, y, x2, y2);
    }

    private void drawText(int screenWidth, int screenHeight, double stepX, double stepY, Graphics2D graphics) {
        AtomicInteger rowCounter = new AtomicInteger();
        AtomicInteger columnCounter = new AtomicInteger(0);

        for (double indexX = 0; indexX < screenWidth; indexX = indexX + stepX) {
            columnCounter.incrementAndGet();
            for (double indexY = 0; indexY < screenHeight; indexY = indexY + stepY) {
                rowCounter.incrementAndGet();
                boolean odd = columnCounter.get() % 2 == 0 && rowCounter.get() % 2 == 0;
                boolean even = columnCounter.get() % 2 == 1 && rowCounter.get() % 2 == 1;
                boolean xorOdd = columnCounter.get() % 2 == 0 && rowCounter.get() % 2 == 1;
                boolean xorEven = columnCounter.get() % 2 == 1 && rowCounter.get() % 2 == 0;
                String text = "";
                int x = (int) Math.round(indexX);
                int y = (int) Math.round(indexY);

//                if (odd || even) {
                String yCoordinate = "" + Math.round(y + stepY);
                String xCoordinate = "" + x;
                int yTextLength = yCoordinate.length() + 1;
                int xTextLength = xCoordinate.length() + 1;
                int oddY = (int) ((stepY + y) - 6);
                int evenY = (y) + 20;
                int oddX = (int) ((x - stepX) + 10);
                int evenX = x - Math.round(xTextLength * 6f);

                graphics.setColor(odd || xorEven ? widthColor : alternativeWidthColor);
                graphics.drawString("x" + xCoordinate, evenX, oddY - 10);

                graphics.setColor(odd || xorEven ? heightColor : alternativeHeightColor);
                graphics.drawString("y" + yCoordinate, evenX, oddY);
//                }
                /*else if (!xorOdd || !xorEven) {
                    int xText = Math.abs((screenWidth / 2) - x);
                    int yText = Math.abs((screenHeight / 2) - y);
                    text = "x" + xText + "/" + "y" + yText;

                    graphics.setColor(textColor);
                    int textX = x + (stepX / 2) - (int) ((text.length() / 2) * 9.7);
                    int textY = y - (stepY / 2) + 5;
                    graphics.drawString(text, textX, textY);
                }*/
            }
        }
    }

    private void drawTable(int screenWidth, int screenHeight, double stepX, double stepY,
                           Graphics2D graphics, Color color, BasicStroke stroke) {
        graphics.setStroke(stroke);
        graphics.setColor(color);
        for (double indexX = 0; indexX < screenWidth; indexX = indexX + stepX) {
            for (double indexY = 0; indexY < screenHeight; indexY = indexY + stepY) {
                int x = (int) Math.round(indexX);
                int y = (int) Math.round(indexY);
                int x2 = (int) Math.round(screenWidth - indexX);
                int y2 = (int) Math.round(screenHeight - indexY);
                graphics.drawRect(x, y, x2, y2);
            }
        }
    }

    private String randomString(int length) {
        String characterSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        return IntStream.range(0, length)
                .map(i -> new SecureRandom().nextInt(characterSet.length()))
                .mapToObj(randomInt -> characterSet.substring(randomInt, randomInt + 1))
                .collect(Collectors.joining());
    }

}

redpajama_set_name: RedPajamaGithub


text:
package com.thoughtworks.go.domain;

import java.util.List;

import com.thoughtworks.go.config.CaseInsensitiveString;
import com.thoughtworks.go.domain.materials.Material;
import com.thoughtworks.go.domain.materials.Modification;
import com.thoughtworks.go.domain.materials.Modifications;
import com.thoughtworks.go.config.materials.dependency.DependencyMaterial;

/**
 * @understands pipeline instance's reference to modifications
 */
public class PipelineMaterialRevision extends PersistentObject {
    private String name;
    private String folder;
    private long pipelineId;
    private Modification fromRevision;
    private Modification toRevision;
    private boolean changed;
    private Long materialId;
    private Long actualFromRevisionId;

    protected PipelineMaterialRevision() {}

    public PipelineMaterialRevision(long pipelineId, MaterialRevision revision, Long actualFromModificationId) {
        this(CaseInsensitiveString.str(revision.getMaterial().getName()), revision.getMaterial().getFolder(), pipelineId, revision.getOldestModification(), revision.getLatestModification(), revision.isChanged(), actualFromModificationId);
        recomputeFromModification(revision.getMaterial());
    }

    private PipelineMaterialRevision(String name, String folder, long pipelineId, Modification from, Modification to, boolean changed, Long actualFromModificationId) {
        this();
        this.pipelineId = pipelineId;
        this.fromRevision = from;
        this.toRevision = to;
        this.name = name;
        this.folder = folder;
        this.changed = changed;
        this.actualFromRevisionId = actualFromModificationId;
        this.materialId = to.getMaterialInstance().getId();
    }

    private void recomputeFromModification(Material material) {
        if (material instanceof DependencyMaterial) {
            this.fromRevision = this.toRevision;
        }
    }

    public Material getMaterial() {
        return toRevision.getMaterialInstance().toOldMaterial(name, folder, null);
    }

    public MaterialInstance getMaterialInstance() {
        return toRevision.getMaterialInstance();
    }

    public List<Modification> getModifications() {
        return new Modifications(fromRevision, toRevision);
    }

    public Modification getFromModification() {
        return fromRevision;
    }

    public Modification getToModification() {
        return toRevision;
    }

    public String getMaterialName() {
        return name;
    }

    public String getFolder() {
        return folder;
    }

    public Long getMaterialId() {
        return materialId;
    }

    public long getPipelineId() {
        return pipelineId;
    }

    public void useMaterialRevision(MaterialRevision materialRevision) {
        setFromModification(materialRevision.getOldestModification());
        setToModification(materialRevision.getLatestModification());
        recomputeFromModification(materialRevision.getMaterial());
    }

    private void setFromModification(Modification modification) {
        this.fromRevision = modification;
    }

    private void setToModification(Modification modification) {
        this.toRevision = modification;
    }

    public boolean getChanged() {
        return changed;
    }

    public Long getActualFromRevisionId() {
        return actualFromRevisionId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        PipelineMaterialRevision that = (PipelineMaterialRevision) o;

        if (changed != that.changed) {
            return false;
        }
        if (pipelineId != that.pipelineId) {
            return false;
        }
        if (actualFromRevisionId != null ? !actualFromRevisionId.equals(that.actualFromRevisionId) : that.actualFromRevisionId != null) {
            return false;
        }
        if (folder != null ? !folder.equals(that.folder) : that.folder != null) {
            return false;
        }
        if (fromRevision != null ? !fromRevision.equals(that.fromRevision) : that.fromRevision != null) {
            return false;
        }
        if (materialId != null ? !materialId.equals(that.materialId) : that.materialId != null) {
            return false;
        }
        if (name != null ? !name.equals(that.name) : that.name != null) {
            return false;
        }
        if (toRevision != null ? !toRevision.equals(that.toRevision) : that.toRevision != null) {
            return false;
        }

        return true;
    }

    @Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + (folder != null ? folder.hashCode() : 0);
        result = 31 * result + (int) (pipelineId ^ (pipelineId >>> 32));
        result = 31 * result + (fromRevision != null ? fromRevision.hashCode() : 0);
        result = 31 * result + (toRevision != null ? toRevision.hashCode() : 0);
        result = 31 * result + (changed ? 1 : 0);
        result = 31 * result + (materialId != null ? materialId.hashCode() : 0);
        result = 31 * result + (actualFromRevisionId != null ? actualFromRevisionId.hashCode() : 0);
        return result;
    }
}


text:
class AddIssuanceFieldsToProjects < ActiveRecord::Migration
  def change
    add_column :projects, :credit_type, :integer, null: false
    add_column :projects, :minimum_investment, :decimal
    add_column :projects, :rating, :integer
    add_column :projects, :rating_agency, :string
    add_column :projects, :statement_file_url, :string, null: false
    add_column :projects, :tax_exempt_yield, :decimal, null: false, default: 0
    rename_column :projects, :about, :summary
    rename_column :projects, :about_html, :summary_html
    rename_column :projects, :about_textile, :summary_textile
    rename_column :projects, :online_date, :sale_date

    reversible do |dir|
      dir.up do
        drop_dependent_objects

        execute <<-SQL
          CREATE FUNCTION expires_at(projects) RETURNS timestamp with time zone
              LANGUAGE sql
              AS $_$
                   SELECT ((($1.sale_date AT TIME ZONE '#{Configuration[:timezone]}' + ($1.online_days || ' days')::interval)::date::text || ' 23:59:59')::timestamp AT TIME ZONE 'America/Chicago')
                  $_$;
        SQL

        create_dependent_objects
      end

      dir.down do
        drop_dependent_objects

        execute <<-SQL
          CREATE FUNCTION expires_at(projects) RETURNS timestamp with time zone
              LANGUAGE sql
              AS $_$
                   SELECT ((($1.online_date AT TIME ZONE '#{Configuration[:timezone]}' + ($1.online_days || ' days')::interval)::date::text || ' 23:59:59')::timestamp AT TIME ZONE 'America/Chicago')
                  $_$;
        SQL

        create_dependent_objects
      end
    end
  end

  private

  def drop_dependent_objects
    drop_view :projects_for_home
    execute 'DROP FUNCTION expires_at(projects);'
  end

  def create_dependent_objects
    execute <<-SQL
      CREATE VIEW projects_for_home AS WITH featured_projects AS
        (SELECT 'featured'::text AS origin,
                featureds.*
         FROM projects featureds
         WHERE (featureds.featured
                AND ((featureds.state)::text = 'online'::text)) LIMIT 1),
                  recommended_projects AS
        (SELECT 'recommended'::text AS origin,
                recommends.*
         FROM projects recommends
         WHERE (((recommends.recommended
                  AND ((recommends.state)::text = 'online'::text))
                 AND recommends.home_page)
                AND (NOT (recommends.id IN
                            (SELECT featureds.id
                             FROM featured_projects featureds))))
         ORDER BY random() LIMIT 5),
                  expiring_projects AS
        (SELECT 'expiring'::text AS origin,
                expiring.*
         FROM projects expiring
         WHERE (((((expiring.state)::text = 'online'::text)
                  AND (expires_at(expiring.*) <= (now() + '14 days'::interval)))
                 AND expiring.home_page)
                AND (NOT (expiring.id IN
                            (SELECT recommends.id
                             FROM recommended_projects recommends
                             UNION SELECT featureds.id
                             FROM featured_projects featureds))))
         ORDER BY random() LIMIT 4),
                  soon_projects AS
        (SELECT 'soon'::text AS origin,
                soon.*
         FROM projects soon
         WHERE ((((soon.state)::text = 'soon'::text)
                 AND soon.home_page)
                AND (soon.uploaded_image IS NOT NULL))
         ORDER BY random() LIMIT 4),
                  successful_projects AS
        (SELECT 'successful'::text AS origin,
                successful.*
         FROM projects successful
         WHERE (((successful.state)::text = 'successful'::text)
                AND successful.home_page)
         ORDER BY random() LIMIT 4)
         (SELECT * from featured_projects) UNION
         (SELECT * from recommended_projects) UNION
         (SELECT * from expiring_projects) UNION
         (SELECT * from soon_projects) UNION
         (SELECT * from successful_projects)
    SQL
  end
end


text:
package com.github.bernd.samsa;

import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import java.util.SortedMap;

import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;

public class OffsetIndexTest {
    private OffsetIndex idx;

    @BeforeMethod
    public void setUp() throws Exception {
        idx = new OffsetIndex(nonExistantTempFile(), 45L, 30 * 8);
    }

    @AfterMethod
    public void tearDown() throws Exception {
        if (idx != null) {
            idx.getFile().delete();
        }
    }

    @Test
    public void randomLookupTest() throws Exception {
        assertEquals(idx.lookup(92L), new OffsetPosition(idx.getBaseOffset(), 0),
                "Not present value should return physical offset 0.");

        // append some random values
        final int base = ((int) idx.getBaseOffset()) + 1;
        final int size = idx.getMaxEntries();

        final List<Pair<Long, Integer>> vals = Lists.newArrayList();
        final List<Integer> integers1 = monotonicSeq(base, size);
        final List<Integer> integers2 = monotonicSeq(0, size);

        for (int i = 0; i < integers1.size(); i++) {
            vals.add(ImmutablePair.of((long) integers1.get(i), integers2.get(i)));
        }

        for (final Pair<Long, Integer> pair : vals) {
            idx.append(pair.getLeft(), pair.getRight());
        }

        // should be able to find all those values
        for (final Pair<Long, Integer> pair : vals) {
            final Long logical = pair.getLeft();
            final Integer physical = pair.getRight();
            assertEquals(idx.lookup(logical), new OffsetPosition(logical, physical),
                    "Should be able to find values that are present.");
        }

        // for non-present values we should find the offset of the largest value less than or equal to this
        final SortedMap<Long, Pair<Long, Integer>> valMap = Maps.newTreeMap();
        for (final Pair<Long, Integer> pair : vals) {
            valMap.put(pair.getLeft(), pair);
        }

        final List<Integer> offsets = Lists.newArrayList();
        for (long i = idx.getBaseOffset(); i < Iterables.getLast(vals).getLeft(); i++) {
            offsets.add((int) i);
        }

        Collections.shuffle(offsets);
        for (final int offset : offsets.subList(0, 30)) {
            OffsetPosition rightAnswer;

            if (offset < valMap.firstKey()) {
                rightAnswer = new OffsetPosition(idx.getBaseOffset(), 0);
            } else {
                // This was: new OffsetPosition(valMap.to(offset).last._1, valMap.to(offset).last._2._2);
                rightAnswer = new OffsetPosition(valMap.headMap((long) offset + 1).lastKey(),
                        Iterables.getLast(valMap.headMap((long) offset + 1).values()).getRight());
            }

            assertEquals(idx.lookup(offset), rightAnswer, "The index should give the same answer as the sorted map");
        }
    }

    @Test
    public void lookupExtremeCases() throws Exception {
        assertEquals(idx.lookup(idx.getBaseOffset()), new OffsetPosition(idx.getBaseOffset(), 0), "Lookup on empty file");
        for (int i = 0; i < idx.getMaxEntries(); i++) {
            idx.append(idx.getBaseOffset() + i + 1, i);
        }
        // check first and last entry
        assertEquals(idx.lookup(idx.getBaseOffset()), new OffsetPosition(idx.getBaseOffset(), 0));
        assertEquals(idx.lookup(idx.getBaseOffset() + idx.getMaxEntries()),
                new OffsetPosition(idx.getBaseOffset() + idx.getMaxEntries(), idx.getMaxEntries() - 1));
    }

    @Test
    public void appendTooMany() throws Exception {
        for (int i = 0; i < idx.getMaxEntries(); i++) {
            final long offset = idx.getBaseOffset() + i + 1;
            idx.append(offset, i);
        }
        assertWriteFails("Append should fail on a full index", idx, idx.getMaxEntries() + 1, IllegalArgumentException.class);
    }

    @Test(expectedExceptions = InvalidOffsetException.class)
    public void appendOutOfOrder() throws Exception {
        idx.append(51, 0);
        idx.append(50, 1);
    }

    @Test
    public void testReopen() throws Exception {
        final OffsetPosition first = new OffsetPosition(51, 0);
        final OffsetPosition sec = new OffsetPosition(52, 1);
        idx.append(first.getOffset(), first.getPosition());
        idx.append(sec.getOffset(), sec.getPosition());
        idx.close();
        final OffsetIndex idxRo = new OffsetIndex(idx.getFile(), idx.getBaseOffset());
        assertEquals(idxRo.lookup(first.getOffset()), first);
        assertEquals(idxRo.lookup(sec.getOffset()), sec);
        assertEquals(idxRo.getLastOffset(), sec.getOffset());
        assertEquals(idxRo.entries(), 2);
        assertWriteFails("Append should fail on read-only index", idxRo, 53, IllegalArgumentException.class);
    }

    @Test
    public void truncate() throws Exception {
        final OffsetIndex idx = new OffsetIndex(nonExistantTempFile(), 0L, 10 * 8);
        idx.truncate();
        for (int i = 1; i < 10; i++) {
            idx.append(i, i);
        }

        // now check the last offset after various truncate points and validate that we can still append to the index.
        idx.truncateTo(12);
        assertEquals(idx.lookup(10), new OffsetPosition(9, 9), "Index should be unchanged by truncate past the end");
        assertEquals(idx.getLastOffset(), 9, "9 should be the last entry in the index");

        idx.append(10, 10);
        idx.truncateTo(10);
        assertEquals(idx.lookup(10), new OffsetPosition(9, 9), "Index should be unchanged by truncate at the end");
        assertEquals(idx.getLastOffset(), 9, "9 should be the last entry in the index");
        idx.append(10, 10);

        idx.truncateTo(9);
        assertEquals(idx.lookup(10), new OffsetPosition(8, 8), "Index should truncate off last entry");
        assertEquals(idx.getLastOffset(), 8, "8 should be the last entry in the index");
        idx.append(9, 9);

        idx.truncateTo(5);
        assertEquals(idx.lookup(10), new OffsetPosition(4, 4), "4 should be the last entry in the index");
        assertEquals(idx.getLastOffset(), 4, "4 should be the last entry in the index");
        idx.append(5, 5);

        idx.truncate();
        assertEquals(idx.entries(), 0, "Full truncation should leave no entries");
        idx.append(0, 0);
    }

    public <T> void assertWriteFails(final String message, final OffsetIndex idx, final int offset, T klass) {
        try {
            idx.append(offset, 1);
            assertTrue(false, message);
        } catch (Throwable e) {
            assertEquals(e.getClass(), klass, "Got an unexpected exception.");
        }
    }

    private List<Integer> monotonicSeq(final int base, final int len) {
        final Random rand = new Random(1L);
        final List<Integer> vals = Lists.newArrayList();
        int last = base;
        for (int i = 0; i < len; i++) {
            last += rand.nextInt(15) + 1;
            vals.add(last);
        }
        return vals;
    }

    private File nonExistantTempFile() throws IOException {
        final File file = TestUtils.tempFile();
        file.delete();
        return file;
    }
}


text:
if (!ORYX.Plugins)
    ORYX.Plugins = new Object();

ORYX.Plugins.QueryResultHighlighter = ORYX.Plugins.AbstractPlugin.extend({

	facade: undefined,

	isHighlighted: false,

	construct: function(facade){

		this.facade = facade;

		this.raisedEventIds = [];
		this.raisedHighlightEventIds = [];

		this.facade.offer({
			'name': "Query result highlighter",
			'functionality': this.buttonClick.bind(this),
			'group': ORYX.I18N.QueryEvaluator.group,
			'icon': ORYX.PATH + "images/xforms_export.png",
			'description': "This plugin highlights model parts which were matched by a query.",
			'index': 1,
			'toggle': true,
			'minShape': 0,
			'maxShape': 0,
			'isEnabled': 	 this._isQueryResultThere.bind(this)
		});

		this.facade.registerOnEvent(ORYX.CONFIG.EVENT_LOADED, this.highlightMatches.bind(this));

	},
	_isQueryResultThere: function(){
		var parameters = window.location.search;
		var PARAMKEY = "matches=";

		var paramStart = parameters.indexOf(PARAMKEY) + PARAMKEY.length;
		return (paramStart > PARAMKEY.length);

	},

	highlightMatches : function() {
		var elements = this.deserializeMatches();

		if (!elements) {
			return;
		}
		var maaatch=null;
		var diagnosis=null;
		var description = this.deserializeDescription();

		if (description)
		{
			description.each(function (item) {
				if (item.match)
				{
					maaatch = item.match;
				}
				if (item.diagnosis)
				{
					diagnosis = item.diagnosis;
				}
			})

		}
		else
		{
			maaatch = "pattern";
			diagnosis = "";
		}
		var color = "orange";
		var colorHex = "#FFFF00";
        if (diagnosis === "complies"){
        	color = "green";
        	colorHex = "#00FF00";
        }
        else if (diagnosis === "violation scenario")
        {
        	color = "red";
        	colorHex = "#FF0000";
        }
        else // either this is a does not comply or an ordinary query
        {
        	color = "orange";
        	colorHex = "#FF6600";
        }
		try {
			elements.each(function (item) {
				if (item.nodeType != null && item.nodeId != null) {
					var shape = this.getShapeById(item.nodeId);
				} else if (item.edgeType != null) {
					var shape = this.getEdgeByFromAndTo(item.from, item.to)
				} else return; // unknown element type

				if (!shape) return;

				//this.highlightSelectedTask(shape);
				// Commented by Ahmed Awad 30.07.09
				//this.raiseOverlay(shape,color,colorHex, "Moeep! Error when raising an overlay.");
				// Added by Ahmed Awad
				if (shape instanceof ORYX.Core.Node)
                {
        	       shape.setProperty("oryx-bgcolor",colorHex);
        	       shape.refresh();
                }
			}.bind(this));
		} catch (e) {
			Ext.MessageBox.alert(ORYX.I18N.Oryx.title, "Something went wrong while applying highlighting to shapes: " + e);
		}

		this.isHighlighted = true;
		//Ext.MessageBox.alert(ORYX.I18N.Oryx.title, "Finished highlighting!");
	},

	raiseOverlay: function(shape,color,colorHex, errorMsg){
        var id = "queryhighlighter." + this.raisedEventIds.length;
        // Added by Ahmed Awad to change the color of the matched node
        if (shape instanceof ORYX.Core.Node)
        {
        	shape.setProperty("oryx-bgcolor",colorHex);
        	shape.refresh();
        }

//
        var cross = ORYX.Editor.graft("http://www.w3.org/2000/svg", null, ['path', {
            	"title": errorMsg,
            	"stroke-width": 5.0,
            	"stroke": color,
            	"d": "M20,-5 L5,-20 M5,-5 L20,-20",
            	"line-captions": "round"
        	}]);
        this.facade.raiseEvent({
            type: ORYX.CONFIG.EVENT_OVERLAY_SHOW,
            id: id,
            shapes: [shape],
            node: cross,
            nodePosition: shape instanceof ORYX.Core.Edge ? "START" : "NW"
        });

        this.raisedEventIds.push(id);

        return cross;
    },

	removeHighlighting: function(shape, errorMsg){
        this.raisedEventIds.each(function(id) {
	        this.facade.raiseEvent({
	            type: ORYX.CONFIG.EVENT_OVERLAY_HIDE,
	            id: id
	        });
		}.bind(this));

		this.raisedEventIds = [];

		this.raisedHighlightEventIds.each(function(id) {
	        this.facade.raiseEvent({
	            type: ORYX.CONFIG.EVENT_HIGHLIGHT_HIDE,
	            id: id
	        });
		}.bind(this));

		this.raisedHighlightEventIds = [];
    },

	highlightSelectedTask: function(shape){ //edge marking of selected/ given task
		if(!(shape instanceof ORYX.Core.Shape)) return;
		this.facade.raiseEvent({
			type:			ORYX.CONFIG.EVENT_HIGHLIGHT_SHOW,
			highlightId:	shape.id,
			elements:		[shape],
			color:			'#FF0000'
		});
		this.raisedHighlightEventIds.push(task.id);
	},

	buttonClick: function(button, pressed) {
		if (this.isHighlighted) {
			this.removeHighlighting();
			this.isHighlighted = false;
		} else {
			this.highlightMatches();
			this.isHighlighted = true;
		}

		// skip buttons toggle if both aren't in sync. This is because we can't set the buttons to pressed initially
		if (this.isHighlighted && !pressed) {
			button.toggle();
		}
/*		if ((this.isHighlighted && !pressed)|| (!this.isHighlighted && pressed)) {
			button.toggle();
		}
*/
	},

	/**
	 * returns an object (or array), which was passed in the URL query part
	 * in JSON+URL-encoded form
	 */
	deserializeMatches : function() {
		var parameters = window.location.search;
		var PARAMKEY = "matches=";

		var paramStart = parameters.indexOf(PARAMKEY) + PARAMKEY.length;
		if (paramStart < PARAMKEY.length) {
			return null; // no highlighting info found
		}
		var paramEnd = parameters.indexOf("&", paramStart); // delimiter from potential other parameters

		var paramComponents = parameters.substring(paramStart,
			(paramEnd > paramStart ? paramEnd : parameters.length ));

		try {
			var matchedElementsJson = decodeURIComponent(paramComponents);
			var matchedElements = Ext.decode(matchedElementsJson);
		} catch (e) {
			Ext.MessageBox.alert(ORYX.I18N.Oryx.title, "I found highlighting information from BPMN-Q, but they could not be understood: " + e);
			return null;
		}

		return matchedElements;
	},
	// Added by Ahmed Awad
	deserializeDescription : function() {
		var parameters = window.location.search;
		var PARAMKEY = "description=";

		var paramStart = parameters.indexOf(PARAMKEY) + PARAMKEY.length;
		if (paramStart < PARAMKEY.length) {
			return null; // no highlighting info found
		}
		var paramEnd = parameters.indexOf("&", paramStart); // delimiter from potential other parameters

		var paramComponents = parameters.substring(paramStart,
			(paramEnd > paramStart ? paramEnd : parameters.length ));

		try {
			var descriptionJson = decodeURIComponent(paramComponents);
			var description = Ext.decode(descriptionJson);
		} catch (e) {
			Ext.MessageBox.alert(ORYX.I18N.Oryx.title, "I found description information from BPMN-Q, but they could not be understood: " + e);
			return null;
		}

		return description;
	},
	getShapeById: function(resourceId) {
		var shapes = this.facade.getCanvas().getChildShapeByResourceId(resourceId);
/*		var task;
		for (var index = 0; index < shapes.length; index++) {
    		if (shapes[index].properties["oryx-activitytype"] == "Task") {
				if (shapes[index].properties["oryx-id"] == taskId) {
					task = shapes[index];
					break;
				}
			}
    	} */
		return shapes;
	},

	getEdgeByFromAndTo: function(fromId, toId) {
		fromId = fromId.replace(/^.*#/, '');
		toId = toId.replace(/^.*#/, '');

		var edges = this.facade.getCanvas().getChildEdges(true);

		var suspectEdge = edges.find(function(edge) {
			return edge.incoming != null
			  && edge.incoming[0] != null
			  && edge.incoming[0].resourceId == fromId
			  && edge.outgoing != null
			  && edge.outgoing[0] != null
			  && edge.outgoing[0].resourceId == toId;
		}.bind(this));

		return suspectEdge;
	}

});


text:
const defaults = [
  { shortcode: "EUR", symbol: "€", label: "Euro", balance: 1500 },
  { shortcode: "GBP", symbol: "£", label: "British Pound", balance: 800 },
  { shortcode: "USD", symbol: "$", label: "US Dollar", balance: 1100 },
  { shortcode: "PLN", symbol: "zł", label: "Polish Złoty", balance: 2800 }
]

export default function reducer(state=defaults, action) {
  // const {payload} = action
  switch (action.type) {
    case "UPDATE_WALLETS":
      state = action.payload.balances.map((item) => {
        if (item.shortcode === action.payload.settings.baseCurrency) {
          return {...item, balance: Number(item.balance) - Number(action.payload.inputs.baseValue)}
        } else if (item.shortcode === action.payload.settings.convertTo) {
          return {...item, balance: Number(item.balance) + Number(action.payload.inputs.resultValue)}
        } else {
          return item
        }
      })
      break
    default:
      break
  }
  return state
}


text:
module CanTango
  class Config
    class Users < CanTango::Registry::Clazz
      include Singleton

      def register_user clazz
        register user_name(clazz), clazz
      end
      alias_method :register_class, :register_user

      protected

      def user_name clazz
        clazz.name.demodulize.gsub(/(.+)User$/, '\1').to_s.underscore
      end
    end
  end
end


text:
var CardDeck = Class.extend({

	cards : [],

	init : function() {
		this.cards = [];
		for(var i = 0; i < Card.prototype.validSuits.length; i++) {
			for(var o = 0; o < Card.prototype.validRanks.length; o++) {
				this.addCard(Card.prototype.validSuits[i], Card.prototype.validRanks[o]);
			}
		}

	},

	addCard : function(suit, rank) {
		this.cards[this.cards.length] = new Card(suit, rank);
	},

	drawRandomCard : function() {
		if(this.cards.length !== 0)
			return this.cards[Math.floor(Math.random()*this.cards.length)];
		return false;
	},

	drawRandomCardAndDelete : function() {
		if(this.cards.length !== 0) {
			var card = this.drawRandomCard();
			position = $.inArray(card, this.cards);
			if(~position) this.cards.splice(position, 1);
			return card;
		}
		return false;
	}
});


text:
<?php
    defined('BASEPATH') OR exit('No direct script access allowed');

    class Admin extends CI_Controller{

        public function __construct(){
            parent::__construct();
            if(!$this->session->has_userdata('username')){
                redirect('user/login');
            } else {
                if($this->session->userdata('role') > 1){
                    redirect('sale/lists');
                }
            }

            $this->load->model('user_model');
        }

        public function index(){
            redirect('admin/lists');
        }

        //添加用户
        public function add(){

            $this->load->view('template/start');
            $this->load->view('admin/add_view');
            $this->load->view('template/end');
        }

        //添加用户 保存
        public function add_save(){

            $obj = array();
            $obj['nike_name'] = trim($this->input->post('nike_name',true));
            $obj['username'] = trim($this->input->post('username',true));
            $obj['password'] = md5(trim($this->input->post('username',true)));
            $obj['role'] = trim($this->input->post('role',true));
            $obj['status'] = trim($this->input->post('status',true));
            $obj['avatar'] = trim($this->input->post('avatar',true));
            $obj['summary'] = trim($this->input->post('summary',true));

            $result = $this->user_model->insert_user($obj);
            if($result){
                redirect('admin/lists');
            } else {
                alert('保存失败!');
            }
        }

        //获取用户列表 管理员才能操作
        public function lists(){

            $obj = array();
            $obj['username'] = trim($this->input->post('username',true));
            $obj['nike_name'] = trim($this->input->post('nike_name',true));

            $query = $this->user_model->get_list($obj);
            $data['query'] = $query;

            $this->load->view('template/start');
            $this->load->view('admin/list_view',$data);
            $this->load->view('template/end');
        }

        //查看详情
        public function detail($user_id){
            $data['item'] = $this->user_model->get_user($user_id);
            $this->load->view('template/start');
            $this->load->view('admin/detail_view', $data);
            $this->load->view('template/end');
        }

        //编辑
        public function edit($user_id){
            $data['item'] = $this->user_model->get_user($user_id);
            $this->load->view('template/start');
            $this->load->view('admin/edit_view', $data);
            $this->load->view('template/end');
        }

        //编辑 保存
        public function edit_save($user_id){
            $obj = array();
            $obj['nike_name'] = trim($this->input->post('nike_name',true));
            $obj['username'] = trim($this->input->post('username',true));
            $obj['password'] = trim($this->input->post('password',true));
            $obj['role'] = trim($this->input->post('role',true));
            $obj['status'] = trim($this->input->post('status',true));
            $obj['avatar'] = trim($this->input->post('avatar',true));
            $obj['summary'] = trim($this->input->post('summary',true));

            $result = $this->user_model->update_user($user_id, $obj);
            if($result){
                redirect('admin/detail/'.$user_id);
            } else {
                alert('保存失败!');
            }
        }

        // 重置密码
        public function reset_pwd($user_id){
            $data['item'] = $this->user_model->get_user($user_id);
            $this->load->view('template/start');
            $this->load->view('admin/reset_pwd_view', $data);
            $this->load->view('template/end');
        }

        public function reset_pwd_save($user_id, $username){
            $obj = array();
            $obj['password'] = md5(trim($username));
            $result = $this->user_model->update_user($user_id, $obj);
            if($result){
                redirect('/admin/detail/'.$user_id);
            } else {
                alert('重置密码失败!');
            }
        }

        // 删除用户
        public function delete($user_id){
            $result = $this->user_model->delete($user_id);
            if($result){
                redirect('admin/lists');
            } else {
                redirect('admin/lists');
            }
        }

    }

 ?>


text:
export default function getLetter (pos, str) {
    return str[pos] && str[pos].toLowerCase()
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Oracle BI Publisher 11.1.1.7.140715 -Dataengine, datamodel:/Rapoarte diverse/Raportare Executie COFOG3/Rap-COFOG3-VN-CH v.2.xdm -->
<DATA_DS><P_SECB>04</P_SECB><P_DENSEC>Bugetul fondului de somaj</P_DENSEC><P_CUI>11351325</P_CUI><P_DEN>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</P_DEN><P_ZI>31-JAN-16</P_ZI>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100000</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>TITLUL I  CHELTUIELI DE PERSONAL</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>680000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Asigurari si asistenta sociala</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>0.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100101</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Salarii de baza</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>151785.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100112</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Indemnizatii platite unor persoane din afara unitatii</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>4781.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100113</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Indemnizatii de delegare</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>170.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100301</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Contributii de asigurari sociale de stat</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>24726.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100302</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Contributii de asigurari de somaj</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>759.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100303</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Contributii de asigurari sociale de sanatate</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>8141.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100304</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Contributii de asigurari pentru accidente de munca si boli profesionale</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>228.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>100306</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Contributii pentru concedii si indemnizatii</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>1290.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200000</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>TITLUL II  BUNURI SI SERVICII</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>650000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Invatamant</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>0.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200000</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>TITLUL II  BUNURI SI SERVICII</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>680000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Asigurari si asistenta sociala</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>0.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200103</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Incalzit, Iluminat si forta motrica</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>655000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli in domeniul invatamantului</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>4425.74</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200103</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Incalzit, Iluminat si forta motrica</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>6256.06</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200104</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Apa, canal si salubritate</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>655000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli in domeniul invatamantului</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>230.34</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200104</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Apa, canal si salubritate</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>434.32</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200108</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Posta, telecomunicatii, radio, tv, internet</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>655000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli in domeniul invatamantului</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>134.55</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200108</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Posta, telecomunicatii, radio, tv, internet</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>2293.94</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200109</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Materiale si prestari de servicii cu caracter functional</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>655000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli in domeniul invatamantului</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>25000.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200109</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Materiale si prestari de servicii cu caracter functional</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>5155.86</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200130</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Alte bunuri si servicii pentru intretinere si functionare</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>737.59</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>200601</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Deplasari interne, detasari, transferari</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>427.67</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>203004</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Chirii</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>7748.57</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>203006</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Prestari servicii pentru transmiterea drepturilor</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685002</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Cheltuieli cu transmiterea si plata drepturilor</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>9582.64</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>203030</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Alte cheltuieli cu bunuri si servicii</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>685003</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli de administrare fond</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>450.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>510000</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>TITLUL VI TRANSFERURI INTRE UNITATI ALE ADMINISTRATIEI PUBLICE</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>680000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Asigurari si asistenta sociala</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>0.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>510117</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Transferuri din bugetul asigurarilor pentru somaj catre bugetul asigurarilor sociale de stat</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>680700</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Asigurari  pentru somaj</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>304985.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>510119</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Transferuri din bugetul asigurarilor pentru somaj catre bugetul fondului national unic de  asigurari sociale de sanatate</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>680700</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Asigurari  pentru somaj</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>83180.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>510120</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Transferuri din bugetul asigurarilor pentru somaj catre bugetul asigurarilor sociale de stat reprezentand asigurare pentru accidente  de munca si boli profesionale pentru someri pe durata practicii profesionale</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>680700</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Asigurari  pentru somaj</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>240.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>570000</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>TITLUL IX  ASISTENTA SOCIALA</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>650000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Invatamant</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>0.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>570000</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>TITLUL IX  ASISTENTA SOCIALA</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>680000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Asigurari si asistenta sociala</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>0.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>570000</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>TITLUL IX  ASISTENTA SOCIALA</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>800000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Actiuni generale economice, comerciale si de munca</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>0.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>570100</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Asigurari sociale</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>680700</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Asigurari  pentru somaj</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>1172388.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>570201</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Ajutoare sociale in numerar</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>800205</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Stimularea crearii de locuri de munca</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>251743.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>570202</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Ajutoare sociale in natura</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>655000</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Alte cheltuieli in domeniul invatamantului</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>7108.0</EXECUTIE_CUMULAT1>
</G_2>
<G_2>
<SECTOR_BUGETAR1>04</SECTOR_BUGETAR1>
<TIP_SECTOR1>Bugetul fondului de somaj</TIP_SECTOR1>
<SURSA_FINANTARE1>A</SURSA_FINANTARE1>
<SURSA_FINANTARE_DESCRIERE1>Integral de la buget</SURSA_FINANTARE_DESCRIERE1>
<CLASIFICATIE_ECONOMICA1>850103</CLASIFICATIE_ECONOMICA1>
<CLASIFICATIE_ECONOMICA_DESCRIERE1>Plati efectuate in anii precedenti si recuperate in anul curent aferente cheltuielilor curente si operatiunilor financiare ale altor institutii publice</CLASIFICATIE_ECONOMICA_DESCRIERE1>
<CLASIFICATIE_FUNCTIONALA1>800205</CLASIFICATIE_FUNCTIONALA1>
<CLASIFICATIE_FUNCTIONALA_DESCRIERE1>Stimularea crearii de locuri de munca</CLASIFICATIE_FUNCTIONALA_DESCRIERE1>
<DENUMIRE_INDICATOR1>Cheltuiala</DENUMIRE_INDICATOR1>
<NUME1>AGENTIA JUDETEANA PENTRU OCUPAREA FORTEI DE MUNCA</NUME1>
<COD_FISCAL_IP1>11351325</COD_FISCAL_IP1>
<EXECUTIE_CUMULAT1>0.0</EXECUTIE_CUMULAT1>
</G_2>
<TOTALVENITURI>0</TOTALVENITURI>
<TOTALCHELTUIELI>2074401.28</TOTALCHELTUIELI>
</DATA_DS>


text:
% Get header of the subject information
% [ Yokogawa MEG Reader toolbox for MATLAB ]
%
% brief:
%   This function retrieves information of the subject in the specified file.
%
% usage:
%   subject = getYkgwHdrSubject(filepath)
%
% arguments:
%   filepath     : file path
%
% return values:
%   subject      : structure of subject information
%     .id        : string, id
%     .name      : string, name
%     .birthday  : string, birthday
%     .sex       : string, sex
%     .handed    : string, handed
%
% rivision history
%   1 : 2011.02.14 : 1st argument is modified from file ID to file path.
%   0 : 2010.06.24 : first release
%
% Copyright (C) 2010-2011 Yokogawa Electric Corporation, All Rights Reserved.


text:
 Returns the current search configuration as as string

**Namespace:** [Microsoft.SharePoint.Client](Microsoft.SharePoint.Client.md)
**Assembly:** OfficeDevPnP.Core.dll
## Syntax
```C#
public static string GetSearchConfiguration(this Site site)
```
### Parameters
#### site
  Type: Microsoft.SharePoint.Client.Site
  A SharePoint site

### Return Value
Type: string
Returns search configuration

## See also
- [SearchExtensions](Microsoft.SharePoint.Client.SearchExtensions.md)
- [Microsoft.SharePoint.Client](Microsoft.SharePoint.Client.md)


text:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="pl.snowdog.aniolstudentauep.fragment.ProfileFillSkillsFragment">

        <AutoCompleteTextView
            android:id="@+id/et_search"
            android:layout_alignParentTop="true"
            android:hint="Czym się interesujesz?"
            android:layout_centerVertical="true"
            android:textSize="@dimen/abc_text_size_large_material"
            android:layout_marginRight="@dimen/activity_horizontal_margin"
            android:layout_marginLeft="@dimen/activity_horizontal_margin"
            android:layout_marginTop="@dimen/activity_vertical_margin"

            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            />

    <ListView
        android:id="@+id/lv_skills"
        android:layout_marginRight="@dimen/activity_horizontal_margin"
        android:layout_marginLeft="@dimen/activity_horizontal_margin"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:choiceMode="multipleChoice"
        android:layout_below="@+id/et_search"
        android:layout_above="@+id/lower_part_container"/>

    <ImageButton
        android:id="@+id/btn_add_skill"
        android:layout_centerVertical="true"
        android:layout_margin="@dimen/margin_small"
        android:src="@drawable/plusik_small"
        android:background="@drawable/round_button"
        android:layout_alignParentRight="true"
        android:layout_width="84dp"
        android:layout_height="84dp"
        android:layout_above="@+id/lower_part_container"

        />
    <RelativeLayout
        android:id="@+id/lower_part_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@color/green"
        >
        <include layout="@layout/divider_horizontal"
            android:id="@+id/divider"/>

        <Button
            android:text="Gotowe"
            android:id="@+id/btn_next"
            android:layout_marginRight="@dimen/activity_horizontal_margin"
            android:layout_marginLeft="@dimen/activity_horizontal_margin"
            android:gravity="right"
            android:layout_below="@+id/divider"
            android:layout_toLeftOf="@+id/arrow"
            style="@style/green_button"/>
        <ImageView
            android:src="@drawable/arrow"
            android:id="@+id/arrow"
            android:layout_marginRight="@dimen/activity_horizontal_margin"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </RelativeLayout>
</RelativeLayout>


text:
package combinatorical

import org.salgo.combinatorical.Floyd

class FloydSpec extends CycleFinderSpec {
  override def getCycleFinder = Floyd
}


text:
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.platform.templates;

import com.intellij.facet.frameworks.beans.Artifact;
import com.intellij.ide.util.projectWizard.ModuleBuilder;
import com.intellij.ide.util.projectWizard.ProjectTemplateParameterFactory;
import com.intellij.ide.util.projectWizard.WizardInputField;
import com.intellij.openapi.module.ModuleType;
import com.intellij.openapi.ui.ValidationInfo;
import com.intellij.openapi.util.io.StreamUtil;
import com.intellij.platform.ProjectTemplate;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.xmlb.XmlSerializer;
import com.intellij.util.xmlb.annotations.Property;
import com.intellij.util.xmlb.annotations.Tag;
import com.intellij.util.xmlb.annotations.XCollection;
import org.jdom.Element;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.zip.ZipInputStream;

/**
 * @author Dmitry Avdeev
 */
@Tag("template")
public abstract class ArchivedProjectTemplate implements ProjectTemplate {
  public static final String INPUT_FIELD = "input-field";
  public static final String TEMPLATE = "template";
  public static final String INPUT_DEFAULT = "default";

  protected final String myDisplayName;
  @Nullable private final String myCategory;

  private List<WizardInputField<?>> myInputFields = Collections.emptyList();
  private List<String> myFrameworks = new ArrayList<>();
  private List<Artifact> myArtifacts = new ArrayList<>();

  public ArchivedProjectTemplate(@NotNull String displayName, @Nullable String category) {
    myDisplayName = displayName;
    myCategory = category;
  }

  @NotNull
  @Override
  public String getName() {
    return myDisplayName;
  }

  @Override
  public Icon getIcon() {
    return getModuleType().getIcon();
  }

  protected abstract ModuleType<?> getModuleType();

  @NotNull
  @Override
  public ModuleBuilder createModuleBuilder() {
    return new TemplateModuleBuilder(this, getModuleType(), getInputFields());
  }

  @NotNull
  public List<WizardInputField<?>> getInputFields() {
    return myInputFields;
  }

  @Property(surroundWithTag = false)
  @XCollection(elementName = "artifact")
  public List<Artifact> getArtifacts() {
    return myArtifacts;
  }

  public void setArtifacts(List<Artifact> artifacts) {
    myArtifacts = artifacts;
  }

  @NotNull
  @Property(surroundWithTag = false)
  @XCollection(elementName = "framework", valueAttributeName = "")
  public List<String> getFrameworks() {
    return myFrameworks;
  }

  public void setFrameworks(List<String> frameworks) {
    myFrameworks = frameworks;
  }

  @Nullable
  @Override
  public ValidationInfo validateSettings() {
    return null;
  }

  public void handleUnzippedDirectories(@NotNull File dir, @NotNull List<? super File> filesToRefresh) throws IOException {
    filesToRefresh.add(dir);
  }

  public static abstract class StreamProcessor<T> {
    public abstract T consume(@NotNull ZipInputStream stream) throws IOException;
  }

  public abstract <T> T processStream(@NotNull StreamProcessor<T> consumer) throws IOException;

  @Nullable
  public String getCategory() {
    return myCategory;
  }

  public void populateFromElement(@NotNull Element element) {
    XmlSerializer.deserializeInto(this, element);
    myInputFields = getFields(element);
  }

  private static List<WizardInputField<?>> getFields(Element templateElement) {
    return ContainerUtil
      .mapNotNull(templateElement.getChildren(INPUT_FIELD), element -> {
        ProjectTemplateParameterFactory factory = WizardInputField.getFactoryById(element.getText());
        return factory == null ? null : factory.createField(element.getAttributeValue(INPUT_DEFAULT));
      });
  }

  protected static <T> T consumeZipStream(@NotNull StreamProcessor<T> consumer, @NotNull ZipInputStream stream) throws IOException {
    try {
      return consumer.consume(stream);
    }
    finally {
      StreamUtil.closeStream(stream);
    }
  }
}


text:
'use strict'

var Http = require('http')
var Express = require('express')
var BodyParser = require('body-parser')
var CookieParser = require('cookie-parser')
var MethodOverride = require('method-override')
var ServeStatic = require('serve-static')
var Argv = require('optimist').argv

var conf = {
  port: Argv.p || 3000
}

// create a seneca instance
var seneca = require('seneca')()

// enable the /mem-store/dump HTTP end point
// this lets you see the entire contents of the database as a JSON object
// in the browser - very useful for debugging!
// Go to http://localhost:3000/mem-store/dump to debug db contents
if (seneca.version >= '2.0.0') {
  seneca.use('entity')
}
seneca.use('mem-store', {web: {dump: true}})

// use the engage plugin to store extended user sessions
// these are known as "engagements"
// this means that user's shopping carts will be saved and still active if they
// return the next day
seneca.use('engage')

// the shopping cart plugin provides standard web shopping cart business logic
// and also a HTTP JSON api
seneca.use('cart')

// set up express
var app = Express()
app.enable('trust proxy')

app.use(CookieParser())
app.use(Express.query())
app.use(BodyParser.urlencoded({extended: true}))
app.use(MethodOverride())
app.use(BodyParser.json())

app.use(ServeStatic(__dirname + '/public'))

// expose the shopping cart api
// the seneca.export('web') method returns a single function with the signature
// function(req,res,next) that can be used with connect or express
// this service method wraps up all the plugin HTTP endpoints
// seneca includes the connect utility plugin by default, which
// sets the special arguments req$ and res$ on all seneca calls, allowing
// seneca actions to access the current HTTP req and res objects
app.use(seneca.export('web'))

// express views for the cart pages
app.engine('ejs', require('ejs-locals'))
app.set('views', __dirname + '/views')
app.set('view engine', 'ejs')

// a utility method
function formatprice (price) {
  return '$' + (void 0 === price ? '0.00' : price.toFixed(2))
}

app.get('/', function (req, res, next) {
  req.seneca.act('role:cart,cmd:get', function (err, out) {
    if (err) return next(err)
    res.render('index.ejs', {locals: {cart: out.cart, formatprice: formatprice}})
  })
})

app.get('/cart', function (req, res, next) {
  req.seneca.act('role:cart,cmd:get', function (err, out) {
    if(err) return next(err)
    res.render('cart.ejs', {locals: {cart: out.cart, formatprice: formatprice}})
  })
})

app.get('/checkout', function (req, res, next) {
  req.seneca.act('role:cart,cmd:get', function (err, out) {
    if(err) return next(err)
    res.render('checkout.ejs', {locals: {cart: out.cart, formatprice: formatprice}})
  })
})

// Use seneca.ready to ensure all plugins fully ready
// before we extend action patterns
seneca.ready(function () {
  // ensure that cart actions get the cart from the engagement
  seneca.wrap({role: 'cart', cmd: '*'}, function (args, done) {
    var prior = this.prior
    if(!args.req$) return this.prior(args, done)
    this.act('role:engage,cmd:get,key:cart', function (err, out) {
      if(err) return done(err)
      args.cart = out.value
      prior(args, function (err, out) {
        if(err) return done(err)
        this.act('role:engage,cmd:set,key:cart', {value: out.cart.id}, function (err) {
          if(err) return done(err)
          done(null, out)
        })
      })
    })
  })
})
// use the node.js http api to create a HTTP server
// this allows the admin plugin to use websockets
var server = Http.createServer(app)
server.listen(conf.port)

// unlike the user-accounts example, the local:true
// setting means anybody can access the admin panel from localhost
seneca.use('data-editor', {admin: {local: true}})
seneca.use('admin', {server: server, local: true})

// set up some test products for the store
// create a product entity object
var product_ent = seneca.make$('shop', 'product')

// create new product entities and save them
// (the $ suffix avoids namespace collisions with your own properties)
product_ent.make$({name: 'apple', price: 1, code: 'app01'}).save$()
product_ent.make$({name: 'orange', price: 2, code: 'ora02'}).save$()


text:
"""Kronecker-factored Approximate Curvature Optimizer."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

# pylint: disable=unused-import,line-too-long
from tensorflow.contrib.kfac.python.ops import curvature_matrix_vector_products_lib as curvature_matrix_vector_products
from tensorflow.contrib.kfac.python.ops import estimator_lib as estimator
from tensorflow.contrib.kfac.python.ops import fisher_blocks_lib as fisher_blocks
from tensorflow.contrib.kfac.python.ops import fisher_factors_lib as fisher_factors
from tensorflow.contrib.kfac.python.ops import layer_collection_lib as layer_collection
from tensorflow.contrib.kfac.python.ops import loss_functions_lib as loss_functions
from tensorflow.contrib.kfac.python.ops import op_queue_lib as op_queue
from tensorflow.contrib.kfac.python.ops import optimizer_lib as optimizer
from tensorflow.contrib.kfac.python.ops import utils_lib as utils
from tensorflow.python.util.all_util import remove_undocumented
# pylint: enable=unused-import,line-too-long

_allowed_symbols = [
    "curvature_matrix_vector_products",
    "estimator",
    "fisher_blocks",
    "fisher_factors",
    "layer_collection",
    "loss_functions",
    "op_queue",
    "optimizer",
    "utils",
]

remove_undocumented(__name__, allowed_exception_list=_allowed_symbols)


text:
/** \file
 * Groups all the generic implementation files for 3D parallelism.
 */
#include "parallelism/parallelDynamics.hh"
#include "parallelism/parallelMultiBlockLattice3D.hh"
#include "parallelism/parallelMultiDataField3D.hh"