<commit_before>import matplotlib as mpl


def axes_style(style):
    """Set the axis style.

    Parameters
    ----------
    style : "darkgrid" or "whitegrid"
        Modfile style to look ggplotish or light grid on white

    """
    grid_params = {"axes.grid" : True,
                   "axes.axisbelow": True}

    if style == "darkgrid":
        grid_params.update({"axes.facecolor": "#EAEAF2",
                            "grid.color": "w",
                            "grid.linestyle": "-",
                            "grid.linewidth": 2})
        mpl.rcParams.update(grid_params)

    elif style == "whitegrid":
        grid_params.update({"axes.facecolor": "white",
                            "grid.color": "222222",
                            "grid.linestyle": ":",
                            "grid.linewidth": .8})
        mpl.rcParams.update(grid_params)

    else:
        raise ValueError("Style %s not recognized" % style)


def context_setting(context):

    # Possible values:
    # - notebook
    # - talk
    # - paper

    raise NotImplementedError<commit_msg>More updates to grid parameters<commit_after>import matplotlib as mpl


def axes_style(style):
    """Set the axis style.

    Parameters
    ----------
    style : "darkgrid" or "whitegrid"
        Modfile style to look ggplotish or light grid on white

    """
    grid_params = {"axes.grid" : True,
                   "axes.axisbelow": True}

    if style == "darkgrid":
        grid_params.update({"axes.facecolor": "#EAEAF2",
                            "axes.linewidth": 0,
                            "grid.color": "w",
                            "grid.linestyle": "-",
                            "grid.linewidth": 1.5,})
        for axis in ["x", "y"]:
            for step in ["major", "minor"]:
                grid_params["%stick.%s.size" % (axis, step)] = 0
        mpl.rcParams.update(grid_params)

    elif style == "whitegrid":
        grid_params.update({"axes.facecolor": "white",
                            "axes.linewidth": 1,
                            "grid.color": "#222222",
                            "grid.linestyle": ":",
                            "grid.linewidth": .8,})
        mpl.rcParams.update(grid_params)

    else:
        raise ValueError("Style %s not recognized" % style)


def context_setting(context):

    # Possible values:
    # - notebook
    # - talk
    # - paper

    raise NotImplementedError
{'fraction_non_alphanumeric': 0.1328125, 'fraction_numerical': 0.009046052631578948, 'mean_word_length': 1.5396659707724425, 'pattern_counts': {'":': 26, '<': 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': '4464690', 'n_tokens_mistral': 722, 'n_tokens_neox': 667, 'n_words': 157}