<commit_before>var FuzzyTime = {
    format: function ($diff) {
        var $breakpoints = {
                1: ['second', 'seconds'],
                60: ['minute', 'minutes'],
                3600: ['hour', 'hours'],
                86400: ['day', 'days']
            },
            $keys = [],
            i,
            $prev_value = 0,
            $text = '',
            $value,
            $unit,
            $units;
    
        if (typeof $diff !== 'number' || isNaN($diff)) {
            throw new Error('Only numbers are accepted');
        }
        
        for (i in $breakpoints) {
            if ($breakpoints.hasOwnProperty(i)) {
                $keys.push(i);
            }
        }
        
        do {
            $value = $keys.pop();
            $unit = $breakpoints[$value];
            
            $units = $diff;
            if ($prev_value) {
                $units %= $prev_value;
            }
            
            $units /= $value;
            $units = Math.floor(Math.abs($units));
            
            if ($units) {
                $text += $units + ' ' + $unit[($units > 1) ? 1 : 0] + ' ';
            }
            
            $prev_value = $value;
            
        } while ($keys.length);
        
        if ($diff < 0) {
            $text += 'before';
        } else {
            $text += 'ago';
        }
        
        return $text;
    }
};<commit_msg>Removed $ signs<commit_after>var FuzzyTime = {
    format: function (diff) {
        var breakpoints = {
                1: ['second', 'seconds'],
                60: ['minute', 'minutes'],
                3600: ['hour', 'hours'],
                86400: ['day', 'days']
            },
            keys = [],
            i,
            prev_value = 0,
            text = '',
            value,
            unit,
            units;
    
        if (typeof diff !== 'number' || isNaN(diff)) {
            throw new Error('Only numbers are accepted');
        }
        
        for (i in breakpoints) {
            if (breakpoints.hasOwnProperty(i)) {
                keys.push(i);
            }
        }
        
        do {
            value = keys.pop();
            unit = breakpoints[value];
            
            units = diff;
            if (prev_value) {
                units %= prev_value;
            }
            
            units /= value;
            units = Math.floor(Math.abs(units));
            
            if (units) {
                text += units + ' ' + unit[(units > 1) ? 1 : 0] + ' ';
            }
            
            prev_value = value;
            
        } while (keys.length);
        
        if (diff < 0) {
            text += 'before';
        } else {
            text += 'ago';
        }
        
        return text;
    }
};
{'fraction_non_alphanumeric': 0.13941789435860583, 'fraction_numerical': 0.01221703197987783, 'mean_word_length': 0.9029391660970608, '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': '459913', 'n_tokens_mistral': 784, 'n_tokens_neox': 751, 'n_words': 165}