<commit_before>package com.datasingularity.http.asyncget.threading;

/**
 * This class is used to represent a Report
 * associated with a thread pool. It is passed to
 * all of the AsyncRequestHandlers and they have 
 * synchronized access to the object. Don't go overboard 
 * on these properties as accessing them locks other threads.
 * 
 * @author bhelx
 */
public final class Report {

    private long bytes;
    private long resourceCount;

    public Report() {
        bytes = 0L;
    }

    public long getBytes() {
        return bytes;
    }

    public long getResourceCount() {
        return resourceCount;
    }

    public synchronized void addBytes(long bytes) {
        this.bytes += bytes;
    }

    public synchronized void addToResourceCount() {
        this.resourceCount++;
    }
    

}<commit_msg>making a slight, redundant change to Report.java to intialize the resourceCount in the constructor<commit_after>package com.datasingularity.http.asyncget.threading;

/**
 * This class is used to represent a Report
 * associated with a thread pool. It is passed to
 * all of the AsyncRequestHandlers and they have 
 * synchronized access to the object. Don't go overboard 
 * on these properties as accessing them locks other threads.
 * 
 * @author bhelx
 */
public final class Report {

    private long bytes;
    private long resourceCount;

    public Report() {
        bytes = 0L;
		resourceCount = 0L;
    }

    public long getBytes() {
        return bytes;
    }

    public long getResourceCount() {
        return resourceCount;
    }

    public synchronized void addBytes(long bytes) {
        this.bytes += bytes;
    }

    public synchronized void addToResourceCount() {
        this.resourceCount++;
    }
    

}
{'fraction_non_alphanumeric': 0.07179487179487179, 'fraction_numerical': 0.0017094017094017094, 'mean_word_length': 2.7203389830508473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3400237', 'n_tokens_mistral': 485, 'n_tokens_neox': 455, 'n_words': 177}