<commit_before>package parte1;

import java.io.IOException;
import java.io.BufferedReader;
import java.nio.file.Path;
import java.nio.file.Files;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class Reader {
    private final Puzzle puzzle;
    private Piece first;
    private static final Charset charset = StandardCharsets.UTF_8;
    Reader(Puzzle p, Path inputPath) {
        puzzle = p;
        readFile(inputPath);
    }
    private void readFile(Path inputPath) {
        try (BufferedReader reader = Files.newBufferedReader(inputPath, charset)) {
            String line;
            while ((line = reader.readLine()) != null) {
                parseLine(line);
            }
        } catch (IOException e) {
            System.err.println("Problemi con la lettura del file di input (" + e + ")");
            System.err.println("Il programma verrà terminato!");
            System.exit(1);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.err.println("Il file di input non è formattato correttamente (" + e + ")");
            System.err.println("Il programma verrà terminato!");
            System.exit(1);
        }
    }
    private void parseLine(String line) {
        String[] values = line.split("\t",6);
        for(String value : values) {
            value = value.trim();
            System.out.print(value);
        }
        Piece x = new Piece(values[0],values[1].charAt(0),values[2],values[3],values[4],values[5]);
        if(values[2].compareTo("VUOTO")==0 && values[5].compareTo("VUOTO")==0) {
            first = x;
        }
        puzzle.addPiece(x);
    }
    public Piece getFirst() {
        return first;
    }
}<commit_msg>Removed a print instruction used for tracking<commit_after>package parte1;

import java.io.IOException;
import java.io.BufferedReader;
import java.nio.file.Path;
import java.nio.file.Files;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class Reader {
    private final Puzzle puzzle;
    private Piece first;
    private static final Charset charset = StandardCharsets.UTF_8;
    Reader(Puzzle p, Path inputPath) {
        puzzle = p;
        readFile(inputPath);
    }
    private void readFile(Path inputPath) {
        try (BufferedReader reader = Files.newBufferedReader(inputPath, charset)) {
            String line;
            while ((line = reader.readLine()) != null) {
                parseLine(line);
            }
        } catch (IOException e) {
            System.err.println("Problemi con la lettura del file di input (" + e + ")");
            System.err.println("Il programma verrà terminato!");
            System.exit(1);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.err.println("Il file di input non è formattato correttamente (" + e + ")");
            System.err.println("Il programma verrà terminato!");
            System.exit(1);
        }
    }
    private void parseLine(String line) {
        String[] values = line.split("\t",6);
        for(String value : values) {
            value = value.trim();
        }
        Piece x = new Piece(values[0],values[1].charAt(0),values[2],values[3],values[4],values[5]);
        if(values[2].compareTo("VUOTO")==0 && values[5].compareTo("VUOTO")==0) {
            first = x;
        }
        puzzle.addPiece(x);
    }
    public Piece getFirst() {
        return first;
    }
}
{'fraction_non_alphanumeric': 0.12620227338968232, 'fraction_numerical': 0.009326726901777908, 'mean_word_length': 2.391304347826087, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5545307', 'n_tokens_mistral': 1030, 'n_tokens_neox': 1012, 'n_words': 233}