<commit_before>package io.sniffy.servlet;

import io.sniffy.socket.SocketMetaData;
import io.sniffy.socket.SocketStats;
import io.sniffy.sql.SqlStats;
import io.sniffy.sql.StatementMetaData;

import java.util.Map;

/**
 * @see SniffyFilter
 * @since 2.3.0
 */
class RequestStats {

    private long timeToFirstByte;
    private long elapsedTime;
    private Map<StatementMetaData, SqlStats> executedStatements;
    private Map<SocketMetaData, SocketStats> socketOperations;

    public RequestStats() {
    }

    public RequestStats(long timeToFirstByte, long elapsedTime, Map<StatementMetaData, SqlStats> executedStatements) {
        this(timeToFirstByte, elapsedTime, executedStatements, null);
    }

    public RequestStats(
            long timeToFirstByte,
            long elapsedTime,
            Map<StatementMetaData, SqlStats> executedStatements,
            Map<SocketMetaData, SocketStats> socketOperations) {
        this.timeToFirstByte = timeToFirstByte;
        this.elapsedTime = elapsedTime;
        this.executedStatements = executedStatements;
        this.socketOperations = socketOperations;
    }

    public long getTimeToFirstByte() {
        return timeToFirstByte;
    }

    public void setTimeToFirstByte(long timeToFirstByte) {
        this.timeToFirstByte = timeToFirstByte;
    }

    public void incTimeToFirstByte(long timeToFirstByte) {
        this.timeToFirstByte += timeToFirstByte;
    }

    public long getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(long elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

    public void incElapsedTime(long elapsedTime) {
        this.elapsedTime += elapsedTime;
    }

    public Map<StatementMetaData, SqlStats> getExecutedStatements() {
        return executedStatements;
    }

    public void setExecutedStatements(Map<StatementMetaData, SqlStats> executedStatements) {
        this.executedStatements = executedStatements;
    }

    public void addExecutedStatements(Map<StatementMetaData, SqlStats> executedStatements) {
        if (null == this.executedStatements) {
            this.executedStatements = executedStatements;
        } else {
            this.executedStatements.putAll(executedStatements);
        }
    }

    public Map<SocketMetaData, SocketStats> getSocketOperations() {
        return socketOperations;
    }

    public void setSocketOperations(Map<SocketMetaData, SocketStats> socketOperations) {
        this.socketOperations = socketOperations;
    }

    public void addSocketOperations(Map<SocketMetaData, SocketStats> socketOperations) {
        if (null == this.socketOperations) {
            this.socketOperations = socketOperations;
        } else {
            this.socketOperations.putAll(socketOperations);
        }
    }

}<commit_msg>Removed unused RequestStats setter methods<commit_after>package io.sniffy.servlet;

import io.sniffy.socket.SocketMetaData;
import io.sniffy.socket.SocketStats;
import io.sniffy.sql.SqlStats;
import io.sniffy.sql.StatementMetaData;

import java.util.Map;

/**
 * @see SniffyFilter
 * @since 2.3.0
 */
class RequestStats {

    private long timeToFirstByte;
    private long elapsedTime;
    private Map<StatementMetaData, SqlStats> executedStatements;
    private Map<SocketMetaData, SocketStats> socketOperations;

    public RequestStats() {
    }

    public RequestStats(long timeToFirstByte, long elapsedTime, Map<StatementMetaData, SqlStats> executedStatements) {
        this(timeToFirstByte, elapsedTime, executedStatements, null);
    }

    public RequestStats(
            long timeToFirstByte,
            long elapsedTime,
            Map<StatementMetaData, SqlStats> executedStatements,
            Map<SocketMetaData, SocketStats> socketOperations) {
        this.timeToFirstByte = timeToFirstByte;
        this.elapsedTime = elapsedTime;
        this.executedStatements = executedStatements;
        this.socketOperations = socketOperations;
    }

    public long getTimeToFirstByte() {
        return timeToFirstByte;
    }

    public void incTimeToFirstByte(long timeToFirstByte) {
        this.timeToFirstByte += timeToFirstByte;
    }

    public long getElapsedTime() {
        return elapsedTime;
    }

    public void incElapsedTime(long elapsedTime) {
        this.elapsedTime += elapsedTime;
    }

    public Map<StatementMetaData, SqlStats> getExecutedStatements() {
        return executedStatements;
    }

    public void addExecutedStatements(Map<StatementMetaData, SqlStats> executedStatements) {
        if (null == this.executedStatements) {
            this.executedStatements = executedStatements;
        } else {
            this.executedStatements.putAll(executedStatements);
        }
    }

    public Map<SocketMetaData, SocketStats> getSocketOperations() {
        return socketOperations;
    }

    public void addSocketOperations(Map<SocketMetaData, SocketStats> socketOperations) {
        if (null == this.socketOperations) {
            this.socketOperations = socketOperations;
        } else {
            this.socketOperations.putAll(socketOperations);
        }
    }

}
{'fraction_non_alphanumeric': 0.07750730282375852, 'fraction_numerical': 0.0011684518013631937, 'mean_word_length': 3.1722177091795287, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4553570', 'n_tokens_mistral': 1425, 'n_tokens_neox': 1429, 'n_words': 278}