<commit_before>
#include <algorithm>
using namespace std;

#include <internals/transactions/TransactionsList.hpp>
#include <internals/transactions/ReusableTransactionIterator.hpp>
#include <internals/transactions/TransactionIterator.hpp>
#include <internals/transactions/TransactionsWriter.hpp>

namespace internals {
namespace transactions {

TransactionsList::TransactionsList() {
}

TransactionsList::~TransactionsList() {
}

void TransactionsList::compress(int32_t prefixEnd) {
	vector<int32_t> *sortList = new vector<int32_t>(size());
	unique_ptr<Iterator<int32_t> > idIter = getIdIterator();
	for (uint32_t i = 0; i < sortList->size(); i++) {
		(*sortList)[i] = idIter->next();
	}
	unique_ptr<ReusableTransactionIterator> it1 = getIterator();
	unique_ptr<ReusableTransactionIterator> it2 = getIterator();
	sort(sortList, 0, sortList->size(), it1.get(), it2.get(), prefixEnd);
}<commit_msg>Added missing delete.<commit_after>
#include <algorithm>
using namespace std;

#include <internals/transactions/TransactionsList.hpp>
#include <internals/transactions/ReusableTransactionIterator.hpp>
#include <internals/transactions/TransactionIterator.hpp>
#include <internals/transactions/TransactionsWriter.hpp>

namespace internals {
namespace transactions {

TransactionsList::TransactionsList() {
}

TransactionsList::~TransactionsList() {
}

void TransactionsList::compress(int32_t prefixEnd) {
	vector<int32_t> *sortList = new vector<int32_t>(size());
	unique_ptr<Iterator<int32_t> > idIter = getIdIterator();
	for (uint32_t i = 0; i < sortList->size(); i++) {
		(*sortList)[i] = idIter->next();
	}
	unique_ptr<ReusableTransactionIterator> it1 = getIterator();
	unique_ptr<ReusableTransactionIterator> it2 = getIterator();
	sort(sortList, 0, sortList->size(), it1.get(), it2.get(), prefixEnd);
	delete sortList;
}
{'fraction_non_alphanumeric': 0.13986784140969163, 'fraction_numerical': 0.01762114537444934, 'mean_word_length': 7.863414634146341, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 31, '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': '246547', 'n_tokens_mistral': 597, 'n_tokens_neox': 575, 'n_words': 106}