<commit_before>package com.jenjinstudios.core.io;

import org.mockito.stubbing.OngoingStubbing;

import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;

import static org.mockito.Mockito.*;

/**
 * Used to mock a {@code DataInputStream}.
 *
 * @author <NAME>
 */
public class DataInputStreamMock
{
    public static final int HEX_CONVERSION_CONSTANT = 0xff;
    private final InputStream in = mock(InputStream.class);
    private OngoingStubbing<Integer> when;

    /**
     * Construct a new {@code DataInputStreamMock}.
     *
     * @throws IOException If there's an exception.
     */
    public DataInputStreamMock() throws IOException {
        when(in.read(any(byte[].class), anyInt(), anyInt())).thenCallRealMethod();<commit_msg>Made constant private<commit_after>package com.jenjinstudios.core.io;

import org.mockito.stubbing.OngoingStubbing;

import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;

import static org.mockito.Mockito.*;

/**
 * Used to mock a {@code DataInputStream}.
 *
 * @author <NAME>
 */
public class DataInputStreamMock
{
    private static final int HEX_CONVERSION_CONSTANT = 0xff;
    private final InputStream in = mock(InputStream.class);
    private OngoingStubbing<Integer> when;

    /**
     * Construct a new {@code DataInputStreamMock}.
     *
     * @throws IOException If there's an exception.
     */
    public DataInputStreamMock() throws IOException {
        when(in.read(any(byte[].class), anyInt(), anyInt())).thenCallRealMethod();
{'fraction_non_alphanumeric': 0.11281422440220723, 'fraction_numerical': 0.001226241569589209, 'mean_word_length': 4.180952380952381, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2772216', 'n_tokens_mistral': 484, 'n_tokens_neox': 484, 'n_words': 117}