Affiliation:
1. Monash University, Australia
2. Singapore Management University, Singapore
Abstract
Stack Overflow has been heavily used by software developers as a popular way to seek programming-related information from peers via the internet. The Stack Overflow community recommends users to provide the related code snippet when they are creating a question to help others better understand it and offer their help. Previous studies have shown that a significant number of these questions are of low-quality and not attractive to other potential experts in Stack Overflow. These poorly asked questions are less likely to receive useful answers and hinder the overall knowledge generation and sharing process. Considering one of the reasons for introducing low-quality questions in SO is that many developers may not be able to clarify and summarize the key problems behind their presented code snippets due to their lack of knowledge and terminology related to the problem, and/or their poor writing skills, in this study we propose an approach to assist developers in writing high-quality questions by automatically generating question titles for a code snippet using a deep sequence-to-sequence learning approach. Our approach is fully data-driven and uses an
attention
mechanism to perform better content selection, a
copy
mechanism to handle the rare-words problem and a
coverage
mechanism to eliminate word repetition problem. We evaluate our approach on Stack Overflow datasets over a variety of programming languages (e.g., Python, Java, Javascript, C# and SQL) and our experimental results show that our approach significantly outperforms several state-of-the-art baselines in both automatic and human evaluation. We have released our code and datasets to facilitate other researchers to verify their ideas and inspire the follow up work.
Publisher
Association for Computing Machinery (ACM)
Cited by
45 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. SelfPiCo: Self-Guided Partial Code Execution with LLMs;Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis;2024-09-11
2. Transformers in source code generation: A comprehensive survey;Journal of Systems Architecture;2024-08
3. Automatic title completion for Stack Overflow posts and GitHub issues;Empirical Software Engineering;2024-07-25
4. Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learning;Proceedings of the ACM on Software Engineering;2024-07-12
5. Easy over Hard: A Simple Baseline for Test Failures Causes Prediction;Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering;2024-07-10