<commit_before>package bridlensis.env;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class DefaultNameGenerator implements NameGenerator {

	private MessageDigest md;

	public DefaultNameGenerator() {
		try {
			md = MessageDigest.getInstance("MD5");
		} catch (NoSuchAlgorithmException e) {
			throw new RuntimeException(e);
		}
	}

	@Override
	public String generate() {
		md.reset();
		md.update(Double.toHexString(Math.random()).getBytes());
		byte[] digest = md.digest();

		StringBuilder name = new StringBuilder(6);
		name.append('s');
		for (int i = 0; i < 5; i++) {
			int val = (digest[i] & 0xff) + 0x100;
			name.append(Integer.toString(val, 16).substring(1));
		}
		return name.toString();
	}

}<commit_msg>Change DefaultNameGenerator to generate naturally increasing numbers instead of hash values<commit_after>package bridlensis.env;

public class DefaultNameGenerator implements NameGenerator {

	private char prefix;
	private short count;

	public DefaultNameGenerator() {
		prefix = 'b';
		count = 1;
	}

	@Override
	public String generate() {
		if (count == Short.MAX_VALUE) {
			prefix++;
			count = 1;
		}
		StringBuilder name = new StringBuilder(6);
		name.append(prefix);
		name.append(String.format("%05d", count++));
		return name.toString();
	}

}
{'fraction_non_alphanumeric': 0.1267071320182094, 'fraction_numerical': 0.012898330804248861, 'mean_word_length': 4.518828451882845, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2645172', 'n_tokens_mistral': 455, 'n_tokens_neox': 400, 'n_words': 103}