<commit_before>'use strict';

// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
	initializePage();
})

$( window ).load(function() {
      window.scrollTo(0, $(document).height());
 });
/*
 * Function that is called when the document is ready.
 */
function initializePage() {
	$("#sendmessage").click(sendMessage);
	window.scrollTo(0, $(document).height());
}


function sendMessage(e) {
	e.preventDefault();
	var textbox = $("#messagetext");
	console.log("SEND MESSAGE");
	var params = "recipient=" + "" + "&message="+textbox.val();
	console.log(params);
	$.post("/chat/sendMessage", params, displayResults);
}

function displayResults(result) {
	location.href = "/conversation/"+result["_id"];
}<commit_msg>no scrolling to the bottom<commit_after>'use strict';

// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
	initializePage();
})

$( window ).load(function() {
     // window.scrollTo(0, $(document).height());
 });
/*
 * Function that is called when the document is ready.
 */
function initializePage() {
	$("#sendmessage").click(sendMessage);
	//window.scrollTo(0, $(document).height());
}


function sendMessage(e) {
	e.preventDefault();
	var textbox = $("#messagetext");
	console.log("SEND MESSAGE");
	var params = "recipient=" + "" + "&message="+textbox.val();
	console.log(params);
	$.post("/chat/sendMessage", params, displayResults);
}

function displayResults(result) {
	location.href = "/conversation/"+result["_id"];
}
{'fraction_non_alphanumeric': 0.19723865877712032, 'fraction_numerical': 0.0026298487836949377, 'mean_word_length': 5.2122448979591836, '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': '3679515', 'n_tokens_mistral': 476, 'n_tokens_neox': 473, 'n_words': 108}