<commit_before>package com.marverenic.music.player.transaction;

import android.support.annotation.NonNull;

public final class IncomingTransaction<T> {

    private Aggregator<T> mAggregator;

    private String mTransactionId;
    private int mOffset;
    private int mSize;
    private T mAggregate;

    @SuppressWarnings("unchecked")
    IncomingTransaction(TransactionToken token, T emptyAggregate, Aggregator<T> aggregator) {
        if (token == null) {
            throw new IllegalArgumentException("Token cannot be null");
        } else if (aggregator == null) {
            throw new IllegalArgumentException("Aggregator cannot be null");
        }

        mTransactionId = token.getTransactionId();
        mSize = token.getSize();
        mAggregator = aggregator;
        mAggregate = emptyAggregate;
    }

    public void receive(@NonNull TransactionChunk<T> chunk) {
        if (!mTransactionId.equals(chunk.getTransactionId())) {
            throw new IllegalArgumentException("Chunk contains data from a different transaction");<commit_msg>Remove unnecessary suppression<commit_after>package com.marverenic.music.player.transaction;

import android.support.annotation.NonNull;

public final class IncomingTransaction<T> {

    private Aggregator<T> mAggregator;

    private String mTransactionId;
    private int mOffset;
    private int mSize;
    private T mAggregate;

    IncomingTransaction(TransactionToken token, T emptyAggregate, Aggregator<T> aggregator) {
        if (token == null) {
            throw new IllegalArgumentException("Token cannot be null");
        } else if (aggregator == null) {
            throw new IllegalArgumentException("Aggregator cannot be null");
        }

        mTransactionId = token.getTransactionId();
        mSize = token.getSize();
        mAggregator = aggregator;
        mAggregate = emptyAggregate;
    }

    public void receive(@NonNull TransactionChunk<T> chunk) {
        if (!mTransactionId.equals(chunk.getTransactionId())) {
            throw new IllegalArgumentException("Chunk contains data from a different transaction");
{'fraction_non_alphanumeric': 0.08499525166191833, 'fraction_numerical': 0.0, 'mean_word_length': 3.3895833333333334, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '683035', 'n_tokens_mistral': 533, 'n_tokens_neox': 537, 'n_words': 150}