<commit_before>import java.util.Scanner;
import java.io.*;

public class StatsFile {
	

	public String getLine(int line) throws IOException{
		
		String linetoread = null;
/*		String pokemon1;
		
		Scanner fileScan,pokemonScan;
		fileScan = new Scanner(new File("PokemonListGen1"));
		
		while (fileScan.hasNext()){
			
			pokemon1 = fileScan.nextLine();
			pokemonScan=new Scanner(pokemon1);
			pokemonScan.useDelimiter("     ");
			while(pokemonScan.hasNext()){
				System.out.print("   " + pokemonScan.next());
			}
			*/
		FileInputStream fs= new FileInputStream("PokemonListGen1");
		BufferedReader br = new BufferedReader(new InputStreamReader(fs));
			
		while (line < 30) {
			br.readLine();
			linetoread = br.readLine();
			line++;
		}
		
		return linetoread;
	}
}<commit_msg>fixed while loop in getLine() to stop at the appropriate time<commit_after>import java.util.Scanner;
import java.io.*;

public class StatsFile {
	

	public String getLine(int line) throws IOException{
		
		String linetoread = null;
		int i = 0;
/*		String pokemon1;
		
		Scanner fileScan,pokemonScan;
		fileScan = new Scanner(new File("PokemonListGen1"));
		
		while (fileScan.hasNext()){
			
			pokemon1 = fileScan.nextLine();
			pokemonScan=new Scanner(pokemon1);
			pokemonScan.useDelimiter("     ");
			while(pokemonScan.hasNext()){
				System.out.print("   " + pokemonScan.next());
			}
			*/
		FileInputStream fs= new FileInputStream("PokemonListGen1");
		BufferedReader br = new BufferedReader(new InputStreamReader(fs));
			
		while (i < line) {
			br.readLine();
			linetoread = br.readLine();
			i++;
		}
		
		return linetoread;
	}
}
{'fraction_non_alphanumeric': 0.12768569674647023, 'fraction_numerical': 0.00798035604665439, 'mean_word_length': 3.6974063400576367, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2836898', 'n_tokens_mistral': 662, 'n_tokens_neox': 556, 'n_words': 117}