<commit_before>import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class Main {
    public static final int CR = 13;
    public static final int LN = 10;

    public void replaceCRLN(InputStream inputStream, OutputStream outputStream) throws IOException {
        int prev = -1;
        int current;

        while ((current = inputStream.read()) >= 0) {
            if (prev == CR && current != LN) {
                outputStream.write(prev);
            }

            if (current != CR) {
                outputStream.write(current);
            }

            prev = current;
        }

        if (prev == CR) {
            outputStream.write(prev);
        }

        outputStream.flush();
    }

    public static void main(String[] args) throws IOException {
        new Main().run();
    }

    private void run() throws IOException {
        replaceCRLN(System.in, System.out);
    }
}<commit_msg>[java] cr-ln -> ln example<commit_after>import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class Main {
    public static final int CR = 13;
    public static final int LN = 10;

    public void replaceCRLN(InputStream inputStream, OutputStream outputStream) throws IOException {
        int prev = -1;
        int current;

        while ((current = inputStream.read()) >= 0) {
            if (prev == CR && current != LN) {
                outputStream.write(prev);
            }

            if (current != CR) {
                outputStream.write(current);
            }

            prev = current;
        }

        if (prev == CR) {
            outputStream.write(prev);
        }
    }

    public static void main(String[] args) throws IOException {
        new Main().run();
    }

    private void run() throws IOException {
        replaceCRLN(System.in, System.out);
        System.out.flush();
    }
}
{'fraction_non_alphanumeric': 0.10912906610703044, 'fraction_numerical': 0.0062959076600209865, 'mean_word_length': 1.867669172932331, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4533198', 'n_tokens_mistral': 534, 'n_tokens_neox': 493, 'n_words': 145}