<commit_before>/**
 * @author <NAME> [<EMAIL>]
 */
define('number/round', function () {

    /**
     * Rounds a float to a decimal place, rather than removing the decimal all together.
     * @exports number/round
     *
     * @param  {Number} number - A float that needs rounding.
     * @param  {Number} decimal - The number of decimal places that you want to keep.
     * @return {Number} A float with the corrisponding number of decimal places.
     */
    var round = function (number, decimal) {
        return Math.round(number * Math.pow(10, decimal)) / Math.pow(10, decimal);<commit_msg>Making the decimal length optional.<commit_after>/**
 * @author <NAME> [<EMAIL>]
 */
define('number/round', function () {

    /**
     * Rounds a float to a decimal place, rather than removing the decimal all together.
     * @exports number/round
     *
     * @param  {Number} number - A float that needs rounding.
     * @param  {Number} [decimal] - The number of decimal places that you want to keep.
     * @return {Number} A float with the corrisponding number of decimal places.
     */
    var round = function (number, decimal) {
        decimal = decimal || 0;
        return Math.round(number * Math.pow(10, decimal)) / Math.pow(10, decimal);
{'fraction_non_alphanumeric': 0.12060702875399361, 'fraction_numerical': 0.00718849840255591, 'mean_word_length': 2.831804281345566, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4184713', 'n_tokens_mistral': 364, 'n_tokens_neox': 352, 'n_words': 136}