Code2Que: A Tool for Improving Question Titles from Mined Code Snippets in Stack Overflow
Fri 27 Aug 2021 00:15 - 00:20 - Analytics & Software Evolution—Recommender Systems Chair(s): Juri Di Rocco
Stack Overflow is one of the most popular technical Q&A sites used by software developers. Seeking help from Stack Overflow has become an essential part of software developers' daily work for solving programming-related questions.
Although the Stack Overflow community has provided quality assurance guidelines to help users write better questions, we observed that a significant number of questions submitted to Stack Overflow are of low quality. In this paper, we introduce a new web-based tool, {\sc Code2Que}, which can help developers in writing higher quality questions for a given code snippet.
{\sc Code2Que} consists of two main stages: offline learning and online recommendation.
In the offline learning phase, we first collect a set of good quality $\langle$\textit{code snippet, \textit{question}}$\rangle$ pairs as training samples. We then train our model on these training samples via a deep sequence-to-sequence approach, enhanced with an \emph{attention} mechanism, a \emph{copy} mechanism and a \emph{coverage} mechanism.
In the online recommendation phase, for a given code snippet, we use the offline trained model to generate question titles to assist less experienced developers in writing questions more effectively.
To evaluate {\sc Code2Que}, we first sampled 50 low quality $\langle$\textit{code snippet, \textit{question}}$\rangle$ pairs from the Python and Java datasets on Stack Overflow. Then we conducted a user study to evaluate the question titles generated by our approach as compared to human-written ones using three metrics: \textit{Clearness}, \textit{Fitness} and \textit{Willingness to Respond}. Our experimental results show that for a large number of low-quality questions in Stack Overflow, {\sc Code2Que} can improve the question titles in terms of \textit{Clearness}, \textit{Fitness} and \textit{Willingness} measures.
Thu 26 AugDisplayed time zone: Athens change
12:00 - 13:00 | Analytics & Software Evolution—Recommender SystemsDemonstrations / Industry Papers / Research Papers +12h Chair(s): Phuong T. Nguyen University of L’Aquila, Gabriele Bavota Università della Svizzera italiana (USI) | ||
12:00 10mPaper | Which Abbreviations Should Be Expanded? Research Papers Yanjie Jiang Beijing Institute of Technology, Hui Liu Beijing Institute of Technology, Yuxia Zhang Beijing Institute of Technology, Nan Niu University of Cincinnati, Yuhai Zhao Northeastern University, Lu Zhang Peking University DOI | ||
12:10 5mPaper | BRAID: An API Recommender Supporting Implicit User Feedback Demonstrations Yu Zhou Nanjing University of Aeronautics and Astronautics, Haonan Jin Nanjing University of Aeronautics and Astronautics, Xinying Yang Nanjing University of Aeronautics and Astronautics, Taolue Chen University of London, Krishna Narasimhan TU Darmstadt, Harald Gall University of Zurich DOI | ||
12:15 5mPaper | Code2Que: A Tool for Improving Question Titles from Mined Code Snippets in Stack Overflow Demonstrations Zhipeng Gao Monash University, Xin Xia Huawei Technologies, David Lo Singapore Management University, John Grundy Monash University, Yuan-Fang Li Monash University DOI | ||
12:20 5mPaper | StackEmo: Towards Enhancing User Experience by Augmenting Stack Overflow with Emojis Demonstrations DOI Media Attached | ||
12:25 5mPaper | Domain Adaptation for an Automated Classification of Deontic Modalities in Software Engineering Contracts Industry Papers DOI | ||
12:30 30mLive Q&A | Q&A (Analytics & Software Evolution—Recommender Systems) Research Papers |
Fri 27 AugDisplayed time zone: Athens change
00:00 - 01:00 | Analytics & Software Evolution—Recommender SystemsDemonstrations / Research Papers / Industry Papers Chair(s): Juri Di Rocco University of L'Aquila | ||
00:00 10mPaper | Which Abbreviations Should Be Expanded? Research Papers Yanjie Jiang Beijing Institute of Technology, Hui Liu Beijing Institute of Technology, Yuxia Zhang Beijing Institute of Technology, Nan Niu University of Cincinnati, Yuhai Zhao Northeastern University, Lu Zhang Peking University DOI | ||
00:10 5mPaper | BRAID: An API Recommender Supporting Implicit User Feedback Demonstrations Yu Zhou Nanjing University of Aeronautics and Astronautics, Haonan Jin Nanjing University of Aeronautics and Astronautics, Xinying Yang Nanjing University of Aeronautics and Astronautics, Taolue Chen University of London, Krishna Narasimhan TU Darmstadt, Harald Gall University of Zurich DOI | ||
00:15 5mPaper | Code2Que: A Tool for Improving Question Titles from Mined Code Snippets in Stack Overflow Demonstrations Zhipeng Gao Monash University, Xin Xia Huawei Technologies, David Lo Singapore Management University, John Grundy Monash University, Yuan-Fang Li Monash University DOI | ||
00:20 5mPaper | StackEmo: Towards Enhancing User Experience by Augmenting Stack Overflow with Emojis Demonstrations DOI Media Attached | ||
00:25 5mPaper | Domain Adaptation for an Automated Classification of Deontic Modalities in Software Engineering Contracts Industry Papers DOI | ||
00:30 30mLive Q&A | Q&A (Analytics & Software Evolution—Recommender Systems) Research Papers |