<commit_before>window.addEventListener( 'mousedown', function (event) {
    var velocity = 35 // TODO: Temporary value for testing

    var inputValues = {
        x: event.clientX,
        y: event.clientY,
        velocity: velocity
    };

    var event = new CustomEvent('generateHammer', { detail: {inputValues: inputValues} });
    window.dispatchEvent(event);
});<commit_msg>adding onload that checks the url for params and fires the generateHammer event if they are present<commit_after>window.addEventListener( 'mousedown', function (event) {
    var velocity = 35 // TODO: Temporary value for testing

    var inputValues = {
        x: event.clientX,
        y: event.clientY,
        velocity: velocity
    };

    var event = new CustomEvent('generateHammer', { detail: {inputValues: inputValues} });
    window.dispatchEvent(event);
});


window.onload = function () {
	var searchParams = new URLSearchParams(window.location.search);

	if (window.location.search) {
		var inputValues = {
			x: searchParams.get('x'),
			y: searchParams.get('y'),
			velocity: searchParams.get('velocity')
		};

		var event = new CustomEvent('generateHammer', { detail: {inputValues: inputValues} });
		window.dispatchEvent(event);
	}
};
{'fraction_non_alphanumeric': 0.12327656123276562, 'fraction_numerical': 0.0032441200324412004, 'mean_word_length': 3.6566037735849055, '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': '7631421', 'n_tokens_mistral': 376, 'n_tokens_neox': 346, 'n_words': 96}