CodeLens: An Interactive Tool for Visualizing Code Representations
Yuejun Guo, Seifeddine Bettaieb, Qiang Hu, Yves Le Traon and, Qiang Tang

TL;DR
CodeLens is an interactive, web-based tool that visualizes multiple types of code representations across various programming languages, aiding developers in understanding and exploring code structures for software engineering and machine learning tasks.
Contribution
It introduces a universal visualization environment supporting multiple code representations and languages, filling a gap in existing tools.
Findings
Supports Java, Python, JavaScript
Visualizes tokens, AST, DFG, CFG
Enhances understanding of code structures
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software System Performance and Reliability · Scientific Computing and Data Management
