<commit_before>from PySide import QtCore


class SignalList(QtCore.QObject):
    changed = QtCore.Signal()

    def __init__(self, iterable):
        super().__init__()
        self.list = list(iterable)

    def __getitem__(self, x):
        return self.list.__getitem__(x)

    def __len__(self):
        return self.list.__len__()

    def append(self, x):
        self.list.append(x)
        self.changed.emit()

    def extend(self, iterable):
        self.list.extend(iterable)
        self.changed.emit()

    def pop(self, index=-1):
        value = self.list.pop(index)
        self.changed.emit()
        return value<commit_msg>Added method clear() to SignalList<commit_after>from PySide import QtCore


class SignalList(QtCore.QObject):
    changed = QtCore.Signal()

    def __init__(self, iterable):
        super().__init__()
        self.list = list(iterable)

    def __getitem__(self, x):
        return self.list.__getitem__(x)

    def __len__(self):
        return self.list.__len__()

    def append(self, x):
        self.list.append(x)
        self.changed.emit()

    def clear(self):
        self.list.clear()
        self.changed.emit()

    def extend(self, iterable):
        self.list.extend(iterable)
        self.changed.emit()

    def pop(self, index=-1):
        value = self.list.pop(index)
        self.changed.emit()
        return value
{'fraction_non_alphanumeric': 0.12290909090909091, 'fraction_numerical': 0.0014545454545454545, 'mean_word_length': 2.3560975609756096, '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': '599777', 'n_tokens_mistral': 442, 'n_tokens_neox': 423, 'n_words': 89}