<commit_before>package caris.framework.tokens;

import java.util.ArrayList;

import sx.blah.discord.handle.obj.IMessage;

public class MessageStack {
	
	private ArrayList<IMessage> messages;
	
	public MessageStack() {
		messages = new ArrayList<IMessage>();
	}
	
	public void add(IMessage message) {
		messages.add(0, message);
		if( messages.size() > 1000 ) {
			messages.remove(1000);
		}
	}
	
	public ArrayList<IMessage> getQuantity(int quantity) {
		ArrayList<IMessage> subList = new ArrayList<IMessage>();
		for( int f=0; f<Math.min(1000, quantity); f++ ) {
			subList.add(messages.get(f));
		}
		return subList;
	}
}
<commit_msg>Fixed another critical error, this time in messagestack<commit_after>package caris.framework.tokens;

import java.util.ArrayList;

import sx.blah.discord.handle.obj.IMessage;

public class MessageStack {
	
	private ArrayList<IMessage> messages;
	
	public MessageStack() {
		messages = new ArrayList<IMessage>();
	}
	
	public void add(IMessage message) {
		messages.add(0, message);
		if( messages.size() > 1000 ) {
			messages.remove(1000);
		}
	}
	
	public ArrayList<IMessage> getQuantity(int quantity) {
		ArrayList<IMessage> subList = new ArrayList<IMessage>();
		for( int f=0; f<Math.min(1000, Math.min(quantity, messages.size())); f++ ) {
			subList.add(messages.get(f));
		}
		return subList;
	}
}

{'fraction_non_alphanumeric': 0.13592233009708737, 'fraction_numerical': 0.020911127707244213, 'mean_word_length': 4.51440329218107, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6878800', 'n_tokens_mistral': 503, 'n_tokens_neox': 439, 'n_words': 96}