众包数据分析:编程概念到语法模式的映射
Crowd Sourced Data Analysis: Mapping of Programming Concepts to Syntactical Patterns
摘要:
由于编程概念与其语法表示不匹配,代码搜索是一项非常繁琐的任务。例如,在Java或C中,数组不匹配[],因此使用“array”作为查询,无法找到他们正在寻找的内容。开发人员通常必须搜索代码,无论是为了理解任何代码,还是为了重用代码的某个部分,或者只是为了阅读它,而没有自然语言搜索,开发人员必须经常来回滚动或使用变量名称作为查询。在我们的工作中,我们使用Stackoverflow(SO)的问题和答案,使一个映射的编程概念与各自的自然语言的关键字,然后标记这些自然语言条款的每一行代码,这可以进一步用于搜索使用自然语言关键字。
英文摘要:
Since programming concepts do not match their syntactic representations, code search is a very tedious task. For instance in Java or C, array doesn't match [], so using "array" as a query, one cannot find what they are looking for. Often developers have to search code whether to understand any code, or to reuse some part of that code, or just to read it, without natural language searching, developers have to often scroll back and forth or use variable names as their queries. In our work, we have used Stackoverflow (SO) question and answers to make a mapping of programming concepts with their respective natural language keywords, and then tag these natural language terms to every line of code, which can further we used in searching using natural language keywords.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。