<commit_before>package main.testgen;

public class Stringifier {

    public static String makeProblemName(int sx, int sy, int ex, int ey) {
        return sx + "-" + sy + "_" + ex + "-" + ey;
    }

    public static String defaultToString(int seed, int sizeX, int sizeY, int unblockedRatio) {
        StringBuilder sb = new StringBuilder("def_");
        sb.append(intToStr(seed)).append("_");
        sb.append(intToStr(sizeX)).append("_");
        sb.append(intToStr(sizeY)).append("_");
        sb.append(intToStr(unblockedRatio));
        return sb.toString();
    }
    
    public static String automataToString(long seed, int sizeX, int sizeY, int unblockedRatio, int iterations, float resolutionMultiplier, int cutoffOffset, boolean bordersAreBlocked) {
        StringBuilder sb = new StringBuilder("gen_");
        sb.append(sizeX).append("x");
        sb.append(sizeY).append("_");
        sb.append(unblockedRatio).append("_");
        sb.append(iterations).append("_");
        sb.append((int)(resolutionMultiplier*100)).append("_");
        sb.append(cutoffOffset).append("_");
        sb.append(bordersAreBlocked ? "T" : "F").append("_");
        sb.append(longToStr(seed));
        return sb.toString();
    }
<commit_msg>Add an extra digit to automata maze names<commit_after>package main.testgen;

public class Stringifier {

    public static String makeProblemName(int sx, int sy, int ex, int ey) {
        return sx + "-" + sy + "_" + ex + "-" + ey;
    }

    public static String defaultToString(int seed, int sizeX, int sizeY, int unblockedRatio) {
        StringBuilder sb = new StringBuilder("def_");
        sb.append(intToStr(seed)).append("_");
        sb.append(intToStr(sizeX)).append("_");
        sb.append(intToStr(sizeY)).append("_");
        sb.append(intToStr(unblockedRatio));
        return sb.toString();
    }
    
    public static String automataToString(long seed, int sizeX, int sizeY, int unblockedRatio, int iterations, float resolutionMultiplier, int cutoffOffset, boolean bordersAreBlocked) {
        StringBuilder sb = new StringBuilder("gen_");
        sb.append(sizeX).append("x");
        sb.append(sizeY).append("_");
        sb.append(unblockedRatio).append("_");
        sb.append(iterations).append("_");
        sb.append((int)(resolutionMultiplier*1000)).append("_");
        sb.append(cutoffOffset).append("_");
        sb.append(bordersAreBlocked ? "T" : "F").append("_");
        sb.append(longToStr(seed));
        return sb.toString();
    }

{'fraction_non_alphanumeric': 0.14758675708017552, 'fraction_numerical': 0.002792181890706023, 'mean_word_length': 3.2364864864864864, 'pattern_counts': {'":': 0, '<': 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': '4102922', 'n_tokens_mistral': 767, 'n_tokens_neox': 756, 'n_words': 161}