<commit_before>package me.otisdiver.otisarena.utils;

import java.util.Random;

public class RandUtils {

    private static Random randomSet = new Random();
    
    /** Get a random integer less than a given value.
     * 
     * @param max the maximum (exclusive) value of the number
     * @return a pseudo randomly generated number above 0
     */
    public static int rand(int max) {
        return randomSet.nextInt(max);
    }
    
    /** Get a boolean with a % chance of being true
     * 
     * @param percent chance of returning true
     * @return true % of the time
     */
    public static boolean percentChance(int percent) {
        if (percent == 0) return false;
        return (randomSet.nextInt(101) <= percent);
    }
}<commit_msg>fix RandUtils:percentChance (inverted returns)<commit_after>package me.otisdiver.otisarena.utils;

import java.util.Random;

public class RandUtils {

    private static Random randomSet = new Random();
    
    /** Get a random integer less than a given value.
     * 
     * @param max the maximum (exclusive) value of the number
     * @return a pseudo randomly generated number above 0
     */
    public static int rand(int max) {
        return randomSet.nextInt(max);
    }
    
    /** Get a boolean with a % chance of being true
     * 
     * @param percent chance of returning true
     * @return true % of the time
     */
    public static boolean percentChance(int percent) {
        if (percent == 0) return false;
        return (percent <= randomSet.nextInt(100) + 1);
    }
}
{'fraction_non_alphanumeric': 0.08779857972885732, 'fraction_numerical': 0.0071013557133634605, 'mean_word_length': 2.506787330316742, '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': '11840', 'n_tokens_mistral': 447, 'n_tokens_neox': 427, 'n_words': 162}