<commit_before>String.prototype.capitalize = () ->
  @replace /(?:^|\s)\S/g, (a) -> a.toUpperCase()<commit_msg>Changed implemtation of capitalize and added titleize on String.prototype.<commit_after>String.prototype.capitalize = () ->
  if @[0] and @.toUpperCase
    @[0].toUpperCase() + @.slice(1)

String.prototype.titleize = () ->
  @replace /(?:^|\s)\S/g, (a) -> a.toUpperCase()

{'fraction_non_alphanumeric': 0.21671018276762402, 'fraction_numerical': 0.007832898172323759, 'mean_word_length': 4.1891891891891895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '4036325', 'n_tokens_mistral': 142, 'n_tokens_neox': 139, 'n_words': 24}