Across 112 Python Stack Overflow questions, six LLMs recommended mostly mature, permissive third-party libraries, with about 4.6% of unique imports unresolvable due to import/package name mismatches.
Can ChatGPT Support Developers? An Empirical Evaluation of Large Language Models for Code Generation
1 Pith paper cite this work. Polarity classification is still indexing.
abstract
Large language models (LLMs) have demonstrated notable proficiency in code generation, with numerous prior studies showing their promising capabilities in various development scenarios. However, these studies mainly provide evaluations in research settings, which leaves a significant gap in understanding how effectively LLMs can support developers in real-world. To address this, we conducted an empirical analysis of conversations in DevGPT, a dataset collected from developers' conversations with ChatGPT (captured with the Share Link feature on platforms such as GitHub). Our empirical findings indicate that the current practice of using LLM-generated code is typically limited to either demonstrating high-level concepts or providing examples in documentation, rather than to be used as production-ready code. These findings indicate that there is much future work needed to improve LLMs in code generation before they can be integral parts of modern software development.
citation-role summary
citation-polarity summary
fields
cs.SE 1years
2025 1verdicts
CONDITIONAL 1roles
background 1polarities
support 1representative citing papers
citing papers explorer
-
How Robust are LLM-Generated Library Imports? An Empirical Study using Stack Overflow
Across 112 Python Stack Overflow questions, six LLMs recommended mostly mature, permissive third-party libraries, with about 4.6% of unique imports unresolvable due to import/package name mismatches.