<commit_before>class BaseConfig(object):

    def __init__(self, **kwds):
        self.__dict__.update(kwds)

    @property
    def ax(self):
        from matplotlib import pyplot
        return pyplot.gca()  # FIXME

    def set_lim(self):
        self.ax.set_xlim(*self.xlim)
        self.ax.set_ylim(*self.ylim)


class Config(BaseConfig):

    # Should be renamed to "Resource?"

    def __init__(self, **kwds):
        # FIXME: write arguments explicitly
        self.line_args = {}
        self.fill_args = {}
        self.num_direction_arrows = 5
        self.direction_arrows_size = 0.03
        super(Config, self).__init__(**kwds)


class ModifiedConfig(BaseConfig):

    def __init__(self, base, **kwds):
        self._base = base
        """
        Like ``.prototype`` in Javascript.
        """
        super(ModifiedConfig, self).__init__(**kwds)

    def __getattr__(self, name):
        return getattr(self._base, name)


class Configurable(object):

    def __init__(self, baseconfig):
        self.config = ModifiedConfig(baseconfig)<commit_msg>Use utils.chainstruct in core<commit_after>from .utils.chainstruct import Struct


class Config(Struct):

    # Should be renamed to "Resource?"

    def __init__(self, *args, **kwds):
        # FIXME: write arguments explicitly
        self.line_args = {}
        self.fill_args = {}
        self.num_direction_arrows = 5
        self.direction_arrows_size = 0.03
        super(Config, self).__init__(*args, **kwds)

    @property
    def ax(self):
        from matplotlib import pyplot
        return pyplot.gca()  # FIXME

    def set_lim(self):
        self.ax.set_xlim(*self.xlim)
        self.ax.set_ylim(*self.ylim)


class Configurable(object):

    def __init__(self, baseconfig):
        self.config = Config(baseconfig)
{'fraction_non_alphanumeric': 0.11482720178372352, 'fraction_numerical': 0.004459308807134894, 'mean_word_length': 2.604417670682731, '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': '867271', 'n_tokens_mistral': 579, 'n_tokens_neox': 550, 'n_words': 120}