<commit_before>angular.module('InescApp').filter 'round', ->
  (value, sufix='') ->
    decimalCases = if value > 100
                     0
                   else if value > 10
                     1
                   else
                     2

    value.toFixed(decimalCases).replace('.', ',') + ' ' + sufix
<commit_msg>Corrige arredondamento em números negativos<commit_after>angular.module('InescApp').filter 'round', ->
  (value, sufix='') ->
    absValue = Math.abs(value)
    decimalCases = if absValue > 100
                     0
                   else if absValue > 10
                     1
                   else
                     2

    value.toFixed(decimalCases).replace('.', ',') + ' ' + sufix

{'fraction_non_alphanumeric': 0.12239221140472879, 'fraction_numerical': 0.022253129346314324, 'mean_word_length': 1.3452768729641693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7247037', 'n_tokens_mistral': 217, 'n_tokens_neox': 195, 'n_words': 42}