<commit_before>package org.peg4d.vm;

public class Opcode {
	public Instruction inst;
	public int[] ndata;
	public String name = null;
	
	public Opcode(Instruction inst) {
		this.inst = inst;
		this.ndata = new int[1];
	}
	
	public Opcode(Instruction inst, int ndata) {
		this.inst = inst;
		this.ndata = new int[1];
		this.ndata[0] = ndata;
	}
	
	public Opcode(Instruction inst, int ndata1, int ndata2) {
		this.inst = inst;
		this.ndata = new int[2];
		this.ndata[0] = ndata1;
		this.ndata[1] = ndata2;
	}
	
	public Opcode(Instruction inst, String name) {
		this.inst = inst;
		this.name = name;
	}
	
	public String toString() {
		if (this.name == null) {
			return inst.toString() + " " + ndata;
		}
		return inst.toString() + " " + name;
	}
	
	public final boolean isJumpCode() {
    	return this.inst.compareTo(Instruction.IFFAIL) <= 0;
    }
}<commit_msg>fixed opcode<commit_after>package org.peg4d.vm;

public class Opcode {
	public Instruction inst;
	public int[] ndata = null;
	public String name = null;
	
	public Opcode(Instruction inst) {
		this.inst = inst;
	}
	
	public Opcode(Instruction inst, int ndata) {
		this.inst = inst;
		this.ndata = new int[1];
		this.ndata[0] = ndata;
	}
	
	public Opcode(Instruction inst, int ndata1, int ndata2) {
		this.inst = inst;
		this.ndata = new int[2];
		this.ndata[0] = ndata1;
		this.ndata[1] = ndata2;
	}
	
	public Opcode(Instruction inst, String name) {
		this.inst = inst;
		this.name = name;
	}
	
	public String toString() {
		if (this.name == null) {
			if (this.ndata != null) {
				if (this.ndata.length == 1) {
					return inst.toString() + " " + ndata[0];
				}
				return inst.toString() + " " + ndata[0] + "-" + ndata[1];
			}
			else {
				return inst.toString();
			}
		}
		return inst.toString() + " " + name;
	}
	
	public final boolean isJumpCode() {
    	return this.inst.compareTo(Instruction.IFFAIL) <= 0;
    }
}
{'fraction_non_alphanumeric': 0.1442970822281167, 'fraction_numerical': 0.014323607427055704, 'mean_word_length': 3.055913978494624, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6174026', 'n_tokens_mistral': 786, 'n_tokens_neox': 712, 'n_words': 170}