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


package org.slc.sli.ingestion.model;

/**
 * Model for ingestion file entries
 *
 * @author dduran
 *
 */
public final class ResourceEntry {

    private String resourceId;

    private String resourceName;

    private String resourceFormat;

    private String resourceType;

    private String externallyUploadedResourceId;

    private String checksum;

    private String topLevelLandingZonePath;

    private int recordCount;

    private int errorCount;

    // mongoTemplate requires this constructor.
    public ResourceEntry() {
    }

    public void update(String fileFormat, String fileType, String checksum, int recordCount, int errorCount) {
        if (fileFormat != null) {
            this.resourceFormat = fileFormat;
        }
        if (fileType != null) {
            this.resourceType = fileType;
        }
        if (checksum != null) {
            this.checksum = checksum;
        }
        this.recordCount = recordCount;
        this.errorCount = errorCount;
    }

    public String getResourceId() {
        return resourceId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getResourceFormat() {
        return resourceFormat;
    }

    public void setResourceFormat(String resourceFormat) {
        this.resourceFormat = resourceFormat;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getChecksum() {
        return checksum;
    }

    public void setChecksum(String checksum) {
        this.checksum = checksum;
    }

    public String getTopLevelLandingZonePath() {
        return topLevelLandingZonePath;
    }

    public void setTopLevelLandingZonePath(String topLevelLandingZone) {
        this.topLevelLandingZonePath = topLevelLandingZone;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public int getErrorCount() {
        return errorCount;
    }

    public void setErrorCount(int errorCount) {
        this.errorCount = errorCount;
    }

    /**
     * @return the externallyUploadedResourceId
     */
    public String getExternallyUploadedResourceId() {
        return externallyUploadedResourceId;
    }

    /**
     * @param externallyUploadedResourceId the externallyUploadedResourceId to set
     */
    public void setExternallyUploadedResourceId(String externallyUploadedResourceId) {
        this.externallyUploadedResourceId = externallyUploadedResourceId;
    }
}
<commit_msg>change record and error count in resource entry from int to long<commit_after>/*
 * Copyright 2012 Shared Learning Collaborative, LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package org.slc.sli.ingestion.model;

/**
 * Model for ingestion file entries
 *
 * @author dduran
 *
 */
public final class ResourceEntry {

    private String resourceId;

    private String resourceName;

    private String resourceFormat;

    private String resourceType;

    private String externallyUploadedResourceId;

    private String checksum;

    private String topLevelLandingZonePath;

    private long recordCount;

    private long errorCount;

    // mongoTemplate requires this constructor.
    public ResourceEntry() {
    }

    public void update(String fileFormat, String fileType, String checksum, int recordCount, int errorCount) {
        if (fileFormat != null) {
            this.resourceFormat = fileFormat;
        }
        if (fileType != null) {
            this.resourceType = fileType;
        }
        if (checksum != null) {
            this.checksum = checksum;
        }
        this.recordCount = recordCount;
        this.errorCount = errorCount;
    }

    public String getResourceId() {
        return resourceId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getResourceFormat() {
        return resourceFormat;
    }

    public void setResourceFormat(String resourceFormat) {
        this.resourceFormat = resourceFormat;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getChecksum() {
        return checksum;
    }

    public void setChecksum(String checksum) {
        this.checksum = checksum;
    }

    public String getTopLevelLandingZonePath() {
        return topLevelLandingZonePath;
    }

    public void setTopLevelLandingZonePath(String topLevelLandingZone) {
        this.topLevelLandingZonePath = topLevelLandingZone;
    }

    public long getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(long recordCount) {
        this.recordCount = recordCount;
    }

    public long getErrorCount() {
        return errorCount;
    }

    public void setErrorCount(long errorCount) {
        this.errorCount = errorCount;
    }

    /**
     * @return the externallyUploadedResourceId
     */
    public String getExternallyUploadedResourceId() {
        return externallyUploadedResourceId;
    }

    /**
     * @param externallyUploadedResourceId the externallyUploadedResourceId to set
     */
    public void setExternallyUploadedResourceId(String externallyUploadedResourceId) {
        this.externallyUploadedResourceId = externallyUploadedResourceId;
    }
}

{'fraction_non_alphanumeric': 0.0682043299844347, 'fraction_numerical': 0.002264044148860903, 'mean_word_length': 2.791845493562232, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6893762', 'n_tokens_mistral': 1892, 'n_tokens_neox': 1795, 'n_words': 551}