<commit_before>var joinOrCreate;
var responseData;

$(function() {
    loadHome();
 });

function loadHome() {
    $("#root").hide().load("home.part.html", function() {
	formDefaultBehavior("#create-new-game", "/create-room/", {username: {
		required: true,
		minlength: 3}});
	formDefaultBehavior("#join-game", "/join-room/", {
	    username: { url: '/validate-username', required: true, minlength: 3},
	    code: { url: '/validate-code/', required: true}});
    }).fadeIn('slow');
}
<commit_msg>rearrange the parameters in calls of formDefaultBehavior in script.js for better readability<commit_after>var joinOrCreate;
var responseData;

$(function() {
    loadHome();
 });

function loadHome() {
    $("#root").hide().load("home.part.html", function() {
	formDefaultBehavior("#create-new-game", "/create-room/", {
	    username: {required: true, minlength: 3}
	});
	formDefaultBehavior("#join-game", "/join-room/", {
	    username: {required: true, minlength: 3, url: '/validate-username'},
	    code: {required: true, url: '/validate-code/'}
	});
    }).fadeIn('slow');
}

{'fraction_non_alphanumeric': 0.2053903345724907, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 4.4393939393939394, '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': '6452626', 'n_tokens_mistral': 354, 'n_tokens_neox': 340, 'n_words': 75}