<commit_before>exports.BattleMovedex = {
	'fling': {
		inherit: true,
		snowball: false,
		sub: false,
		onPrepareHit: function (target, source, move) {
			if (!source.volatiles['fling']) return false;
			var item = this.getItem(source.volatiles['fling'].item);
			this.add("-enditem", source, item.name, '[from] move: Fling');
			if (item.name === 'Snowball') {
				move.snowball = true;
			}
			if (target.volatiles['substitute'] && target.volatiles['substitute'].hp > 0) {
				move.sub = true;
			}
		},
		onAfterMove: function (source, target, move) {
			var sub = false;
			if (move.sub && target.volatiles['substitute'] && target.volatiles['substitute'].hp > 0) {
				sub = true;
			}
			if (!sub && move.snowball) {
				source.side.snowballs++;
				this.add('-message', "Ding! " + source.side.name + " scored a point!");
				this.add('-message', 'Total Score: ' + source.side.name + ': ' + source.side.snowballs + ', ' + target.side.name + ': ' + target.side.snowballs);
			}
		}
	}
}<commit_msg>Removed redundant code in Snowball Fight<commit_after>exports.BattleMovedex = {
	'fling': {
		inherit: true,
		snowball: false,
		onPrepareHit: function (target, source, move) {
			if (!source.volatiles['fling']) return false;
			var item = this.getItem(source.volatiles['fling'].item);
			this.add("-enditem", source, item.name, '[from] move: Fling');
			if (item.name === 'Snowball') {
				move.snowball = true;
			}
		},
		onAfterMove: function (source, target, move) {
			var sub = false;
			if (target.volatiles['substitute'] && target.volatiles['substitute'].hp > 0) {
				sub = true;
			}
			if (!sub && move.snowball) {
				source.side.snowballs++;
				this.add('-message', "Ding! " + source.side.name + " scored a point!");
				this.add('-message', 'Total Score: ' + source.side.name + ': ' + source.side.snowballs + ', ' + target.side.name + ': ' + target.side.snowballs);
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.19062664560294892, 'fraction_numerical': 0.001579778830963665, 'mean_word_length': 3.460093896713615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '489266', 'n_tokens_mistral': 794, 'n_tokens_neox': 685, 'n_words': 134}