<commit_before>import { combineReducers } from "redux";
import { SET_CELL_STATE, CellStates } from "./actions";

const { FILLED, EMPTY, CHECKED } = CellStates;

function grid(state = [], action) {
    switch(action.type) {
        case SET_CELL_STATE:
            // Change [i][j] of the state to `action.cellState`
            return [
                ...state.slice(0, action.row),
                ...[
                    ...state[action.row].slice(0, action.column),
                    action.cellState,
                    ...state[action.row].slice(action.column + 1),
                ],
                ...state.slice(action.row + 1),
            ];
        default:
            return state;<commit_msg>whoops no need to spread the middle array<commit_after>import { combineReducers } from "redux";
import { SET_CELL_STATE, CellStates } from "./actions";

const { FILLED, EMPTY, CHECKED } = CellStates;

function grid(state = [], action) {
    switch(action.type) {
        case SET_CELL_STATE:
            // Change [i][j] of the state to `action.cellState`
            return [
                ...state.slice(0, action.row),
                [
                    ...state[action.row].slice(0, action.column),
                    action.cellState,
                    ...state[action.row].slice(action.column + 1),
                ],
                ...state.slice(action.row + 1),
            ];
        default:
            return state;
{'fraction_non_alphanumeric': 0.1331953071083506, 'fraction_numerical': 0.005521048999309869, 'mean_word_length': 1.5394045534150613, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2173447', 'n_tokens_mistral': 416, 'n_tokens_neox': 396, 'n_words': 86}