<commit_before>package io.kortex.aes;

import java.util.Arrays;

public class CipherBlock {

    private byte[] salt;
    private byte[] iv;
    private byte[] cipherText;

    public CipherBlock(byte[] salt, byte[] iv, byte[] cipherText) {
        super();

        this.salt = salt.clone();
        this.iv = iv.clone();
        this.cipherText = cipherText.clone();
    }

    public byte[] getSalt() {
        return salt.clone();
    }

    public byte[] getIv() {
        return iv.clone();
    }

    public byte[] getCipherText() {
        return cipherText.clone();
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + Arrays.hashCode(cipherText);
        result = prime * result + Arrays.hashCode(iv);
        result = prime * result + Arrays.hashCode(salt);
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        CipherBlock other = (CipherBlock) obj;
        if (!Arrays.equals(cipherText, other.cipherText))<commit_msg>add comments<commit_after>package io.kortex.aes;

import java.util.Arrays;

public class CipherBlock {

    private byte[] salt;
    private byte[] iv;
    private byte[] cipherText;

    /**
     * @param salt
     * @param iv
     * @param cipherText
     */
    public CipherBlock(byte[] salt, byte[] iv, byte[] cipherText) {
        super();

        this.salt = salt.clone();
        this.iv = iv.clone();
        this.cipherText = cipherText.clone();
    }

    /**
     * @return
     */
    public byte[] getSalt() {
        return salt.clone();
    }

    /**
     * @return
     */
    public byte[] getIv() {
        return iv.clone();
    }

    /**
     * @return
     */
    public byte[] getCipherText() {
        return cipherText.clone();
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + Arrays.hashCode(cipherText);
        result = prime * result + Arrays.hashCode(iv);
        result = prime * result + Arrays.hashCode(salt);
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        CipherBlock other = (CipherBlock) obj;
        if (!Arrays.equals(cipherText, other.cipherText))
{'fraction_non_alphanumeric': 0.12629161882893225, 'fraction_numerical': 0.002296211251435132, 'mean_word_length': 1.9141583054626532, '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': '924237', 'n_tokens_mistral': 801, 'n_tokens_neox': 759, 'n_words': 203}