跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:1809.05193 (cs)
[提交于 2018年8月31日]

标题:Context2Name: A Deep Learning-Based Approach to Infer Natural Variable Names from Usage Contexts

作者:Rohan Bavishi, Michael Pradel, Koushik Sen
查看论文《Context2Name: A Deep Learning-Based Approach to Infer Natural Variable Names from Usage Contexts》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Most of the JavaScript code deployed in the wild has been minified, a process in which identifier names are replaced with short, arbitrary and meaningless names. Minified code occupies less space, but also makes the code extremely difficult to manually inspect and understand. This paper presents Context2Name, a deep learningbased technique that partially reverses the effect of minification by predicting natural identifier names for minified names. The core idea is to predict from the usage context of a variable a name that captures the meaning of the variable. The approach combines a lightweight, token-based static analysis with an auto-encoder neural network that summarizes usage contexts and a recurrent neural network that predict natural names for a given usage context. We evaluate Context2Name with a large corpus of real-world JavaScript code and show that it successfully predicts 47.5% of all minified identifiers while taking only 2.9 milliseconds on average to predict a name. A comparison with the state-of-the-art tools JSNice and JSNaughty shows that our approach performs comparably in terms of accuracy while improving in terms of efficiency. Moreover, Context2Name complements the state-of-the-art by predicting 5.3% additional identifiers that are missed by both existing tools.
主题: 软件工程 (cs.SE); 机器学习 (cs.LG); 程序设计语言 (cs.PL); 机器学习 (stat.ML)
引用方式: arXiv:1809.05193 [cs.SE]
  (或者 arXiv:1809.05193v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.1809.05193

提交历史

来自:Rohan Bavishi
[v1] 2018年8月31日 星期五 20:52:10 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2018-08
切换浏览方式为:
cs
cs.LG
cs.PL
stat.ML

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站