def shouldCompress(self):

        if not self.extension() in self.COMPRESS_TYPES:
            return False

        if len(self.data()) < self.COMPRESS_MIN_SIZE:
            return False

        return True
dataset/ETHPy150Open randomknowledge/Cactus_Refactored/cactus/s3/file.py/File.shouldCompress/original