作者: Srinivasan Iyer , Ioannis Konstas , Alvin Cheung , Luke Zettlemoyer
DOI: 10.18653/V1/D18-1192
关键词: Computer science 、 sort 、 Source code 、 Code (cryptography) 、 Class (computer programming) 、 Context (computing) 、 Documentation 、 Programming language 、 Task (project management) 、 Member variable
摘要: Source code is rarely written in isolation. It depends significantly on the programmatic context, such as class that would reside in. To study this phenomenon, we introduce task of generating member functions given English documentation and context provided by rest class. This challenging because desired can vary greatly depending functionality provides (e.g., a sort function may or not be available when are asked to “return smallest element” particular variable list). We CONCODE, new large dataset with over 100,000 examples consisting Java classes from online repositories, develop encoder-decoder architecture models interaction between method environment. also present detailed error analysis suggesting there significant room for future work task.