<commit_before>package mjc.jasmin;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

/**
 * Simple helper class for writing Jasmin pseudo-assembler.
 */
class JasminWriter {
    private StringBuilder out = new StringBuilder();

    /**
     * Adds a Jasmin descriptor to the writer.
     *
     * @param descriptor Descriptor to add, including any format specifiers.
     * @param args Arguments matching format specifiers in @a descriptor.
     */
    void descriptor(String descriptor, Object... args) {
        out.append('.' + String.format(descriptor, args) + '\n');
    }

    /**
     * Adds a Jasmin instruction to the writer.
     *
     * @param instruction Instruction to add, including any format specifiers.
     * @param args Arguments matching format specifiers in @a instruction.
     */
    void instruction(String instruction, Object... args) {
        out.append("    " + String.format(instruction, args) + '\n');
    }

    /**
     * Adds a Jasmin label to the writers.
     *
     * @param label Label to add.
     */
    void label(String label) {
        out.append(label + ":\n");
    }

    /**
     * Writes the accumulated Jasmin pseudo-assembler code to a stream.
     *<commit_msg>Fix typo.<commit_after>package mjc.jasmin;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

/**
 * Simple helper class for writing Jasmin pseudo-assembler.
 */
class JasminWriter {
    private StringBuilder out = new StringBuilder();

    /**
     * Adds a Jasmin descriptor to the writer.
     *
     * @param descriptor Descriptor to add, including any format specifiers.
     * @param args Arguments matching format specifiers in @a descriptor.
     */
    void descriptor(String descriptor, Object... args) {
        out.append('.' + String.format(descriptor, args) + '\n');
    }

    /**
     * Adds a Jasmin instruction to the writer.
     *
     * @param instruction Instruction to add, including any format specifiers.
     * @param args Arguments matching format specifiers in @a instruction.
     */
    void instruction(String instruction, Object... args) {
        out.append("    " + String.format(instruction, args) + '\n');
    }

    /**
     * Adds a Jasmin label to the writer.
     *
     * @param label Label to add.
     */
    void label(String label) {
        out.append(label + ":\n");
    }

    /**
     * Writes the accumulated Jasmin pseudo-assembler code to a stream.
     *
{'fraction_non_alphanumeric': 0.1094663030775224, 'fraction_numerical': 0.0, 'mean_word_length': 2.5716272600834493, 'pattern_counts': {'":': 2, '<': 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': '2223614', 'n_tokens_mistral': 729, 'n_tokens_neox': 716, 'n_words': 237}