什么特征化了成对模块化坏味?
What Characterizes Pairwise Modular Smells?
AI总结:
本研究通过快速综述收集19种成对特征,并训练机器学习模型预测两种成对模块化坏味(InSep和InCol),在11个Java项目数据集上ROC-AUC提升高达58.6%,揭示了影响坏味的关键特征。
摘要:
增强现有系统的模块化结构引起了大量研究兴趣,主要通过(1)软件模块化和(2)识别设计问题(如坏味)作为重构机会;然而,这两种方法通常难以指导有效的改进。受上述两种方法的启发,我们之前的研究引入了一种新颖且实用的架构坏味——称为成对模块化坏味(Pairwise Modular Smell,简称PairSmell)——用于识别需要进一步检查的有缺陷的架构决策。本研究的目标是从成对特征的角度解释PairSmell。为此,我们首先进行快速综述,收集并综合了文献中用于表示两个实体之间关系的19种成对特征。然后,使用收集的特征训练机器学习模型,基于从11个开源Java项目中提取的超过6,135,000对实体的数据集,预测两种形式的PairSmell——不恰当分离对(InSep)和不恰当共置对(InCol)。训练后的模型在ROC-AUC上比基线提高了高达58.6%。模型的解释表明,对InSep影响最大的特征是传出依赖、与其他实体共享的术语以及声明的字段;而对InCol影响最大的特征包括基于tf-idf的语义相似性、成对之间共享的术语、与其他实体共享的术语以及传入依赖。我们通过一系列实际示例补充了这项工作,以说明有影响力的成对特征如何影响PairSmell的出现。
英文摘要:
Enhancing the modular structure of existing systems has attracted substantial research interest, primarily through (1) software modularization and (2) identifying design issues (e.g., smells) as refactoring opportunities; however, both approaches often prove impractical to guide effective improvement. Inspired by both aforementioned approaches, our previous study introduced a novel and practical architectural smell -- called Pairwise Modular Smell (or PairSmell) -- for identifying flawed architectural decisions that necessitate further examination. The objective of this study is to explain PairSmell from the perspective of pair characteristics. To this end, we first conduct a rapid review to collect and synthesize 19 pair characteristics that have been used in the literature to represent relationships between two entities. The collected characteristics are then used to train machine learning models for predicting two forms of PairSmell -- inapt separated pairs InSep and inapt collocated pairs InCol, based on a curated dataset of over 6,135,000 pairs of entities derived from 11 open-source Java projects. The trained models achieve up to a 58.6% improvement in ROC-AUC over the baselines. The interpretation of the models reveals that the most influential features for InSep are out-going dependencies, terms shared with others, and declared fields; while those for InCol include semantic similarity based on tf-idf, terms shared between the pair, terms shared with others, and in-going dependencies. We complement the work with a series of practical examples to illustrate how the influential pair characteristics impact the occurrence of PairSmell.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。