Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generation