def cleanupLinks(self, directory):
        """cleans broken symlinks

           @param directory: (string)
           return list
        """
        files = [os.path.join(directory,f) for f in os.listdir(directory)]
        for f in files[:]:
            if not os.path.exists(f):
                log(f % 'Removing broken symlink %s')
                os.unlink(f)
                files.remove(f)
        return files
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/services/janitizer.py/Janitizer.cleanupLinks/swapped operands of `%`