<commit_before>package coding4fun;

import java.util.Arrays;

/**
 * Write an algorithm to perform a Tetris rotation.
 */
public class Problem24 {
    public static char[][] rotate(char[][] block) {
        int rowSize = block.length;
        int colSize = block[0].length;

        // tranpose the matrix
        char[][] result = new char[colSize][rowSize];
        for (int i = 0; i < rowSize; i++) {
            for (int j = 0; j < colSize; j++) {<commit_msg>Update problem 24<commit_after>package coding4fun;

import java.util.Arrays;

/**
 * Write an algorithm to perform a Tetris rotation.
 *
 * <pre>
 * Input:
 * [ ,  ,  ]
 * [*, *, *]
 * [ ,  , *]
 *
 * Output:
 * [ , *,  ]
 * [ , *,  ]
 * [*, *,  ]
 *
 * Input:
 * [*,  ,  ]
 * [*, *, *]
 * [ ,  ,  ]
 *
 * Output:
 * [ , *, *]
 * [ , *,  ]
 * [ , *,  ]
 * </pre>
 -----------------------------------------------------------
 */
public class Problem24 {
    public static char[][] rotate(char[][] block) {
        int rowSize = block.length;
        int colSize = block[0].length;

        // tranpose the matrix
        char[][] result = new char[colSize][rowSize];
        for (int i = 0; i < rowSize; i++) {
            for (int j = 0; j < colSize; j++) {
{'fraction_non_alphanumeric': 0.23114754098360657, 'fraction_numerical': 0.011475409836065573, 'mean_word_length': 1.8198614318706698, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '2352203', 'n_tokens_mistral': 421, 'n_tokens_neox': 406, 'n_words': 102}