LLM-Assisted Code Cleaning For Training Accurate Code Generators