首页> 外文会议>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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号