def passesFilter(self, itemId, item):
        p = item.getItemProperty(self.propertyId)

        if p is None or str(p) is None:
            return False

        value = str(p).lower() if self.ignoreCase else str(p)

        if self.onlyMatchPrefix:
            if not value.startswith(self.filterString):
                return False
        else:
            if self.filterString not in value:
                return False

        return True
dataset/ETHPy150Open rwl/muntjac/muntjac/data/util/filter/simple_string_filter.py/SimpleStringFilter.passesFilter/original