<commit_before>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bezier;

/**
 *
 * @author MarioG,Anderson,Pablo
 */
public class Matriz {
    
    public static float[][] multiply(float a[][], float b[][]) {
        int filaA = a.length,
            columnaA = a[0].length,
            filaB = b.length,
            columnaB = b[0].length;

        if ( columnaA != filaB ) {
            throw new IllegalArgumentException("A:Rows: " + columnaA + " did not match B:Columns " + filaB + ".");
        }

        float[][] res = new float[filaA][columnaB];

        for(int i = 0; i < filaA; i++) { // aRow
            for(int j = 0; j < columnaB; j++) { // bColumn
                for(int k = 0; k < columnaA; k++) { // aColumn
                    res[i][j] += a[i][k] * b[k][j];
                }
            }  
        }
        return res;
    }
    
    public static float[][] transpose(float a[][]) {
    }
    
    public static float[][] normalize(float a[][]){
    }
}

<commit_msg>the method 'Normalize' is added to class 'Matriz'<commit_after>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bezier;

/**
 *
 * @author MarioG,Anderson,Pablo
 */
public class Matriz {
    
    public static float[][] multiply(float a[][], float b[][]) {
        int filaA = a.length,
            columnaA = a[0].length,
            filaB = b.length,
            columnaB = b[0].length;

        if ( columnaA != filaB ) {
            throw new IllegalArgumentException("A:Rows: " + columnaA + " did not match B:Columns " + filaB + ".");
        }

        float[][] res = new float[filaA][columnaB];

        for(int i = 0; i < filaA; i++) { // aRow
            for(int j = 0; j < columnaB; j++) { // bColumn
                for(int k = 0; k < columnaA; k++) { // aColumn
                    res[i][j] += a[i][k] * b[k][j];
                }
            }  
        }
        return res;
    }
    
    public static float[][] transpose(float a[][]) {
    }
    
    public static float[][] normalize(float a[][]){
        int aRows = a.length,
            aColumns = a[0].length;
        float[][] resultant = new float[aRows-1][aColumns];
        for (int i=0; i < aRows-1; i++){
            for (int j=0; j < aColumns; j++)
                resultant[i][j] = a[i][j]/a[aRows-1][j];
        }
        return resultant;
    }
}


{'fraction_non_alphanumeric': 0.1618189266693978, 'fraction_numerical': 0.006554690700532569, 'mean_word_length': 1.7073170731707317, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6576174', 'n_tokens_mistral': 839, 'n_tokens_neox': 812, 'n_words': 212}