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

Displayed time zone: Eastern Time (US & Canada) change

16:00 - 18:00
Mining Challenge presentationsMSR 2019 Mining Challenge at Place du Canada
16:00
10m
Talk
SOTorrent: Studying the Origin, Evolution, and Usage of Stack Overflow Code Snippets
MSR 2019 Mining Challenge
A: Sebastian Baltes University of Trier, A: Christoph Treude The University of Adelaide, A: Stephan Diehl Computer Science, University Trier, Germany
Pre-print
16:10
7m
Talk
Mining Rule Violations in JavaScript Code Snippets
MSR 2019 Mining Challenge
Pre-print
16:17
7m
Talk
Snakes in Paradise?: Insecure Python-related Coding Practices in Stack Overflow
MSR 2019 Mining Challenge
Akond Rahman North Carolina State University, Effat Farhana , Nasif Imtiaz North Carolina State University
Pre-print
16:24
7m
Talk
Man vs Machine -- A Study into language identification of Stackoverflow code snippets
MSR 2019 Mining Challenge
Jens Dietrich Victoria University of Wellington, Markus Luczak-Roesch , Elroy Dalefield
Pre-print
16:31
7m
Talk
Python Coding Style Compliance on Stack Overflow
MSR 2019 Mining Challenge
Nikolaos Bafatakis , Niels Boecker , Wenjie Boon , Martin Cabello Salazar , Jens Krinke University College London, Gazi Oznacar , Robert White University College London, UK
Pre-print Media Attached
16:38
7m
Talk
Towards Mining Answer Edits to Extract Evolution Patterns in Stack Overflow
MSR 2019 Mining Challenge
Themistoklis Diamantopoulos Electrical and Computer Engineering Dept, Aristotle University of Thessaloniki, Maria-Ioanna Sifaki Electrical and Computer Engineering Dept, Aristotle University of Thessaloniki, Andreas Symeonidis Aristotle University of Thessaloniki
Pre-print Media Attached
16:45
7m
Talk
Analyzing Comment-induced Updates on Stack Overflow
MSR 2019 Mining Challenge
Abhishek Soni , Sarah Nadi University of Alberta
Pre-print
16:52
7m
Talk
What Edits Are Done on Highly Answered Stack Overflow Questions? An Empirical Study
MSR 2019 Mining Challenge
Xianhao Jin Virginia Tech, USA, Francisco Servant Virginia Tech
Pre-print
16:59
7m
Talk
Can Duplicate Posts on Stack Overflow Benefit the Software Development Community?
MSR 2019 Mining Challenge
Durham Abric McGill University, Oliver Clark , Matthew Caminiti , Keheliya Gallaba McGill University, Shane McIntosh McGill University
Pre-print
17:06
7m
Talk
How Often and What StackOverflow Posts Do Developers Reference in Their GitHub Projects?
MSR 2019 Mining Challenge
Saraj Singh Manes , Olga Baysal Carleton University
Pre-print
17:13
7m
Talk
Characterizing Duplicate Code Snippets between Stack Overflow and Tutorials
MSR 2019 Mining Challenge
Manziba Nishi , Agnieszka Ciborowska , Kostadin Damevski Virginia Commonwealth University
Pre-print
17:20
7m
Talk
Challenges with Responding to Static Analysis Tool Alerts
MSR 2019 Mining Challenge
Nasif Imtiaz North Carolina State University, Akond Rahman North Carolina State University, Effat Farhana , Laurie Williams North Carolina State University
Pre-print
17:27
7m
Talk
Impact of stack overflow code snippets on software cohesion: a preliminary study
MSR 2019 Mining Challenge
DOI Pre-print
17:34
7m
Talk
We Need to Talk about Microservices: an Analysis from the Discussions on StackOverflow
MSR 2019 Mining Challenge
Alan Bandeira , Carlos Filho , Matheus Paixao State University of Ceara, Brazil, Paulo Maia State University of Ceará
Pre-print Media Attached
17:41
7m
Talk
What do developers know about machine learning: a study of ML discussions on StackOverflow
MSR 2019 Mining Challenge
Hareem-e-Sahar , Abdul Ali Bangash University of Alberta, Canada, Alexander William Wong , Shaiful Chowdhury University of Alberta, Abram Hindle University of Alberta, Karim Ali University of Alberta
17:48
12m
Recap + voting
MSR 2019 Mining Challenge