Toward accurate detection on change barriers

来源 :中国科学:信息科学(英文版) | 被引量 : 0次 | 上传用户:allenwyh
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
In software development,it is easy to introduce code smells owing to the complexity of projects and the negligence of programmers.Code smells reduce code comprehensibility and maintainability,making programs error-prone.Hence,code smell detection is extremely important.Recently,machine learning-based technologies turn to be the mainstream detection approaches,which show promising performance.However,existing machine learning methods have two limitations: (1) most studies only focus on common smells,and (2) the proposed metrics are not effective when being used for uncommon code smell detection,e.g.,change barrier based code smells.To overcome these limitations,this paper investigates the detection of uncommon change barrier based code smells.We study three typical code smells,i.e.,Divergent Change,Shotgun Surgery,and Parallel Inheritance,which all belong to change barriers.We analyze the characteristics of change barriers and extract domain-specific metrics to train a Logistic Regression model for detection.The experimental results show that our method achieves 81.8%-100% precision and recall,outperforming existing algorithms by 10%-30%.In addition,we analyze the correlation and importance of the utilized metrics.We find our domain-specific metrics are important for the detection of change barriers.The results would help practitioners better design detection tools for such code smells.
其他文献
Transition metal oxides have high specific capacity as anode materials for lithium-ion battery.But aggregation of particles and volume expansion during lithiati
Multiple instance learning (MIL) assigns a single class label to a bag of instances tailored for some real-world applications such as drug activity prediction.C
期刊
With the significant development of unmanned aerial vehicles (UAVs) technologies,a rapid increase on the use of UAV swarms in a wide range of civilian and emerg
To realize the high-efficiency acquisition of environmental mechanical energy,traditional triboelectric nanogenerators (TENGs) based on contact-separation consi
Dear editor,rnLow-rank tensor recovery(LRTR)[1]is a natural higher-order generalization of the compressed sensing(CS)[2]and the low-rank matrix recovery(LRMR)[3
期刊
Realization of robust quantum computing is a tremendous task.On one hand,one must reduce errors as many as pos-sible using various means[1-3];on the other hand,
期刊
近年来,北京汽车股份有限公司汽车研究院结合自主研发高端人才培养需求的实际,在研发人才培养工作方面不断创新,探索并形成了具有汽车研发特色的“匠研·隧穿”研发人才培养
期刊
We present neural compositing,a deep-learning based method for augmented reality rendering,which uses convolutional neural networks to composite rendered layers
2020年10月民政部召开加强乡镇(街道)社会工作人才队伍建设推进会,作出“十四五”期间实现乡镇(街道)社工站全覆盖的工作部署,中共中央办公厅、国务院办公厅印发《关于加快推
期刊