

def process(self, items):
    if (not self.inverse):
        return [item for item in items if self.include(item)]
    else:
        return [item for item in items if (not self.include(item))]

dataset/ETHPy150Open wiki-ai/revscoring/revscoring/datasources/meta/filters.py filter.process/original