CodeLens:一个用于可视化代码表示的交互式工具
CodeLens: An Interactive Tool for Visualizing Code Representations
AI总结:
本文介绍了 CodeLens,一个支持多种编程语言和四种代码表示类型的交互式可视化工具,旨在帮助开发者理解和探索代码表示并获取模型输入。
摘要:
将源代码表示为通用的输入格式对于自动化软件工程任务至关重要,例如应用机器学习算法来提取信息。可视化代码表示可以进一步使人类专家对代码获得直观的洞察。遗憾的是,迄今为止,尚无一种通用工具能够同时可视化不同类型的代码表示。在本文中,我们介绍了一款工具 CodeLens,它提供了一个支持多种表示方法的可视化交互环境,帮助开发者理解并探索这些方法。CodeLens 被设计为支持多种编程语言,如 Java、Python 和 JavaScript,以及四种类型的代码表示,包括 token 序列、抽象语法树(AST)、数据流图(DFG)和控制流图(CFG)。通过使用 CodeLens,开发者可以快速可视化特定的代码表示,并获取用于代码模型的表示输入。CodeLens 的基于 Web 的界面可在 http://www.codelens.org 获取。演示视频可在 http://www.codelens.org/demo 找到。
英文摘要:
Representing source code in a generic input format is crucial to automate software engineering tasks, e.g., applying machine learning algorithms to extract information. Visualizing code representations can further enable human experts to gain an intuitive insight into the code. Unfortunately, as of today, there is no universal tool that can simultaneously visualise different types of code representations. In this paper, we introduce a tool, CodeLens, which provides a visual interaction environment that supports various representation methods and helps developers understand and explore them. CodeLens is designed to support multiple programming languages, such as Java, Python, and JavaScript, and four types of code representations, including sequence of tokens, abstract syntax tree (AST), data flow graph (DFG), and control flow graph (CFG). By using CodeLens, developers can quickly visualize the specific code representation and also obtain the represented inputs for models of code. The Web-based interface of CodeLens is available at http://www.codelens.org. The demonstration video can be found at http://www.codelens.org/demo.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。