<commit_before>do ->

  ## -- Private -------------------------------------------------------------

  parrot._DEFAULT =
    METHOD   : 'GET'
    PROTOCOL : 'http'
    SEND     : {}

  parrot._partial = (func) -> #, 0..n args
    args = Array::slice.call(arguments, 1)
    ->
      allArguments = args.concat(Array::slice.call(arguments))
      func.apply this, allArguments

  # type, method, send = {}, background = false
  parrot._createAjaxPromise = (obj) ->
    new Promise((resolve, reject) =>
      parrot.$.ajax
        type        : obj.method or @_DEFAULT.METHOD
        url         : obj.url
        data        : obj.send or @_DEFAULT.SEND
        dataType    : 'json'
        contentType : 'application/x-www-form-urlencoded'
        success: (xhr) -><commit_msg>Minimal changes<commit_after>do ->

  ## -- Private -------------------------------------------------------------

  parrot._DEFAULT =
    METHOD   : 'GET'
    PROTOCOL : 'http'
    SEND     : {}

  parrot._partial = (func) -> #, 0..n args
    args = Array::slice.call(arguments, 1)
    ->
      allArguments = args.concat(Array::slice.call(arguments))
      func.apply this, allArguments

  parrot._createAjaxPromise = (obj) ->
    new Promise((resolve, reject) =>
      parrot.$.ajax
        type        : obj.method or @_DEFAULT.METHOD
        url         : obj.url
        data        : obj.send or @_DEFAULT.SEND
        dataType    : 'json'
        contentType : 'application/x-www-form-urlencoded'
        success: (xhr) ->
{'fraction_non_alphanumeric': 0.2058432934926959, 'fraction_numerical': 0.0026560424966799467, 'mean_word_length': 1.576068376068376, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6864700', 'n_tokens_mistral': 452, 'n_tokens_neox': 435, 'n_words': 90}