Developers often depend on code search engines to obtain solutions for their programming tasks. However, finding an expected solution containing code examples along with their explanations is challenging due to several issues. There is a vocabulary mismatch between the search keywords (the query) and the appropriate solutions. Semantic gap may increase for similar bag of words due to antonyms and negation. Moreover, documents retrieved by search engines might not contain solutions containing both code examples and their explanations. So, we propose CRAR (Crowd Answer Recommender) to circumvent those issues aiming at improving retrieval of relevant answers from Stack Overflow containing not only the expected code examples for the given task but also their explanations. Given a programming task, we investigate the effectiveness of combining information retrieval techniques along with a set of features to enhance the ranking of important threads (i.e., the units containing questions along with their answers) for the given task and then selects relevant answers contained in those threads, including semantic features, like word embeddings and sentence embeddings, for instance, a Convolutional Neural Network (CNN). CRAR also leverages social aspects of Stack Overflow discussions like popularity to select relevant answers for the tasks. Our experimental evaluation shows that the combination of the different features performs better than each one individually. We also compare the retrieval performance with the state-of-art CROKAGE (Crowd Knowledge Answer Generator), which is also a system aimed at retrieving relevant answers from Stack Overflow. We show that CRAR outperforms CROKAGE in Mean Reciprocal Rank and Mean Recall with small and medium effect sizes, respectively.
Across Programming Language Silos: A Study on Cross-Lingual Retrieval-augmented Code Generation
Chinese Information Processing Laboratory, Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所中文信息处理实验室);University of Chinese Academy of Sciences(中国科学院大学);The Hong Kong University of Science and Technology(香港科技大学)
CPRet: A Dataset, Benchmark, and Model for Retrieval in Competitive Programming
The Chinese University of Hong Kong(香港中文大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Tsinghua University(清华大学);Beihang University(北航);Shenzhen Loop Area Institute(深圳河套学院)
GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generation
School of Computer Science, Wuhan University(武汉大学计算机学院);Key Lab of High Confidence Software Technology (PKU), Ministry of Education School of Computer Science, Peking University(北京大学计算机科学与技术系教育部高可信软件技术重点实验室);The University of Hong Kong(香港大学);College of AI, Tsinghua University(清华大学人工智能学院);Beihang University(北京航空航天大学);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);Peking University(北京大学);Academy of Military Sciences(军事科学院)
UniCoR: Modality Collaboration for Robust Cross-Language Hybrid Code Retrieval
Central South University(中南大学);Harbin Institute of Technology(哈尔滨工业大学);Zhejiang University(浙江大学);Hangzhou Dianzi University(杭州电子科技大学);Singapore Management University(新加坡管理大学)
Design and Deployment of a Course-Aware AI Tutor in an Introductory Programming Course
Johannes Kepler University Linz, Institute of Business Informatics – Software Engineering(林茨约翰内斯·开普勒大学商业信息学研究所-软件工程);University of Innsbruck, Department of Computer Science(因斯布鲁克大学生物科学系)
ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generation
College of Computer Science and Artificial Intelligence(计算机科学与人工智能学院);Fudan University(复旦大学);Shanghai Institute of Artificial Intelligence for Education(教育人工智能研究所);East China Normal University(华东师范大学);School of Information, Renmin University of China(信息学院,中国人民大学);School of Smart Governance, Renmin University of China(智能治理学院,中国人民大学)
Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning
National Engineering Research Center for Software Engineering, Peking University(北京大学软件工程国家工程研究中心);School of Software and Microelectronics, Peking University(北京大学软件与微电子学院);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)
Scientific Code Search at Scale: A Multi-Domain Dataset and Benchmark
The University of Alabama in Huntsville (UAH)(阿拉巴马大学亨茨维尔分校);Universities Space Research Association (USRA)(大学空间研究协会);NASA Marshall Space Flight Center(美国国家航空航天局马歇尔太空飞行中心)