<commit_before>// demo_list.cpp

#include "list.h"
#include <iostream>

using namespace std;

int main()
{
	List <int> list;

	cout << "\n-- initial --\n";
	cout << "List size: " << list.getSize() << endl;

	list.add(15);
	list.add(13);
	list.add(516,1);
	cout << "\n-- adding three elements --\n";
	cout << "List: ";
	for(int i=0; i<=list.end(); i++)
	{
		cout << list.getData(i) << " ";
	}
	cout << endl;
	cout << "New list size: " << list.getSize() << endl;

	list.build(3);
	cout << "\n-- after using build --\n";
	cout << "List: ";
	for(int i=0; i<=list.end(); i++)
	{
		cout << list.getData(i) << " ";
	}
	cout << endl;
	cout << "New list size: " << list.getSize() << endl;

	return 0;
}
<commit_msg>added operator[] demo<commit_after>// demo_list.cpp

#include "list.h"
#include <iostream>

using namespace std;

int main()
{
	List <int> list;

	cout << "\n-- initial --\n";
	cout << "List size: " << list.getSize() << endl;

	list.add(15);
	list.add(13);
	list.add(516,1);
	cout << "\n-- adding three elements --\n";
	cout << "List: ";
	for(int i=0; i<=list.end(); i++)
	{
		cout << list[i] << " "; // operator method to retrieve data
	}
	cout << endl;
	cout << "New list size: " << list.getSize() << endl;

	list.build(3);
	cout << "\n-- after using build --\n";
	cout << "List: ";
	for(int i=0; i<=list.end(); i++)
	{
		cout << list.getData(i) << " "; // getData() function to retrieve data
	}
	cout << endl;
	cout << "New list size: " << list.getSize() << endl;

	return 0;
}

{'fraction_non_alphanumeric': 0.24277067921990586, 'fraction_numerical': 0.01613987895090787, 'mean_word_length': 3.0655737704918034, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 7, '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': '709082', 'n_tokens_mistral': 616, 'n_tokens_neox': 596, 'n_words': 158}