<commit_before>'use strict'

const
  REF_NUMBER_MULTIPLIERS = [7, 3, 1],
  FINNISH_REF_NUMBER_REGEX = /^(\d{4,20}|RF\d{6,23})$/i,
  FINNISH_IBAN_REGEX = /^FI\d{16}$/,
  FINNISH_VIRTUAL_BAR_CODE_REGEX = /^[45]\d{53}$/,
  FINNISH_DATE_REGEX = /^(\d\d?)\.(\d\d?)\.(\d{4})$/,
  IBAN_OFFSET_FROM_ASCIICODE = -55


function removeAllWhiteSpaces(str) {
  return str.replace(/\s+/g, '')
}

function removeLeadingZeros(str) {
  return str.replace(/^0+/, '')
}
<commit_msg>Fix maximum international reference length to 24<commit_after>'use strict'

const
  REF_NUMBER_MULTIPLIERS = [7, 3, 1],
  FINNISH_REF_NUMBER_REGEX = /^(\d{4,20}|RF\d{6,22})$/i,
  FINNISH_IBAN_REGEX = /^FI\d{16}$/,
  FINNISH_VIRTUAL_BAR_CODE_REGEX = /^[45]\d{53}$/,
  FINNISH_DATE_REGEX = /^(\d\d?)\.(\d\d?)\.(\d{4})$/,
  IBAN_OFFSET_FROM_ASCIICODE = -55


function removeAllWhiteSpaces(str) {
  return str.replace(/\s+/g, '')
}

function removeLeadingZeros(str) {
  return str.replace(/^0+/, '')
}

{'fraction_non_alphanumeric': 0.21436004162330904, 'fraction_numerical': 0.04162330905306972, 'mean_word_length': 4.374301675977653, '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': '5799754', 'n_tokens_mistral': 481, 'n_tokens_neox': 436, 'n_words': 56}