<commit_before>exports.BattleScripts = {
	gen: 4,
	init: function() {
		for (var i in this.data.Pokedex) {
			var template = this.getTemplate(i);
			if (template.gen > 4) template.isNonstandard = true;
			delete template.abilities['DW'];
		}
		for (var i in this.data.Movedex) {
			var move = this.getMove(i);
			if (move.gen > 4) move.isNonstandard = true;
		}<commit_msg>Fix Gen 4 learnset checking<commit_after>exports.BattleScripts = {
	gen: 4,
	init: function() {
		for (var i in this.data.Pokedex) {
			var template = this.getTemplate(i);
			if (template.gen > 4) template.isNonstandard = true;
			delete template.abilities['DW'];
		}
		for (var i in this.data.Learnsets) {
			var learnset = this.data.Learnsets[i].learnset;
			for (var moveid in learnset) {
				if (typeof learnset[moveid] === 'string') learnset[moveid] = [learnset[moveid]];
				learnset[moveid] = learnset[moveid].filter(function(source) {
					return source[0] !== '5';
				});
				if (!learnset[moveid].length) delete learnset[moveid];
			}
		}
		for (var i in this.data.Movedex) {
			var move = this.getMove(i);
			if (move.gen > 4) move.isNonstandard = true;
		}
{'fraction_non_alphanumeric': 0.15061295971978983, 'fraction_numerical': 0.00788091068301226, 'mean_word_length': 3.5903614457831323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4585131', 'n_tokens_mistral': 477, 'n_tokens_neox': 411, 'n_words': 98}