<commit_before>var num_of_dice = localStorage.num_of_dice == undefined ? 1 : parseInt(localStorage.num_of_dice);
var max_size_of_dice = localStorage.max_size_of_dice == undefined ? 12 : parseInt(localStorage.max_size_of_dice);

function rollDice(size) {
    return Math.ceil(Math.random()*size);
}

function rollManyDices(number, size) {
    if (number <= 0) {
        return false;
    }
  
    var result = [];
  
    while(number-- > 0) {
        result.push(roleDice(size));
    }
  
    return result;
}

<commit_msg>Update core.js<commit_after>var num_of_dice = localStorage.num_of_dice == undefined ? 1 : parseInt(localStorage.num_of_dice);
var max_size_of_dice = localStorage.max_size_of_dice == undefined ? 12 : parseInt(localStorage.max_size_of_dice);

function rollDice(size) {
    return Math.ceil(Math.random()*size);
}

function rollMultiDices(number, size) {
    if (number <= 0) {
        return false;
    }
  
    var result = [];
  
    while(number-- > 0) {
        result.push(rollDice(size));
    }
  
    return result;
}


{'fraction_non_alphanumeric': 0.12523900573613767, 'fraction_numerical': 0.009560229445506692, 'mean_word_length': 3.4553191489361703, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5575786', 'n_tokens_mistral': 384, 'n_tokens_neox': 376, 'n_words': 63}