arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.06500cs.NEcs.PLcs.SE
收藏

DeepVS:一种高效通用的Source Code建模方法

DeepVS: An Efficient and Generic Approach for Source Code Modeling Usage

Yasir Hussain, Zhiqiu Huang, Yu Zhou, Senzhang Wang

摘要:

当前IDE提供的源代码建议大多依赖于静态类型学习。这些建议往往最终提出了一个特殊的上下文无关的建议。最近,基于深度学习的方法在各种软件工程任务的源代码建模中显示出巨大的潜力。然而,这些技术缺乏足够的泛化能力和适应性,在现实世界的软件开发环境中使用这样的模型。这封信介绍了\textit{DeepVS},这是一个端到端的深度神经代码完成工具,它通过利用双向门控递归单元(BiGRU)神经网络从现有代码库中学习。该工具能够通过使用预先训练的BiGRU神经网络在IDE中立即提供源代码建议。对这项工作的评价是双重的,即定量和定性。通过对10个真实开源软件系统的测试,该方法显示出显著的性能提升和实用性。此外,研究结果还表明,\textit{DeepVS}工具是能够建议零日(看不见的)代码令牌通过学习编码模式,从现实世界的软件系统。

英文摘要:

The source code suggestions provided by current IDEs are mostly dependent on static type learning. These suggestions often end up proposing irrelevant suggestions for a peculiar context. Recently, deep learning-based approaches have shown great potential in the modeling of source code for various software engineering tasks. However, these techniques lack adequate generalization and resistance to acclimate the use of such models in a real-world software development environment. This letter presents \textit{DeepVS}, an end-to-end deep neural code completion tool that learns from existing codebases by exploiting the bidirectional Gated Recurrent Unit (BiGRU) neural net. The proposed tool is capable of providing source code suggestions instantly in an IDE by using pre-trained BiGRU neural net. The evaluation of this work is two-fold, quantitative and qualitative. Through extensive evaluation on ten real-world open-source software systems, the proposed method shows significant performance enhancement and its practicality. Moreover, the results also suggest that \textit{DeepVS} tool is capable of suggesting zero-day (unseen) code tokens by learning coding patterns from real-world software systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑