arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2007.13025cs.SE
收藏

Source Code中设计模式挖掘查询的自动生成

Automated Query Generation for Design Pattern Mining in Source Code

Jeffy Jahfar Poozhithara, Hazeline U. Asuncion, Brent Lagesse

摘要:

识别源代码中已经存在的设计模式可以帮助维护工程师更好地理解源代码,并确定是否可以满足新的需求。目前存在用于挖掘设计模式的技术,但是这些技术中的一些需要手动标记训练数据集或手动指定每个模式的规则或查询的繁琐工作。为了解决这一挑战,我们引入了Model 2 Mine,这是一种通过解析UML图自动生成SPARQL查询的技术,确保所有约束都得到适当的解决。我们讨论了Model2Mine的底层架构及其功能。我们的初步结果表明,Model2Mine可以自动生成三种类型的设计模式(即,创建的、行为的、结构的),与手动生成的查询相比具有轻微的性能开销,并且准确性与现有技术相当或比现有技术更好。

英文摘要:

Identifying which design patterns already exist in source code can help maintenance engineers gain a better understanding of the source code and determine if new requirements can be satisfied. There are current techniques for mining design patterns, but some of these techniques require tedious work of manually labeling training datasets, or manually specifying rules or queries for each pattern. To address this challenge, we introduce Model2Mine, a technique for automatically generating SPARQL queries by parsing UML diagrams, ensuring that all constraints are appropriately addressed. We discuss the underlying architecture of Model2Mine and its functionalities. Our initial results indicate that Model2Mine can automatically generate queries for the three types of design patterns (i.e., creational, behavioral, structural), with a slight performance overhead compared to manually generated queries, and accuracy that is comparable, or perform better than, existing techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑