<commit_before>package Replay.IO;

import Constants.BitmaskEnum;
import Constants.GameMode;
import Constants.Mod;
import Replay.Replay;
import org.apache.commons.compress.compressors.lzma.LZMACompressorInputStream;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.DataFormatException;

public final class ReplayIO {
    /**
     * Parses a {@link Replay} instance from the input data.
     *
     * @param source an {@link InputStream} containing an entire osu! Replay file.
     * @return
     * @throws IOException
     * @throws DataFormatException
     */
    public static Replay read(InputStream source) throws IOException, DataFormatException {
        ReplayScanner scanner = new ReplayScanner(source);
        GameMode mode;
        byte modeByte = scanner.nextByte();
        switch (modeByte) {
            case 0:
                mode = GameMode.STANDARD;
                break;
            case 1:
                mode = GameMode.TAIKO;<commit_msg>oops remove import<commit_after>package Replay.IO;

import Constants.GameMode;
import Constants.Mod;
import Replay.Replay;
import org.apache.commons.compress.compressors.lzma.LZMACompressorInputStream;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.DataFormatException;

public final class ReplayIO {
    /**
     * Parses a {@link Replay} instance from the input data.
     *
     * @param source an {@link InputStream} containing an entire osu! Replay file.
     * @return
     * @throws IOException
     * @throws DataFormatException
     */
    public static Replay read(InputStream source) throws IOException, DataFormatException {
        ReplayScanner scanner = new ReplayScanner(source);
        GameMode mode;
        byte modeByte = scanner.nextByte();
        switch (modeByte) {
            case 0:
                mode = GameMode.STANDARD;
                break;
            case 1:
                mode = GameMode.TAIKO;
{'fraction_non_alphanumeric': 0.08241494968854815, 'fraction_numerical': 0.0019166267369429804, 'mean_word_length': 2.838235294117647, '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': '3192177', 'n_tokens_mistral': 591, 'n_tokens_neox': 571, 'n_words': 157}