Visible to the public Mapping API Elements for Code Migration with Vector Representations

TitleMapping API Elements for Code Migration with Vector Representations
Publication TypeConference Paper
Year of Publication2016
AuthorsNguyen, Trong Duc, Nguyen, Anh Tuan, Nguyen, Tien N.
Conference NameProceedings of the 38th International Conference on Software Engineering Companion
Date PublishedMay 2016
PublisherACM
Conference LocationNew York, NY, USA
ISBN Number978-1-4503-4205-6
KeywordsAPI, API mappings, APIs, applications programming interfaces, code migration, compositionality, language migration, pubcrawl, Resiliency, Word2Vec
Abstract

Problem. Code migration between languages is challenging partly because different languages require developers to use different software libraries and frameworks. For example, in Java, Java Development Kit library (JDK) is a popular toolkit while .NET is the main framework used in C\# software development. Code migration requires not only the mappings between the language constructs (e.g., statements, expressions) but also the mappings among the APIs of the libraries/frameworks used in two languages. For example, in Java, to write to a file, one can use FileWriter.write of FileWriter, and in C\#, one can achieve the same function with StreamWriter.Write of StreamWriter. Such mapping is called API mapping.

URLhttps://dl.acm.org/doi/10.1145/2889160.2892661
DOI10.1145/2889160.2892661
Citation Keynguyen_mapping_2016