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

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 struct...

Full description

Saved in:
Bibliographic Details
Published in2019 IEEE/ACM 16th International Conference on Mining Software Repositories (MSR) pp. 13 - 17
Main Authors Kovalenko, Vladimir, Bogomolov, Egor, Bryksin, Timofey, Bacchelli, Alberto
Format Conference Proceeding
LanguageEnglish
Published IEEE 01.05.2019
Subjects
Online AccessGet full text
ISSN2574-3864
DOI10.1109/MSR.2019.00013

Cover

More Information
Summary: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].
ISSN:2574-3864
DOI:10.1109/MSR.2019.00013