<commit_before><script type="text/javascript">
  /* submit and close Popup window for creating new object after clicking new link in fancy_multiselect_box.
  */
    var text,value,child_list_id;
    text = "<%= child.title %>";
    value = "<%= child.id %>";
    child_type = "<%= child.class.name.downcase%>";
    parent_type ="<%= parent%>";
    if (!window.opener) {
        alert("New "+ child_type +" was created but its parent window was closed.");
        window.close();
    }
    child_list_id = window.opener.document.getElementById("possible_"+ parent_type +"_" +child_type +"_ids");
    child_list_id.appendChild(new Option(text, value));
    child_list_id.selectedIndex = child_list_id.options.length - 1;
    child_list_id.onchange();
    alert("New "+ child_type +" was created! You can add it now.");
    window.close();
</script><commit_msg>fixing bug for including new samples in assay---add the option to the hidden multiselect<commit_after><script type="text/javascript">
  /* submit and close Popup window for creating new object after clicking new link in fancy_multiselect_box.
  */
    var text,value,child_list_id,hidden_child_list;
    text = "<%= child.title %>";
    value = "<%= child.id %>";
    child_type = "<%= child.class.name.downcase%>";
    parent_type ="<%= parent%>";
    if (!window.opener) {
        alert("New "+ child_type +" was created but its parent window was closed.");
        window.close();
    }

    hidden_child_list =  window.opener.document.getElementById(parent_type +"_" +child_type +"_ids");
    hidden_child_list.appendChild(new Option(text, value));

    child_list_id = window.opener.document.getElementById("possible_"+ parent_type +"_" +child_type +"_ids");
    child_list_id.appendChild(new Option(text, value));
    child_list_id.selectedIndex = child_list_id.options.length - 1;
    child_list_id.onchange();
    alert("New "+ child_type +" was created! You can add it now.");
    window.close();
</script>
{'fraction_non_alphanumeric': 0.14445007602635582, 'fraction_numerical': 0.0010136847440446021, 'mean_word_length': 3.9473684210526314, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7579298', 'n_tokens_mistral': 618, 'n_tokens_neox': 598, 'n_words': 145}