<commit_before>package de.czempin.nicnac16;

public class Processor {
	int mem[] = new int[65636];
	public int PC;
	public int AC;

	public int readMemory(int address) {
		printMemory(address);
		return mem[address];
	}
	public void writeMemory(int address, int value) {
		mem[address] = value;
		printMemory(address);
	}

	private void printMemory(int address) {
		// align to 8 words
		int start = (address / 8) * 8;
		System.out.print(String.format("(%04x): ", start));
		for (int i = start; i < start + 8; i++) {
			String string = String.format("%04x", mem[i]);
			System.out.print(string);
			if (i == address) {
				System.out.print("*");
			} else {
				System.out.print(" ");
			}
		}
		System.out.println();
	}


	public void printState() {
		// registers
		final String formatted = String.format("PC: %h, AC: %h", PC, AC);
		System.out.println(formatted);
	}

}
<commit_msg>slightly nicer formatting<commit_after>package de.czempin.nicnac16;

public class Processor {
	int mem[] = new int[65636];
	public int PC;
	public int AC;

	public int readMemory(int address) {
		printMemory(address);
		return mem[address];
	}
	public void writeMemory(int address, int value) {
		mem[address] = value;
		printMemory(address);
	}

	private void printMemory(int address) {
		// align to 8 words
		int start = (address / 8) * 8;
		System.out.print(String.format("(%04x): ", start));
		for (int i = start; i < start + 8; i++) {
			String string = String.format("%04x", mem[i]);
			System.out.print(string);
			if (i == address) {
				System.out.print("*");
			} else {
				System.out.print(" ");
			}
		}
		System.out.println();
	}


	public void printState() {
		// registers
		final String formatted = String.format("\nPC: %h, AC: %h\n", PC, AC);
		System.out.println(formatted);
	}

}

{'fraction_non_alphanumeric': 0.16349384098544234, 'fraction_numerical': 0.0167973124300112, 'mean_word_length': 3.43424317617866, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7376674', 'n_tokens_mistral': 718, 'n_tokens_neox': 626, 'n_words': 162}