一种基于LDA和静态分析的代码功能识别方法  被引量:3

Code function recognition approach based on LDA and static analysis

在线阅读下载全文

作  者:金靖[1,2] 李萌[1,2] 华哲邦[1,2] 宋怀达[1,2] 赵俊峰[1,2] 谢冰[1,2] 

机构地区:[1]北京大学信息科学技术学院,北京100871 [2]北京大学高可信软件技术教育部重点实验室,北京100871

出  处:《计算机工程与应用》2013年第15期27-31,47,共6页Computer Engineering and Applications

基  金:国家重点基础研究发展规划(973)(No.2011CB302604);国家高技术研究发展计划(863)(No.2012AA011202);国家自然科学基金(No.60931160444;No.61103024);质检公益性行业科研专项(No.201210256);广东省省部产学研结合项目(No.2010A090200031)

摘  要:近年来,随着代码复用技术不断成熟和Internet上开源项目不断丰富,软件开发人员的开发行为也逐渐发生了变化。如今,软件开发人员在编程过程中越来越多地依赖于开源软件项目提供的功能。然而,在软件复用活动中,由于开源项目文档的不全面以及代码结构的复杂性,软件开发人员往往只能片面地了解项目的某些功能点,使得复用效率不高。针对开源项目代码丰富而文档较少这一现状,提出了一种基于LDA(Latent Dirichlet Allocation)和静态分析的代码功能识别方法,对传统LDA方法进行了扩展,帮助软件开发人员更全面地了解项目的功能点,从而更好地支持代码复用活动。In recent years, with the rapid development of code reuse technology and open source projects on Internet, software developers' programming activities are gradually changed. Today, software developers increasingly rely on the functions supplied by open source projects while they're programming. However, due to the lack of documents and the complexity of code structure, the efficiency of software reuse is not high. Software developers usually only learn small parts of project's functions instead of comprehensive understanding. In order to better support the activity of code reuse, a function recognition approach based on LDA and code static analysis technology, which is an extension of traditional LDA, is proposed to help developers better learn the functions of a project.

关 键 词:软件复用 代码 隐含狄利克雷分配(LDA) 静态分析 功能识别 

分 类 号:TP301[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象