<commit_before>from boomslang.LineStyle import LineStyle

class Grid(object):
    def __init__(self, color="#dddddd", style="-", visible=True):
        self.color = color
        self._lineStyle = LineStyle()
        self._lineStyle.style = style
        self.visible = visible

    @property
    def style(self):
        return self._lineStyle.style

    @style.setter
    def style(self, value):
        self._lineStyle.style = value

    @style.getter
    def style(self):
        return self._lineStyle.style

    def draw(self, fig, axes):
        if self.visible:
            axes.grid(color=self.color, linestyle=self.style)
            # Gridlines should be below plots
            axes.set_axisbelow(True)<commit_msg>Allow gridlines on both major and minor axes.<commit_after>from boomslang.LineStyle import LineStyle

class Grid(object):
    def __init__(self, color="#dddddd", style="-", visible=True):
        self.color = color
        self._lineStyle = LineStyle()
        self._lineStyle.style = style
        self.visible = visible
        self.which = 'major'

    @property
    def style(self):
        return self._lineStyle.style

    @style.setter
    def style(self, value):
        self._lineStyle.style = value

    @style.getter
    def style(self):
        return self._lineStyle.style

    def draw(self, fig, axes):
        if self.visible:
            axes.grid(color=self.color, linestyle=self.style,
                      which=self.which)
            # Gridlines should be below plots
            axes.set_axisbelow(True)
{'fraction_non_alphanumeric': 0.10045074050225371, 'fraction_numerical': 0.0, 'mean_word_length': 2.3276231263383296, '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': '427001', 'n_tokens_mistral': 458, 'n_tokens_neox': 436, 'n_words': 107}