<commit_before>// if this is the iframe
// reload the parent
Event.observe(window, 'load',
  function() {
    try
    {
      if (self.parent.frames.length != 0) {
    		self.parent.location=document.location;
      }
    }
    catch (Exception) {}
  }
);

Event.addBehavior({
  "input.submit:click" : function () {
    $('progress').show();

    //add iframe and set form target to this iframe
    $$("body").first().insert({bottom: "<iframe name='progressFrame' style='display:none; width:0; height:0; position: absolute; top:30000px;'></iframe>"});    
    $(this).up('form').writeAttribute("target", "progressFrame");

    $(this).up('form').submit();<commit_msg>some more debugging output in upload.js<commit_after>// if this is the iframe
// reload the parent
Event.observe(window, 'load',
  function() {
    try
    {
			alert("Frames length = "+self.parent.frames.length);
			alert("self is "+self);
			alert("parent is "+self.parent);
			
      if (self.parent.frames.length != 0) {
    		self.parent.location=document.location;
      }
    }
    catch (Exception) {}
  }
);

Event.addBehavior({
  "input.submit:click" : function () {
    $('progress').show();

    //add iframe and set form target to this iframe
    $$("body").first().insert({bottom: "<iframe name='progressFrame' style='display:none; width:0; height:0; position: absolute; top:30000px;'></iframe>"});    
    $(this).up('form').writeAttribute("target", "progressFrame");

    $(this).up('form').submit();
{'fraction_non_alphanumeric': 0.1901550910316925, 'fraction_numerical': 0.01078894133513149, 'mean_word_length': 3.5521472392638036, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3839284', 'n_tokens_mistral': 498, 'n_tokens_neox': 462, 'n_words': 101}