<commit_before>package fr.liglab.lcm.internals.transactions;

import gnu.trove.iterator.TIntIterator;
import gnu.trove.list.TIntList;
import gnu.trove.list.array.TIntArrayList;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class BasicTransactionsList extends TransactionsList {

	private List<TIntList> transactions = new ArrayList<TIntList>();
	
	@Override
	public int size() {
		return this.transactions.size();
	}
	
	@Override
	public Iterator<IterableTransaction> iterator() {
		final Iterator<TIntList> iter = this.transactions.iterator();
		return new Iterator<IterableTransaction>() {

			@Override
			public void remove() {
				iter.remove();
			}

			@Override
			public IterableTransaction next() {
				final TIntList l = iter.next();
				return new IterableTransaction() {

					@Override<commit_msg>debugging - adding toString to BasicTransactionsList<commit_after>package fr.liglab.lcm.internals.transactions;

import gnu.trove.iterator.TIntIterator;
import gnu.trove.list.TIntList;
import gnu.trove.list.array.TIntArrayList;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class BasicTransactionsList extends TransactionsList {

	private List<TIntList> transactions = new ArrayList<TIntList>();
	
	@Override
	public int size() {
		return this.transactions.size();
	}
	
	@Override
	public String toString() {
		return this.transactions.toString();
	}
	
	@Override
	public Iterator<IterableTransaction> iterator() {
		final Iterator<TIntList> iter = this.transactions.iterator();
		return new Iterator<IterableTransaction>() {

			@Override
			public void remove() {
				iter.remove();
			}

			@Override
			public IterableTransaction next() {
				final TIntList l = iter.next();
				return new IterableTransaction() {

					@Override
{'fraction_non_alphanumeric': 0.10460021905805038, 'fraction_numerical': 0.0, 'mean_word_length': 4.638888888888889, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7592685', 'n_tokens_mistral': 619, 'n_tokens_neox': 543, 'n_words': 125}