Blogs (1) >>
ICSE 2019
Sat 25 - Fri 31 May 2019 Montreal, QC, Canada
Wed 29 May 2019 17:00 - 17:20 at St-Paul / Ste-Catherine - Program Comprehension and Reuse Chair(s): Baishakhi Ray

Developers often resort to online Q&A forums such as Stack Overflow for filling their programming needs. Although SO examples are good starting points, they are often incomplete and inadequate for the local context of the developers; adaptation of those examples is necessary to integrate them to production code. As a consequence, the process of adapting online examples is done over and over again, by multiple developers independently. We study these adaptations and variations, serving as the basis for a tool that helps integrate these online code examples in a target context in an interactive manner. We perform a large-scale empirical study about nature and extent of adaptations and variations of SO snippets. We construct a comprehensive dataset linking SO posts to GitHub counterparts based on clone detection, time stamp analysis, and explicit URL references. We then qualitatively inspect 400 SO examples and their GitHub counterparts and develop a taxonomy of 24 adaptation types. Using this taxonomy, we build an automated adaptation analysis technique on top of GumTree to classify the entire dataset into these categories. We build a Chrome extension called ExampleStack that automatically lifts an adaptation-aware template from each SO example and its GitHub counterparts to identify hot spots where most changes happen. A user study with twelve programmers shows that seeing the commonality and variations in similar GitHub counterparts increases their confidence about how to reuse the given SO example, and helps grasp a more comprehensive view about how to reuse the example differently and avoid common pitfalls.

Wed 29 May
Times are displayed in time zone: (GMT-04:00) Eastern Time (US & Canada) change

16:00 - 18:00: Papers - Program Comprehension and Reuse at St-Paul / Ste-Catherine
Chair(s): Baishakhi RayColumbia University, New York
icse-2019-Technical-Papers16:00 - 16:20
Aishwarya SivaramanUniversity of California, Los Angeles, Tianyi ZhangUniversity of California, Los Angeles, Guy Van den BroeckUniversity of California, Los Angeles, Miryung KimUniversity of California, Los Angeles
icse-2019-Journal-First-Paper16:20 - 16:30
Abdul Razzaq, Asanka WasalaUniversity of Limerick, Chris ExtonUniversity of Limerick, Jim BuckleyLero - The Irish Software Research Centre and University of Limerick
icse-2019-Journal-First-Paper16:30 - 16:40
Yanjie JiangBeijing Institute of Technology, Hui LiuBeijing Institute of Technology, Jiaqi ZhuBeijing Institute of Technology, Lu ZhangPeking University
icse-2019-Technical-Papers16:40 - 17:00
Rabee Sohail MalikTU Darmstadt, Jibesh PatraTechnical University of Darmstadt, Michael PradelUniversity of Stuttgart
Pre-print Media Attached File Attached
icse-2019-Technical-Papers17:00 - 17:20
Tianyi ZhangUniversity of California, Los Angeles, Di YangUniversity of California at Irvine, USA, Crista Lopes, Miryung KimUniversity of California, Los Angeles
icse-2019-Technical-Papers17:20 - 17:40
Eric HortonNorth Carolina State University, Chris ParninNCSU
icse-2019-Paper-Presentations17:40 - 18:00