一句话:提出 IdioMine,识别跨非连续代码行、数据流复杂的 Java 良构惯用法,并突破数据集特定限制。
代码惯用法是在多个软件项目中解决特定问题或任务的常用模式、技巧或实践,可提升代码质量、性能与可维护性,并促进项目间的标准化与复用。然而,现有代码惯用法识别研究仍受三方面限制:难以识别跨非连续代码行的惯用法;难以处理数据流与代码结构复杂的惯用法;且只能抽取特定数据集中的惯用法,因此数据集中罕见但常见的惯用法或成熟代码/设计模式无法被识别。为此,论文提出 IdioMine,面向 Java 编程场景挖掘良构惯用法,以克服上述局限。摘要未给出具体方法细节与实验结果。
Code idioms are commonly used patterns, techniques, or practices that aid in solving particular problems or specific tasks across multiple software projects. They can improve code quality, performance, and maintainability, and also promote program standardization and reuse across projects. However, identifying code idioms is significantly challenging, as existing studies have still suffered from three main limitations. First, it is difficult to recognize idioms that span non-contiguous code lines. Second, identifying idioms with intricate data flow and code structures can be challenging. Moreover, they only extract dataset-specific idioms, so common idioms or well-established code/design patterns that are rarely found in datasets cannot be identified.