Reference papers on API mapping, migration, and evolution collected during PhD research (2018). Topics include: API usage adaptation (LibSync), statistical API mapping mining (StaMiner, MAM), API mapping via vector representations (Word2Vec), text mining for API mappings (TMAP), library migration graphs, framework evolution (AURA), class library migration refactoring, and API specification inference (Doc2Spec).
961 B
category, type, person, date, source
| category | type | person | date | source |
|---|---|---|---|---|
| academic | academic | Yanxin Lu | 2016 | Nguyen_16_vector.pdf |
Mapping API Elements for Code Migration with Vector Representations
Trong Duc Nguyen, Anh Tuan Nguyen, Tien N. Nguyen (Iowa State University)
ICSE Companion 2016
Code migration between languages is challenging because different languages require developers to use different software libraries and frameworks. This paper introduces a statistical approach with vector representations to mine single API mappings between Java JDK and C# .NET. The authors characterize an API element by its usage context consisting of surrounding, co-occurring APIs, and use Word2Vec to project the APIs into continuous vector spaces. The transformation matrix between the two vector spaces is learned from a small set of human-written pairs of mappings, then used to derive other mappings and generate corresponding API sequences in C# via a phrase-based translation model.