<commit_before>package lunatrius.schematica;

import cpw.mods.fml.common.ITickHandler;
import cpw.mods.fml.common.TickType;

import java.util.EnumSet;

public class Ticker implements ITickHandler {
	private EnumSet<TickType> ticks = EnumSet.noneOf(TickType.class);

	public Ticker(EnumSet<TickType> tickTypes) {
		this.ticks = tickTypes;
	}

	@Override
	public void tickStart(EnumSet<TickType> tickTypes, Object... tickData) {
		tick(tickTypes, true);
	}

	@Override
	public void tickEnd(EnumSet<TickType> tickTypes, Object... tickData) {
		tick(tickTypes, false);
	}

	private void tick(EnumSet<TickType> tickTypes, boolean start) {
		for (TickType tick : tickTypes) {
			if (!Schematica.instance.onTick(tick, start)) {
				this.ticks.remove(tick);
				this.ticks.removeAll(tick.partnerTicks());
			}
		}
	}

	@Override
	public EnumSet<TickType> ticks() {
		return this.ticks;
	}

	@Override
	public String getLabel() {
		return "MCCapesTicker";<commit_msg>Getting rid of a typo caused by my laziness.<commit_after>package lunatrius.schematica;

import cpw.mods.fml.common.ITickHandler;
import cpw.mods.fml.common.TickType;

import java.util.EnumSet;

public class Ticker implements ITickHandler {
	private EnumSet<TickType> ticks = EnumSet.noneOf(TickType.class);

	public Ticker(EnumSet<TickType> tickTypes) {
		this.ticks = tickTypes;
	}

	@Override
	public void tickStart(EnumSet<TickType> tickTypes, Object... tickData) {
		tick(tickTypes, true);
	}

	@Override
	public void tickEnd(EnumSet<TickType> tickTypes, Object... tickData) {
		tick(tickTypes, false);
	}

	private void tick(EnumSet<TickType> tickTypes, boolean start) {
		for (TickType tick : tickTypes) {
			if (!Schematica.instance.onTick(tick, start)) {
				this.ticks.remove(tick);
				this.ticks.removeAll(tick.partnerTicks());
			}
		}
	}

	@Override
	public EnumSet<TickType> ticks() {
		return this.ticks;
	}

	@Override
	public String getLabel() {
		return "SchematicaTicker";
{'fraction_non_alphanumeric': 0.12051282051282051, 'fraction_numerical': 0.0, 'mean_word_length': 4.704678362573099, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3388921', 'n_tokens_mistral': 731, 'n_tokens_neox': 682, 'n_words': 141}