--- category: academic type: academic person: Yanxin Lu date: 2017 source: phan_17_migration.pdf --- # Statistical Migration of API Usages Hung Dang Phan, Anh Tuan Nguyen, Trong Duc Nguyen (Iowa State University), Tien N. Nguyen (UT Dallas) ICSE Companion 2017 To support code migration, the authors introduce JV2CS, a tool to generate a sequence of C# API elements and related control units that are needed to migrate a given Java code fragment. First, they mine the mappings between single APIs in Java and C#. To overcome the lexical mismatch between API names, they represent an API by its usages instead of its name, characterizing it with its context consisting of surrounding APIs, and use Word2Vec to project the APIs into continuous vector spaces. The transformation matrix 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 statistical machine translation (SMT) tool.