<commit_before>Template.gameDefinition.helpers({
	'clubName': function() {
		return Clubs.find({}, {
			fields: {
				name: 1
			}
		});
	}
});

Template.gameDefinition.events({
	'click .next': function() {
		var gameInfo = {
			homeTeam: $('#homeTeam').val(),
			awayTeam: $('#awayTeam').val(),
			category: $('#category').val(),
			level: $('#level').val(),
			group: $('#group').val(),
			privateGame: $('#privateGame').is(':checked')
		};
		var gameId = this._id;
		Meteor.call('gameInfosUpdate', gameInfo, gameId, function(error) {
			if (error) {
				return throwError(error.message);
			}
		});
		Router.go('participantsDefinition', {
			_id: this._id
		});
	}
});<commit_msg>fixed gamedefinition action<commit_after>Template.gameDefinition.helpers({
	'clubName': function() {
		return Clubs.find({}, {
			fields: {
				name: 1
			}
		});
	}
});

Template.gameDefinition.events({
	'click .next': function() {
		var gameInfo = {
			homeTeam: $('#homeTeam').val(),
			awayTeam: $('#awayTeam').val(),
			category: $('#category').val(),
			level: $('#level').val(),
			group: $('#group').val(),
			privateGame: $('#privateGame').is(':checked')
		};
		var gameId = this._id;
		Meteor.call('gameInfosUpdate', gameInfo, gameId, function(error) {
			if (error) {
				return throwError(error.message);
			}
		});
		Router.go('participantsDefinition', {
			_id: gameId
		});
	}
});
{'fraction_non_alphanumeric': 0.21988388969521044, 'fraction_numerical': 0.001451378809869376, 'mean_word_length': 3.8900709219858154, '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': '6432836', 'n_tokens_mistral': 545, 'n_tokens_neox': 466, 'n_words': 82}