<commit_before>package iubar.iva.export;

import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;

public class CheckFile {

    private RandomAccessFile rw;
    private ArrayList<String> file = new ArrayList<String>();

    CheckFile() {
        String line;
        try {
            this.rw = new RandomAccessFile("/home/yawn/Desktop/iva_out.txt", "r");
            while (null != (line = this.rw.readLine())) {
                this.file.add(line);
            }
            //this.rw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

        line = this.file.get(2);
        String[] lines = line.split("V[A-Z]{1}[0-9]{6}|V1{1}[0-9]{6}|V[A-Z]{1}[0-9]{5}[A-D]");
        for(String aLine : lines) {
            System.out.println(aLine + " - " + aLine.length());
        }
    }

    public static void main(String[] args) {
        //CheckFile a = new CheckFile();
        System.out.println(System.getProperty("user.home") + System.getProperty("file.separator"));

    }

}<commit_msg>classe CheckFile<commit_after>package iubar.iva.export;

import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;

public class CheckFile {

    private static final String FOLDER_PATH = System.getProperty("user.home") +
            System.getProperty("file.separator") +
            "Desktop" +
            System.getProperty("file.separator") +
            "Iva" +
            System.getProperty("file.separator");

    private static final String FILE_PATH = FOLDER_PATH + "iva_out.txt";

    private RandomAccessFile rw;
    private ArrayList<String> file = new ArrayList<String>();
    private int counter = 0;

    CheckFile() {
        String line;
        try {
            this.rw = new RandomAccessFile(FILE_PATH, "r");
            while (null != (line = this.rw.readLine())) {
                this.file.add(line);
            }
            //this.rw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

        line = this.file.get(2);
        String[] lines = line.split("V[A-Z]{1}[0-9]{6}|V1{1}[0-9]{6}|V[A-Z]{1}[0-9]{5}[A-D]");
        for(String aLine : lines) {
            counter++;
            System.out.println(aLine + " - " + aLine.length());
        }
        System.out.println(counter);
    }

    public static void main(String[] args) {
        CheckFile a = new CheckFile();

    }

}
{'fraction_non_alphanumeric': 0.1542247744052502, 'fraction_numerical': 0.011894995898277276, 'mean_word_length': 2.1511627906976742, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5822231', 'n_tokens_mistral': 761, 'n_tokens_neox': 744, 'n_words': 139}