<commit_before>package org.oakgp.operator;

import static org.oakgp.Type.INTEGER;

import org.oakgp.Arguments;
import org.oakgp.Assignments;
import org.oakgp.Signature;
import org.oakgp.node.ConstantNode;

abstract class ArithmeticOperator implements Operator {
	public static final ConstantNode ZERO = new ConstantNode(0);
	public static final ConstantNode ONE = new ConstantNode(1);
	private static final Signature SIGNATURE = Signature.createSignature(INTEGER, INTEGER, INTEGER);

	@Override
	public final int evaluate(Arguments arguments, Assignments assignments) {
		return evaluate(arguments.get(0).evaluate(assignments), arguments.get(1).evaluate(assignments));
	}

	protected abstract int evaluate(int arg1, int arg2);<commit_msg>added TODO<commit_after>package org.oakgp.operator;

import static org.oakgp.Type.INTEGER;

import org.oakgp.Arguments;
import org.oakgp.Assignments;
import org.oakgp.Signature;
import org.oakgp.node.ConstantNode;

abstract class ArithmeticOperator implements Operator {
	public static final ConstantNode ZERO = new ConstantNode(0); // TODO move or make private
	public static final ConstantNode ONE = new ConstantNode(1); // TODO move or make private
	private static final Signature SIGNATURE = Signature.createSignature(INTEGER, INTEGER, INTEGER);

	@Override
	public final int evaluate(Arguments arguments, Assignments assignments) {
		return evaluate(arguments.get(0).evaluate(assignments), arguments.get(1).evaluate(assignments));
	}

	protected abstract int evaluate(int arg1, int arg2);
{'fraction_non_alphanumeric': 0.08752449379490529, 'fraction_numerical': 0.007838014369693011, 'mean_word_length': 6.295238095238095, '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': '6885894', 'n_tokens_mistral': 450, 'n_tokens_neox': 423, 'n_words': 126}