<commit_before>$ ->
  return unless $('#new_document')

  $('#files_uploader').fileupload
    dataType: 'json'
    maxFileSize: 10000000
    acceptFileTypes: /(\.|\/)(pdf|txt|doc|docx|html)$/i
    #limitConcurrentUploads: 5
    #progressall: (e, data) ->
      #progress = parseInt(data.loaded / data.total * 100, 10)
      #$('#progress .bar').css "width", "#{progress}%"
    #add: (e, data) ->
<commit_msg>[aphrodite] Add a limit to file upload<commit_after>$ ->
  return unless $('#new_document')

  $('#files_uploader').fileupload
    dataType: 'json'
    maxFileSize: 10000000
    acceptFileTypes: /(\.|\/)(pdf|txt|doc|docx|html)$/i
    limitConcurrentUploads: 5

{'fraction_non_alphanumeric': 0.18862275449101795, 'fraction_numerical': 0.0344311377245509, 'mean_word_length': 3.7785714285714285, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '4146366', 'n_tokens_mistral': 255, 'n_tokens_neox': 231, 'n_words': 47}