<commit_before><html>
<head>
<script>
function showUser(str1, str2) {
    if (str == "") {
        document.getElementById("txtHint").innerHTML = "";
        return;
    } else { 
        if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp = new XMLHttpRequest();
        } else {
            // code for IE6, IE5
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                document.getElementById("txtHint").innerHTML = xmlhttp.responseText;
            }
        };
        xmlhttp.open("GET","dbprojectform2.php?q="+str1"&r="+str2,true);
        xmlhttp.send();
    }
}
</script>
</head>
<body>

<form>
<select name="table1">
  <option value="">Select a person:</option>
  <option value="Peter">Peter</option>
  <option value="Lois">Lois</option>
  <option value="Joseph">Joseph</option>
  <option value="Glenn">Glenn</option>
  </select>
</form>

<form>
<select name="table2">
  <option value="">Select a hometown:</option>
  <option value="Quahog">Quahog:</option>
  <option value="Newport">Newport:</option>

<button onclick="showUser(table1.value, table2.value)">Submit Query</button>
</form>

<br>
<div id="txtHint"><b>Person info will be listed here...</b></div>

</body>
</html><commit_msg>2 variable form + button<commit_after><html>
<head>
<script>
function showUser(str1, str2) {
    if (str == "") {
        document.getElementById("txtHint").innerHTML = "";
        return;
    } else { 
        if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp = new XMLHttpRequest();
        } else {
            // code for IE6, IE5
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                document.getElementById("txtHint").innerHTML = xmlhttp.responseText;
            }
        };
        xmlhttp.open("GET","dbprojectform2.php?q="+str1"&r="+str2,true);
        xmlhttp.send();
    }
}
</script>
</head>
<body>

<form>
<select name="table1">
  <option value="">Select a person:</option>
  <option value="Peter">Peter</option>
  <option value="Lois">Lois</option>
  <option value="Joseph">Joseph</option>
  <option value="Glenn">Glenn</option>
  </select>
</form>

<form>
<select name="table2">
  <option value="">Select a hometown:</option>
  <option value="Quahog">Quahog</option>
  <option value="Newport">Newport</option>
  </select>
</form>

<button onclick="showUser(table1.value, table2.value)">Submit Query</button>

<br>
<div id="txtHint"><b>Person info will be listed here...</b></div>

</body>
</html>
{'fraction_non_alphanumeric': 0.17744786143513608, 'fraction_numerical': 0.01166489925768823, 'mean_word_length': 2.991537376586742, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 80, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '2804975', 'n_tokens_mistral': 937, 'n_tokens_neox': 896, 'n_words': 179}