<commit_before>import java.util.Date;
import java.util.Random;

public class Main {

    public static void main(String[] args) {
        final int n = 8;
        final int m = 5;
        int[][] matrix = new int[n][m];

        Random rand = new Random(new Date().getTime());
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                    int value = rand.nextInt(200);
                    matrix[i][j] = value;
            }
        }

        System.out.println("Original matrix");
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                    System.out.print(matrix[i][j] + " ");
            }
            System.out.println();
        }

        int[][] matrix2 = Transpose(matrix,n,m);
        System.out.println();
        System.out.println("Transpose matrix");
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++) {
                    System.out.print(matrix2[i][j] + " ");

            }
            System.out.println();
        }

        int[][] matrix3 = Transpose(matrix2,m,n);
        System.out.println();
        System.out.println("Double-transpose matrix");
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                System.out.print(matrix3[i][j] + " ");

            }
            System.out.println();
        }

    }

    public static int[][] Transpose(int[][] matrix, int n, int m) {
        int[][] newmatrix = new int[m][n];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                newmatrix[j][i] = matrix[i][j];
            }
        }
            return newmatrix;
    }
}
<commit_msg>Transpose matrix<commit_after>import java.util.Date;
import java.util.Random;

public class Main {

    public static void main(String[] args) {
        final int n = 8;
        final int m = 5;
        int[][] matrix = new int[n][m];

        Random rand = new Random(new Date().getTime());
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                int value = rand.nextInt(200);
                matrix[i][j] = value;
            }
        }

        System.out.println("Original matrix");
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                System.out.print(matrix[i][j] + " ");
            }
            System.out.println();
        }

        int[][] matrix2 = Transpose(matrix, n, m);
        System.out.println();
        System.out.println("Transpose matrix");
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++) {
                System.out.print(matrix2[i][j] + " ");

            }
            System.out.println();
        }

        int[][] matrix3 = Transpose(matrix2, m, n);
        System.out.println();
        System.out.println("Double-transpose matrix");
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                System.out.print(matrix3[i][j] + " ");

            }
            System.out.println();
        }

    }

    public static int[][] Transpose(int[][] matrix, int n, int m) {
        int[][] newmatrix = new int[m][n];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                newmatrix[j][i] = matrix[i][j];
            }
        }
        return newmatrix;
    }
}

{'fraction_non_alphanumeric': 0.1711578323956174, 'fraction_numerical': 0.011844832691738229, 'mean_word_length': 1.3788732394366197, 'pattern_counts': {'":': 0, '<': 23, '<?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': '4477251', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1064, 'n_words': 287}