首页> 外文会议>International Conference on Advanced Data Mining and Applications >Properly and Automatically Naming Java Methods: A Machine Learning Based Approach
【24h】

Properly and Automatically Naming Java Methods: A Machine Learning Based Approach

机译:正确和自动命名Java方法:基于机器的方法

获取原文

摘要

Method names play an important role in software maintenance. A good name explains the function of a method to developers, while bad names mislead them. However, method naming is a complicated task. For example, Java programming specification suggests that method names should be verbs or verb phrases. Previous research shows that each identical verb is related to at least one name rule and each rule is consists of 30 conditions. Since large-scale software contains hundreds of identical verbs, choosing the proper verb for a method is related to thousands of conditions. There exists some semi-automated method verb rule mining techniques. these rules are useful to find if a method uses the wrong verb. However, they are not effective for general case when no rules are applicable. In addition, none of them discusses how to find the proper target of the verb. This paper proposes an automated method-naming tool, based on machine learning approach. Experiments on Eclipse and other Java projects show that our tool can successfully predict the verbs of 70% methods and pick out the proper targets in method contents for 90% methods.
机译:方法名称在软件维护中发挥着重要作用。一个好名字解释了方法对开发人员的函数,而糟糕的名字误导了它们。但是,方法命名是一个复杂的任务。例如,Java编程规范表明方法名称应该是动词或动词短语。以前的研究表明,每个相同的动词与至少一个名称规则有关,每个规则都包含30条条件。由于大规模软件包含数百个相同的动词,因此为方法选择正确的动词与数千条条件相关。存在一些半自动方法动词规则挖掘技术。这些规则可用于查找方法是否使用错误的动词。但是,当没有规则不适用时,它们对一般情况无效。此外,他们都没有讨论如何找到动词的适当目标。本文提出了一种基于机器学习方法的自动化方法命名工具。 Eclipse和其他Java项目的实验表明,我们的工具可以成功预测70%方法的动词,并为90%方法挑选方法内容中的适当目标。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号