<commit_before>package rapanui.dsl;

public interface Visitor {
	default void visit(RuleSystem ruleSystem) {}
	default void visit(Rule rule) {}
	default void visit(Definition definition) {}

	default void visit(Formula formula) {};
	default void visit(Equation equation) {};
	default void visit(Inclusion inclusion) {};
	default void visit(DefinitionReference reference) {};

	default void visit(Term term) {};
	default void visit(VariableReference variable) {};
	default void visit(ConstantReference constant) {};
	default void visit(BinaryOperation operation) {};
	default void visit(UnaryOperation operation) {};
}
<commit_msg>Visitor: default implementations call supertype overload<commit_after>package rapanui.dsl;

public interface Visitor {
	default void visit(RuleSystem ruleSystem) {}
	default void visit(Rule rule) {}
	default void visit(Definition definition) {}

	default void visit(Formula formula) {};
	default void visit(Equation equation) { visit((Formula)equation); }
	default void visit(Inclusion inclusion) { visit((Inclusion)inclusion); }
	default void visit(DefinitionReference reference) { visit((DefinitionReference)reference); }

	default void visit(Term term) {};
	default void visit(VariableReference variable) { visit((Term)variable); }
	default void visit(ConstantReference constant) { visit((Term)constant); }
	default void visit(BinaryOperation operation) { visit((Term)operation); }
	default void visit(UnaryOperation operation) { visit((Term)operation); }
}

{'fraction_non_alphanumeric': 0.10529845741113347, 'fraction_numerical': 0.0, 'mean_word_length': 7.021505376344086, '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': '6429812', 'n_tokens_mistral': 381, 'n_tokens_neox': 372, 'n_words': 118}