<commit_before>package nl.pvanassen.nxt.sorting.detection;

import nl.pvanassen.nxt.sorting.MMColor;

class MMColorCounter {
	private int []counts = new int[6];
	private static final int BLUE = 0;
	private static final int BROWN = 1;
	private static final int GREEN = 2;
	private static final int ORANGE = 3;
	private static final int RED = 4;
	private static final int YELLOW = 5;
	
	void reset() {
		for (int i=0;i!=6;i++) {
			counts[i] = 0;
		}
	}
	
	void count(MMColor color) {
		switch (color) {
			case BLUE: counts[BLUE]++; break;
			case BROWN: counts[BROWN]++; break;
			case GREEN: counts[GREEN]++; break;
			case ORANGE: counts[ORANGE]++; break;
			case RED: counts[RED]++; break;
			case YELLOW: counts[YELLOW]++; break;
			case TRACK: return;
		}
	}
	
	MMColor guess() {
		int color = 0;
		int max = 0;
		for (int i=0;i!=6;i++) { 
			int count = counts[i];
			if (count > 0) {
				System.out.println("Found " + count + " for " + i);
			}
			if (count > max) {
				max = count;
				color = i;
			}
		}
		if (color == BLUE) {
			return MMColor.BLUE;<commit_msg>Pushed down the value of brown<commit_after>package nl.pvanassen.nxt.sorting.detection;

import nl.pvanassen.nxt.sorting.MMColor;

class MMColorCounter {
	private int []counts = new int[6];
	private static final int BLUE = 0;
	private static final int BROWN = 1;
	private static final int GREEN = 2;
	private static final int ORANGE = 3;
	private static final int RED = 4;
	private static final int YELLOW = 5;
	
	void reset() {
		for (int i=0;i!=6;i++) {
			counts[i] = 0;
		}
	}
	
	void count(MMColor color) {
		switch (color) {
			case BLUE: counts[BLUE]++; break;
			case BROWN: counts[BROWN]++; break;
			case GREEN: counts[GREEN]++; break;
			case ORANGE: counts[ORANGE]++; break;
			case RED: counts[RED]++; break;
			case YELLOW: counts[YELLOW]++; break;
			case TRACK: return;
		}
	}
	
	MMColor guess() {
		int color = 0;
		int max = 0;
		for (int i=0;i!=6;i++) { 
			int count = counts[i];
			if (i == BROWN) {
				// Lower count for brown
				count = count / 2;
			}
			if (count > 0) {
				System.out.println("Found " + count + " for " + i);
			}
			if (count > max) {
				max = count;
				color = i;
			}
		}
		if (color == BLUE) {
			return MMColor.BLUE;
{'fraction_non_alphanumeric': 0.1459170013386881, 'fraction_numerical': 0.013833110218652387, 'mean_word_length': 2.9964349376114083, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5933920', 'n_tokens_mistral': 1001, 'n_tokens_neox': 839, 'n_words': 252}