{"id":{"repo_id":"carleton","oai_identifier":"oai:carleton.scholaris.ca:20.500.14718/42425"},"canonical_url":"https://search.ndltd.org/etd/carleton/oai:carleton.scholaris.ca:20.500.14718/42425","repository":{"repo_id":"carleton","name":"Carleton University","base_url":"https://carleton.scholaris.ca/server/oai/request"},"display":{"title":"Understanding How Developers Reuse Stack Overflow Code in Their GitHub Projects","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%.","abstract_html":"Stack Overflow and other popular Q&amp;A forums include a variety of reusable code snippets for software developers. In a software system, this reuse of code is referred to as &quot;code cloning&quot;. 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%.","abstract_has_math":false,"creators":["Tekieh, Razieh"],"institution":"Carleton University","degree_name":"Master of Computer Science (M.C.S.)","degree_level":"Master's","degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2021,"date_issued":"2021","date_published":"2021","updated_at":"2026-11-19T07:06:21Z","subjects":["Computer science"],"languages":["en"],"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."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.doi","label":"DOI","values":["10.22215/etd/2021-14656"],"render_values":[{"text":"10.22215/etd/2021-14656","href":"https://doi.org/10.22215/etd/2021-14656","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/20.500.14718/42425","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/20.500.14718/42425","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://carleton.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Acarleton.scholaris.ca%3A20.500.14718%2F42425","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Tekieh, Razieh"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-04-08T20:37:26Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-04-08T20:37:26Z"]},{"key":"dc:date.issued","label":"Date","values":["2021"]},{"key":"dc:publisher","label":"Institution","values":["Carleton University"]},{"key":"dc:type","label":"Dc Type","values":["thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Computer Science (M.C.S.)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.lcsh","label":"Dc Subject Lcsh","values":["Computer science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["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."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["10.22215/etd/2021-14656"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.14718/42425"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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%."]},{"key":"dc:title","label":"Title","values":["Understanding How Developers Reuse Stack Overflow Code in Their GitHub Projects"]},{"key":"local:lac.licence","label":"Local Lac Licence","values":["true"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:creator":["Tekieh, Razieh"],"dc:date.accessioned":["2025-04-08T20:37:26Z"],"dc:date.available":["2025-04-08T20:37:26Z"],"dc:date.issued":["2021"],"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%."],"dc:identifier.doi":["10.22215/etd/2021-14656"],"dc:identifier.uri":["https://hdl.handle.net/20.500.14718/42425"],"dc:language.iso":["en"],"dc:publisher":["Carleton University"],"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."],"dc:subject.lcsh":["Computer science"],"dc:title":["Understanding How Developers Reuse Stack Overflow Code in Their GitHub Projects"],"dc:type":["thesis"],"local:lac.licence":["true"],"others:access_status":["open.access"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Computer Science (M.C.S.)"]},"updated_at":"2026-11-19T07:06:21Z"}