<commit_before>class ConfigMeta(type):
    def __new__(mcls, name, bases, cdict):
        _config_keys = []
        _defaults = {}
        _default_values = {}
        _re_keys = []
        _re_patterns = {}
        _re_defaults = {}
        _export_keys = []

        def _getattr(self, name):
            if name in self._config_keys:
                return self._config[name]
            if name in self._re_keys:
                return self._re_config[name]
            else:
                super(object, self).__getattr__(name)

        allowed = set(['__module__', '__metaclass__', '__doc__'])
        for key, value in cdict.items():
            if key not in allowed:

                if hasattr(value, '__lament_con__'):
                    _config_keys.append(value.__lament_con__)
                    _defaults[value.__lament_con__] = value.__lament_df__
                    if value.__lament_dv__ is not None:
                        _default_values[value.__lament_con__] = value.__lament_dv__
                    cdict['_con_%s' % key] = value
                    del cdict[key]

                if hasattr(value, '__lament_re_con__'):
                    _re_keys.append(value.__lament_re_con__)
                    _re_patterns[value.__lament_re_con__] = value.__lament_re_pattern__
                    _re_defaults[value.__lament_re_con__] = value.__lament_re_df__
                    cdict['_re_con_%s' % key] = value
                    del cdict[key]

                if hasattr(value, '__lament_ex__'):<commit_msg>Renamed a variable with confusing name in meta.py<commit_after>class ConfigMeta(type):
    def __new__(mcls, name, bases, cdict):
        _config_keys = []
        _defaults = {}
        _default_values = {}
        _re_keys = []
        _re_patterns = {}
        _re_defaults = {}
        _export_keys = []

        def _getattr(self, name):
            if name in self._config_keys:
                return self._config[name]
            if name in self._re_keys:
                return self._re_config[name]
            else:
                super(object, self).__getattr__(name)

        ignored_keys = set(['__module__', '__metaclass__', '__doc__'])
        for key, value in cdict.items():
            if key not in ignored_keys:

                if hasattr(value, '__lament_con__'):
                    _config_keys.append(value.__lament_con__)
                    _defaults[value.__lament_con__] = value.__lament_df__
                    if value.__lament_dv__ is not None:
                        _default_values[value.__lament_con__] = value.__lament_dv__
                    cdict['_con_%s' % key] = value
                    del cdict[key]

                if hasattr(value, '__lament_re_con__'):
                    _re_keys.append(value.__lament_re_con__)
                    _re_patterns[value.__lament_re_con__] = value.__lament_re_pattern__
                    _re_defaults[value.__lament_re_con__] = value.__lament_re_df__
                    cdict['_re_con_%s' % key] = value
                    del cdict[key]

                if hasattr(value, '__lament_ex__'):
{'fraction_non_alphanumeric': 0.08953786906290115, 'fraction_numerical': 0.0, 'mean_word_length': 1.6755364806866953, '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': '3896061', 'n_tokens_mistral': 950, 'n_tokens_neox': 877, 'n_words': 166}