Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issues | Synapse