<commit_before>import numpy as np


def number_of_cells(shape):
    """Number of cells is a structured quad grid.

    Parameters
    ----------
    shape : tuple of int
        Shape of grid of nodes.

    Returns
    -------
    int :
        Number of cells in the grid.

    Examples
    --------
    >>> number_of_cells((3, 4))
    6
    """
    return np.prod(np.array(shape) - 1)<commit_msg>Fixed number_of_cells to return correct value.<commit_after>import numpy as np


def number_of_cells(shape):
    """Number of cells is a structured quad grid.

    Parameters
    ----------
    shape : tuple of int
        Shape of grid of nodes.

    Returns
    -------
    int :
        Number of cells in the grid.

    Examples
    --------
    >>> number_of_cells((3, 4))
    2
    """
    return np.prod(np.array(shape) - 2)
{'fraction_non_alphanumeric': 0.13872135102533173, 'fraction_numerical': 0.009650180940892641, 'mean_word_length': 1.703583061889251, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3089067', 'n_tokens_mistral': 261, 'n_tokens_neox': 240, 'n_words': 82}