<commit_before>package proto

import (
  pb "goprotobuf.googlecode.com/hg/proto"
)

func (ins *Instruction) Iterate(itFunc func(*Instruction)) {
	itFunc(ins)
	if ins.Children == nil {
		return
	}
	for _, child := range(ins.Children) {
		child.Iterate(itFunc)
	}
}

func (ins *Instruction) IterateAll(itFunc func(*Instruction)) {
	itFunc(ins)
	for _, child := range(ins.Arguments) {
		child.Iterate(itFunc)
	}
	for _, child := range(ins.Children) {
		child.Iterate(itFunc)
	}
}

func ListInstructions(instrs ...*Instruction) []*Instruction {<commit_msg>add in some extra checks<commit_after>package proto

import (
  pb "goprotobuf.googlecode.com/hg/proto"
)

func (ins *Instruction) Iterate(itFunc func(*Instruction)) {
	itFunc(ins)
	if ins.Children == nil {
		return
	}
	for _, child := range(ins.Children) {
		child.Iterate(itFunc)
	}
}

func (ins *Instruction) IterateAll(itFunc func(*Instruction)) {
	itFunc(ins)
	if ins.Arguments != nil {
		for _, child := range(ins.Arguments) {
			child.Iterate(itFunc)
		}
	}
	if ins.Children != nil {
		for _, child := range(ins.Children) {
			child.Iterate(itFunc)
		}
	}
}

func ListInstructions(instrs ...*Instruction) []*Instruction {
{'fraction_non_alphanumeric': 0.14915254237288136, 'fraction_numerical': 0.0, 'mean_word_length': 4.343891402714932, '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': '916038', 'n_tokens_mistral': 445, 'n_tokens_neox': 438, 'n_words': 84}