<commit_before>package info.debatty.java.aggregation;

class Vector {

    double[] values;
    int lon;

    Vector(int LARRAY) {
        lon = LARRAY;
        values = new double[LARRAY + 1];
    }

    public Vector(double[] values) {
        lon = values.length;
        this.values = new double[lon + 1];

        // values[0..] are copied to this.values[1..] :-(
        for (int i = 1; i <= values.length; i++) {
            this.values[i] = values[i-1];
        }
    }

    Vector(Vector a) {
        lon = a.lon;
        values = new double[a.lon + 1];
        for (int i = 0; i <= lon; i++) {
            values[i] = a.values[i];
        }
    }

    void escriu() {
        for (int i = 1; i <= lon; i++) {
            System.out.print(values[i] + " ");
        }
        System.out.print("\n");
    }

    public wwLdf setQ(int num_values) {
        // de vLp se'n necessita un punt de mes perque es va a llo+1
        Point[] vLp = new Point[num_values + 2];<commit_msg>Clean vector code: remove unnecessary lon field<commit_after>package info.debatty.java.aggregation;

class Vector {

    double[] values;

    Vector(int LARRAY) {
        values = new double[LARRAY + 1];
    }

    public Vector(double[] values) {
        this.values = new double[values.length + 1];

        // values[0..] are copied to this.values[1..] :-(
        for (int i = 1; i <= values.length; i++) {
            this.values[i] = values[i-1];
        }
    }

    Vector(Vector a) {
        values = new double[a.values.length];
        for (int i = 0; i < values.length; i++) {
            values[i] = a.values[i];
        }
    }


    public wwLdf setQ(int num_values) {
        // de vLp se'n necessita un punt de mes perque es va a llo+1
        Point[] vLp = new Point[num_values + 2];
{'fraction_non_alphanumeric': 0.1455767077267637, 'fraction_numerical': 0.011198208286674132, 'mean_word_length': 1.7921875, 'pattern_counts': {'":': 0, '<': 8, '<?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': '412922', 'n_tokens_mistral': 623, 'n_tokens_neox': 596, 'n_words': 163}