UPDATE: Zenodo migration postponed to Oct 13 from 06:00-08:00 UTC. Read the announcement.

Conference paper Open Access

PathMiner : A Library for Mining of Path-Based Representations of Code

Vladimir Kovalenko; Egor Bogomolov; Timofey Bryksin; Alberto Bacchelli

One recent, significant advance in modeling source code for machine learning algorithms has been the introduction of path-based representation -- an approach consisting in representing a snippet of code as a collection of paths from its syntax tree. Such representation efficiently captures the structure of code, which, in turn, carries its semantics and other information.
Building the path-based representation involves parsing the code and extracting the paths from its syntax tree; these steps build up to a substantial technical job. With no common reusable toolkit existing for this task, the burden of mining diverts the focus of researchers from the essential work and hinders newcomers in the field of machine learning on code.


In this paper, we present PathMiner -- an open-source library for mining path-based representations of code. PathMiner is fast, flexible, well-tested, and easily extensible to support input code in any common programming language. Preprint [https://doi.org/10.5281/zenodo.2595271]; released tool [https://doi.org/10.5281/zenodo.2595257].

Files (514.6 kB)
Name Size
pathminer-preprint.pdf
md5:f1707759e8f38c1e7ec53a4c5fd49462
514.6 kB Download
2,557
1,387
views
downloads
All versions This version
Views 2,5572,559
Downloads 1,3871,389
Data volume 713.7 MB714.7 MB
Unique views 2,3022,304
Unique downloads 1,2641,265

Share

Cite as