Researchers apply machine-learning techniques for code smell detection to counter the subjectivity of many code smells. Such approaches need a large, manually annotated dataset for training and benchmarking. Existing literature offers a few datasets; however, they are small in size and, more importantly, do not focus on the subjective code snippets. In this paper, we present DACOS, a manually annotated dataset containing 10,267 annotations for 5,192 code snippets. The dataset targets three kinds of code smells at different granularity: multifaceted abstraction, complex method, and long parameter list. The dataset is created in two phases. The first phase helps us identify the code snippets that are potentially subjective by determining the thresholds of metrics used to detect a smell. The second phase collects annotations for potentially subjective snippets. We also offer an extended dataset DACOSX that includes definitely benign and definitely smelly snippets by using the thresholds identified in the first phase. We have developed TagMan, a web application to help annotators view and mark the snippets one-by-one and record the provided annotations. We make the datasets and the web application accessible publicly. This dataset will help researchers working on smell detection techniques to build relevant and context-aware machine-learning models.
Code Smells in Clojure: Initial Findings from a Grey Literature Review
Federal University of Campina Grande (UFCG)(坎皮纳格兰德联邦大学);Federal University of Viçosa (UFV)(维索卡联邦大学);Federal University of Minas Gerais (UFMG)(米纳斯吉拉斯联邦大学)
FedCSD: A Federated Learning Based Approach for Code-Smell Detection
Center for Applied Intelligent Systems Research(应用智能系统研究中心);School of Information Technology(信息技术学院);Halmstad University(哈尔姆斯塔德大学);Prince Abdullah bin Ghazi Faculty of Information and Communication Technology(阿卜杜拉·本·加齐王子信息与通信技术学院);Al-Balqa Applied University(巴尔卡应用大学);Internet of Things and People Research Center(物联网与人研究中心);Malmö University(马尔默大学);Department of Computer Science(计算机科学系);Blekinge Institute of Technology(布莱金厄理工学院);Institute of Computer Science(计算机科学研究所);Delta Research Centre(德尔塔研究中心);University of Tartu(塔尔图大学);SeSa Lab(SeSa实验室);University of Salerno(萨勒诺大学);Arab American University(阿拉伯美国大学)