<commit_before>require 'sinatra'

set :public, "."

post "/upload" do
  puts "File uploaded: " + params[:fileData][:filename]
end

run Sinatra::Application<commit_msg>return something, so that the uploader fires the complete events<commit_after>require 'sinatra'

set :public, "."

post "/upload" do
  puts "File uploaded: " + params[:fileData][:filename]
  "{hello: true}"
end

run Sinatra::Application
{'fraction_non_alphanumeric': 0.13895781637717122, 'fraction_numerical': 0.0, 'mean_word_length': 5.733333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4364330', 'n_tokens_mistral': 129, 'n_tokens_neox': 127, 'n_words': 38}