<commit_before>var each = require("./each.js")
var random = require("./random.js")

module.exports = shuffle

function shuffle(obj) {
    var rand
    var index = 0
    var shuffled = []

    each(obj, function(value) {
        rand = random(index++)
        shuffled[index - 1] = shuffled[rand];
        shuffled[rand] = value
    })

    return shuffled
}<commit_msg>correct style of shuffled function<commit_after>var each = require("./each.js")
var random = require("./random.js")

module.exports = shuffle

function shuffle(obj) {
    var rand
    var index = 0
    var shuffled = []

    each(obj, function(value) {
        rand = random(index++)
        shuffled[index - 1] = shuffled[rand]
        shuffled[rand] = value
    })

    return shuffled
}
{'fraction_non_alphanumeric': 0.13324538258575197, 'fraction_numerical': 0.005277044854881266, 'mean_word_length': 2.6666666666666665, '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': '2671081', 'n_tokens_mistral': 246, 'n_tokens_neox': 232, 'n_words': 60}