Back to search

Carleton University

Understanding How Developers Reuse Stack Overflow Code in Their GitHub Projects

Abstract

dc:description.abstract

Stack Overflow and other popular Q&A forums include a variety of reusable code snippets for software developers. In a software system, this reuse of code is referred to as "code cloning". In this study we look into how software developers reused and adopted code snippets from Stack Overflow in projects hosted on GitHub. The first part of the study concentrates on finding clones between Stack Overflow and GitHub code snippets and its challenges. Based on findings, developers are more likely to integrate Stack Overflow code snippets rather than use them directly in their projects. In the second part we develop and test multi-label classifiers for predicting the types of code clones for four feature sets. The results reveal that most of the models are likely overfit for the majority class. However, the best classifier was able to predict clone types with a F1-Score more than 76%.

Degree

thesis:*
Name thesis:degree_name
Master of Computer Science (M.C.S.)
Level thesis:degree_level
Master's
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher
Carleton University
Year dc:date.issued
2021

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Tekieh, Razieh

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • Copyright © 2021 the author(s). Theses may be used for non-commercial research, educational, or related academic purposes only. Such uses include personal study, research, scholarship, and teaching. Theses may only be shared by linking to Carleton University Institutional Repository and no part may be used without proper attribution to the author. No part may be used for commercial purposes directly or indirectly via a for-profit platform; no adaptation or derivative works are permitted without consent from the copyright owner.
Language dc:language.iso
en

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Carleton University
Base URL
carleton.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Tekieh, Razieh. Understanding How Developers Reuse Stack Overflow Code in Their GitHub Projects. Master's thesis, Carleton University, 2021. https://hdl.handle.net/20.500.14718/42425