<commit_before>###
 return true if this contains targetStr from searchStartIndex.
###
if not ('contains' in String.prototype)
  String.prototype.contains = (targetStr, searchStartIndex) ->
    return -1 isnt String.prototype.indexOf.call(this, targetStr, searchStartIndex)


###
 return true if this is null or undefined or '' or '  '.
###
if not ('isBlank' in String.prototype)
  String.prototype.isBlank = () ->
    return !this? || this.trim?() is ''


@util = {

  ###
   get url
  ###
  getUrl: (url) ->
    url = $.trim(url)
    url = url.match(/(^https?:\/\/.+?)\//i, "")[1]


}
<commit_msg>add Array#clear<commit_after>###
 return true if this contains targetStr from searchStartIndex.
###
if not ('contains' in String.prototype)
  String.prototype.contains = (targetStr, searchStartIndex) ->
    return -1 isnt String.prototype.indexOf.call(this, targetStr, searchStartIndex)


###
 return true if this is null or undefined or '' or '  '.
###
if not ('isBlank' in String.prototype)
  String.prototype.isBlank = () ->
    return !this? || this.trim?() is ''

###
 clear array.
###
if not ('clear' in Array.prototype)
  Array.prototype.clear = () ->
    while (this.length > 0) then this.pop()
    return


@util = {

  ###
   get url
  ###
  getUrl: (url) ->
    url = $.trim(url)
    url = url.match(/(^https?:\/\/.+?)\//i, "")[1]


}

{'fraction_non_alphanumeric': 0.18229166666666666, 'fraction_numerical': 0.003720238095238095, 'mean_word_length': 3.190031152647975, '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': '7203909', 'n_tokens_mistral': 457, 'n_tokens_neox': 447, 'n_words': 121}