<commit_before><commit_msg>form submission script<commit_after>var email = "<EMAIL>"; // query mongo


var inputs = document.getElementsByTagName('input'),
    selects = document.getElementsByTagName('select');

 
// fill in all dropdowns with first option after default
for (var j=0;j<selects.length;j++ ) {
  selects[j].options[1].selected = true;
}


for (var j in inputs) {

  // fill in all text inputs  
  if (inputs[j].type === "text") {
    inputs[j].value = email;  
  } 
  // fill in all radio inputs
  // TODO: check that radio buttons not already checked
  else if (inputs[j].type === "checkbox") {
    inputs[j].click(); 
  }

  // click all submits (do last)
  // TODO: Make this only click the last submit
  // TODO: Use form submit instead
  else if (inputs[j].type === "submit" || inputs[j].type === "Submit") {
    inputs[j].click();
  }
  
}



{'fraction_non_alphanumeric': 0.1541135573580533, 'fraction_numerical': 0.002317497103128621, 'mean_word_length': 3.235294117647059, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '5464917', 'n_tokens_mistral': 285, 'n_tokens_neox': 273, 'n_words': 84}