Write a Blog >>
MSR 2019
Sun 26 - Mon 27 May 2019 Montreal, QC, Canada
co-located with ICSE 2019
Sun 26 May 2019 17:27 - 17:34 at Place du Canada - Mining Challenge presentations

Developers frequently copy code snippets from publicly-available resources such as Stack Overflow (SO). While this may lead to a ‘quick fix’ for a development problem, little is known about how these copied code snippets affect the code quality of the recipient application, or how the quality of the recipient classes subsequently evolves over the time of the project. This has an impact on whether such code copying should be encouraged, and how classes that receive such code snippets should be monitored during evolution. To investigate this issue, we used instances from the SOTorrent database where Java snippets had been copied from Stack Overflow into GitHub projects. In each case, we measured the quality of the recipient class just prior to the addition of the snippet, immediately after the addition of the snippet, and at a later stage in the project. Our goal was to determine if the addition of the snippet caused quality to improve or deteriorate, and what the long-term implications were for the quality of the recipient class. Code quality was measured using the cohesion metrics Low-level Similarity-based Class Cohesion (LSCC) and Class Cohesion (CC). Over a random sample of 378 classes that received code snippets copied from Stack Overflow to GitHub, we found that in almost 70% of the cases where the copied snippet affected cohesion, the effect was to reduce the cohesion of the recipient class. Furthermore, this deterioration in cohesion tends to persist in the subsequent evolution of the recipient class. In over 70% of cases the recipient class never fully regained the cohesion it lost in receiving the snippet. These results suggest that when copying code snippets from external repositories, more attention should be paid to integrating the code with the recipient class.

Sun 26 May

msr-2019-Mining-Challenge
16:00 - 18:00: MSR 2019 Mining Challenge - Mining Challenge presentations at Place du Canada
msr-2019-Mining-Challenge16:00 - 16:10
Talk
Sebastian Baltes University of Trier, Christoph TreudeThe University of Adelaide, Stephan DiehlComputer Science, University Trier, Germany
Pre-print
msr-2019-Mining-Challenge16:10 - 16:17
Talk
Pre-print
msr-2019-Mining-Challenge16:17 - 16:24
Talk
Akond RahmanNorth Carolina State University, Effat Farhana, Nasif ImtiazNorth Carolina State University
Pre-print
msr-2019-Mining-Challenge16:24 - 16:31
Talk
Jens DietrichVictoria University of Wellington, Markus Luczak-Roesch, Elroy Dalefield
Pre-print
msr-2019-Mining-Challenge16:31 - 16:38
Talk
Nikolaos Bafatakis, Niels Boecker, Wenjie Boon, Martin Cabello Salazar, Jens KrinkeUniversity College London, Gazi Oznacar, Robert WhiteUniversity College London, UK
Pre-print Media Attached
msr-2019-Mining-Challenge16:38 - 16:45
Talk
Themistoklis DiamantopoulosElectrical and Computer Engineering Dept, Aristotle University of Thessaloniki, Maria-Ioanna SifakiElectrical and Computer Engineering Dept, Aristotle University of Thessaloniki, Andreas SymeonidisAristotle University of Thessaloniki
Pre-print Media Attached
msr-2019-Mining-Challenge16:45 - 16:52
Talk
Abhishek Soni, Sarah NadiUniversity of Alberta
Pre-print
msr-2019-Mining-Challenge16:52 - 16:59
Talk
Xianhao JinVirginia Tech, USA, Francisco ServantVirginia Tech
Pre-print
msr-2019-Mining-Challenge16:59 - 17:06
Talk
Durham AbricMcGill University, Oliver Clark, Matthew Caminiti, Keheliya GallabaMcGill University, Shane McIntoshMcGill University
Pre-print
msr-2019-Mining-Challenge17:06 - 17:13
Talk
Saraj Singh Manes, Olga BaysalCarleton University
Pre-print
msr-2019-Mining-Challenge17:13 - 17:20
Talk
Manziba Nishi, Agnieszka Ciborowska , Kostadin DamevskiVirginia Commonwealth University
Pre-print
msr-2019-Mining-Challenge17:20 - 17:27
Talk
Nasif ImtiazNorth Carolina State University, Akond RahmanNorth Carolina State University, Effat Farhana, Laurie WilliamsNorth Carolina State University
Pre-print
msr-2019-Mining-Challenge17:27 - 17:34
Talk
DOI Pre-print
msr-2019-Mining-Challenge17:34 - 17:41
Talk
Alan Bandeira, Carlos Filho, Matheus Paixão State University of Ceara, Brazil, Paulo MaiaState University of Ceará
Pre-print Media Attached
msr-2019-Mining-Challenge17:41 - 17:48
Talk
Hareem-e-Sahar , Abdul Ali BangashUniversity of Alberta, Canada, Alexander William Wong, Shaiful ChowdhuryUniversity of Alberta, Abram HindleUniversity of Alberta, Karim AliUniversity of Alberta
msr-2019-Mining-Challenge17:48 - 18:00