<commit_before>//
//  main.c
//  matrix-rotation: rotate the matrix by 90 degrees
//

#include <stdio.h>
#include <stdlib.h>

void fillMatrix(int rows, int cols, int matrixx[rows][cols]) {
    int col, row;

    for (row = 0; row < rows; ++row) {
        for (col = 0; col < cols; ++col) {
            matrixx[row][col] = 10 * (col + 1) + (row + 1);
        }
    } 
};

void printMatrix(int rows, int cols, int matrix[rows][cols]) {
    int row, col;

    for (row = 0; row < rows; ++row) {
        for (col = 0; col < cols; ++col) {
            printf("%5i", matrix[row][col]);
        }

        printf("\n");
    }
};

int main(void) {
    void fillMatrix(int rows, int cols, int matrix[rows][cols]);
    void printMatrix(int rows, int cols, int matrix[rows][cols]);

    int nRows = 0, nCols = 0;
    
    printf("Please enter number of rows: ");
    scanf("%d", &nRows);
    printf("Please enter number of columns: ");
    scanf("%d", &nCols);

    int matrix[nCols][nRows];

    fillMatrix(nRows, nCols, matrix);
    
    printMatrix(nRows, nCols, matrix);

    return 0;
}
<commit_msg>change matrix fill format<commit_after>//
//  main.c
//  matrix-rotation: rotate the matrix by 90 degrees
//

#include <stdio.h>
#include <stdlib.h>

void fillMatrix(int rows, int cols, int matrixx[rows][cols]) {
    int col, row;

    for (row = 0; row < rows; ++row) {
        for (col = 0; col < cols; ++col) {
            matrixx[row][col] = 10 * (row + 1) + (col + 1);
        }
    } 
};

void printMatrix(int rows, int cols, int matrix[rows][cols]) {
    int row, col;

    for (row = 0; row < rows; ++row) {
        for (col = 0; col < cols; ++col) {
            printf("%5i", matrix[row][col]);
        }

        printf("\n");
    }
};

int main(void) {
    void fillMatrix(int rows, int cols, int matrix[rows][cols]);
    void printMatrix(int rows, int cols, int matrix[rows][cols]);

    int nRows = 0, nCols = 0;
    
    printf("Please enter number of rows: ");
    scanf("%d", &nRows);
    printf("Please enter number of columns: ");
    scanf("%d", &nCols);

    int matrix[nCols][nRows];

    fillMatrix(nRows, nCols, matrix);
    
    printMatrix(nRows, nCols, matrix);

    return 0;
}

{'fraction_non_alphanumeric': 0.17197452229299362, 'fraction_numerical': 0.012738853503184714, 'mean_word_length': 2.4794303797468356, 'pattern_counts': {'":': 0, '<': 15, '<?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': '352476', 'n_tokens_mistral': 826, 'n_tokens_neox': 779, 'n_words': 225}