<commit_before>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4

import Queue, sys, datetime

def _logging_method (level):
    return lambda self, msg, *args: self.log(level, msg, *args)

class Component(object):
    @classmethod
    def config_options (cls):
        if hasattr(cls, "__init__"):
            # deep Python voodoo to discover the keyword
            # arguments of the class's constructor method
            return cls.__init__.func_code.co_varnames
        else:
            return ()

    @property
    def router (self):
        if hasattr(self, "_router"):
            return self._router

    def _get_name(self):
        if hasattr(self, '_name'):
            return self._name<commit_msg>Remove the foolhardy introspection code from component.<commit_after>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4

import Queue, sys, datetime

def _logging_method (level):
    return lambda self, msg, *args: self.log(level, msg, *args)

class Component(object):
    @property
    def router (self):
        if hasattr(self, "_router"):
            return self._router

    def _get_name(self):
        if hasattr(self, '_name'):
            return self._name
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.0050933786078098476, 'mean_word_length': 2.6276923076923078, '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': '2234206', 'n_tokens_mistral': 360, 'n_tokens_neox': 358, 'n_words': 111}