def cleanup_extra_whitespaces(self, text):
        return re.sub(r'(\s)\s+', r'\1', text)
cleanup extra whitespaces let numbers of whitespaces <=1
dataset/ETHPy150Open mozillazg/bustard/bustard/template.py/Template.cleanup_extra_whitespaces