Write a Blog >>
ESEC/FSE 2021
Thu 19 - Sat 28 August 2021 Clowdr Platform

Developers often rely on API documentation to learn API directives, i.e., constraints and guidelines related to API usage. Failing to follow API directives may cause defects or improper implementations. Since there are no industry-wide standards on how to document API directives, they take many forms and are often hard to understand by developers or challenging to parse with tools.

In this paper, we propose a learning based approach for extracting first-order logic representations of API directives (FOL directives for short). The approach, called LEADFOL, uses a joint learning method to extract atomic formulas by identifying the predicates and arguments involved in directive sentences, and recognizes the logical relations between atomic formulas, by parsing the sentence structures. It then parses the arguments and uses a learning based method to link API references to their corresponding API elements. Finally, it groups the formulas of the same class or method together and transforms them into conjunctive normal form. Our evaluation shows that LEADFOL can accurately extract more FOL directives than a state-of-the-art approach and that the extracted FOL directives are useful in supporting code reviews.

Wed 25 Aug

Displayed time zone: Athens change

17:00 - 18:00
Analytics & Software Evolution—Libraries and APIs 2Research Papers / Journal First +12h
Chair(s): Santanu Dash University of Surrey, Phuong T. Nguyen University of L’Aquila
17:00
10m
Paper
A Large-Scale Empirical Study on Java Library Migrations: Prevalence, Trends, and RationalesArtifacts AvailableArtifacts Reusable
Research Papers
Hao He Peking University, Runzhi He Peking University, Haiqiao Gu Tsinghua University, Minghui Zhou Peking University
DOI Pre-print
17:10
10m
Paper
Learning-Based Extraction of First-Order Logic Representations of API Directives
Research Papers
Mingwei Liu Fudan University, Xin Peng Fudan University, Andrian Marcus University of Texas at Dallas, Christoph Treude University of Adelaide, Xuefang Bai Fudan University, Gang Lyu Fudan University, Jiazhan Xie Fudan University, Xiaoxin Zhang Fudan University
DOI
17:20
10m
Paper
Information Correspondence between Types of Documentation for APIs
Journal First
Deeksha M. Arya McGill University, Jin L.C. Guo McGill University, Martin P. Robillard McGill University
17:30
30m
Live Q&A
Q&A (Analytics & Software Evolution—Libraries and APIs 2)
Research Papers

Thu 26 Aug

Displayed time zone: Athens change

05:00 - 06:00
Analytics & Software Evolution—Libraries and APIs 2Journal First / Research Papers
Chair(s): Julia Rubin University of British Columbia
05:00
10m
Paper
A Large-Scale Empirical Study on Java Library Migrations: Prevalence, Trends, and RationalesArtifacts AvailableArtifacts Reusable
Research Papers
Hao He Peking University, Runzhi He Peking University, Haiqiao Gu Tsinghua University, Minghui Zhou Peking University
DOI Pre-print
05:10
10m
Paper
Learning-Based Extraction of First-Order Logic Representations of API Directives
Research Papers
Mingwei Liu Fudan University, Xin Peng Fudan University, Andrian Marcus University of Texas at Dallas, Christoph Treude University of Adelaide, Xuefang Bai Fudan University, Gang Lyu Fudan University, Jiazhan Xie Fudan University, Xiaoxin Zhang Fudan University
DOI
05:20
10m
Paper
Information Correspondence between Types of Documentation for APIs
Journal First
Deeksha M. Arya McGill University, Jin L.C. Guo McGill University, Martin P. Robillard McGill University
05:30
30m
Live Q&A
Q&A (Analytics & Software Evolution—Libraries and APIs 2)
Research Papers