<commit_before>function ucwords (str) {
  // http://kevin.vanzonneveld.net
  // +   original by: <NAME> (http://www.jsfromhell.com)
  // +   improved by: <NAME>
  // +   bugfixed by: <NAME>
  // +   improved by: Robin
  // +      input by: James (http://www.james-bell.co.uk/)
  // +   improved by: <NAME> (http://kevin.vanzonneveld.net)
  // *     example 1: ucwords('kevin van  zonneveld');
  // *     returns 1: '<NAME>  Zonneveld'
  // *     example 2: ucwords('HELLO WORLD');
  // *     returns 2: 'HELLO WORLD'
  return (str + '').replace(/^([a-z])|\s+([a-z])/g, function ($1) {
    return $1.toUpperCase();
  });
}<commit_msg>Uppercase accented characters<commit_after>function ucwords (str) {
  // http://kevin.vanzonneveld.net
  // +   original by: <NAME> (http://www.jsfromhell.com)
  // +   improved by: <NAME>
  // +   bugfixed by: <NAME>
  // +   improved by: Robin
  // +      input by: James (http://www.james-bell.co.uk/)
  // +   improved by: <NAME>d (http://kevin.vanzonneveld.net)
  // *     example 1: ucwords('kevin van  zonneveld');
  // *     returns 1: '<NAME>  Zonneveld'
  // *     example 2: ucwords('HELLO WORLD');
  // *     returns 2: 'HELLO WORLD'
  return (str + '').replace(/^([a-z\u00E0-\u00FC])|\s+([a-z\u00E0-\u00FC])/g, function ($1) {
    return $1.toUpperCase();
  });
}
{'fraction_non_alphanumeric': 0.21543162719633308, 'fraction_numerical': 0.01680672268907563, 'mean_word_length': 2.4564643799472297, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6691242', 'n_tokens_mistral': 542, 'n_tokens_neox': 525, 'n_words': 100}