<commit_before>exports.balance = function(rm) {
    var sorted_instances = rm.getInstances().sort(function(a, b) {
        return a.load - b.load;
    });

    return sorted_instances[0];
}<commit_msg>Randomized the loadbalancer for easier testing<commit_after>exports.balance = function(rm) {
    var sorted_instances = rm.getInstances().sort(function(a, b) {
//        return a.load - b.load;
        return 0.5 - Math.random();
    });

    return sorted_instances[0];
}
{'fraction_non_alphanumeric': 0.13953488372093023, 'fraction_numerical': 0.008456659619450317, 'mean_word_length': 3.27027027027027, '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': '2721944', 'n_tokens_mistral': 156, 'n_tokens_neox': 151, 'n_words': 30}