期刊文献+
共找到3篇文章
< 1 >
每页显示 20 50 100
Learning Human-Written Commit Messages to Document Code Changes
1
作者 Yuan Huang Nan Jia +3 位作者 Hao-Jie Zhou Xiang-Ping Chen Zi-Bin Zheng Ming-Dong Tang 《Journal of Computer Science & Technology》 SCIE EI CSCD 2020年第6期1258-1277,共20页
Commit messages are important complementary information used in understanding code changes. To address message scarcity, some work is proposed for automatically generating commit messages. However, most of these appro... Commit messages are important complementary information used in understanding code changes. To address message scarcity, some work is proposed for automatically generating commit messages. However, most of these approaches focus on generating summary of the changed software entities at the superficial level, without considering the intent behind the code changes (e.g., the existing approaches cannot generate such message:"fixing 'null' pointer exception"). Considering developers often describe the intent behind the code change when writing the messages, we propose ChangeDoc, an approach to reuse existing messages in version control systems for automatical commit message generation. Our approach includes syntax, semantic, pre-syntax, and pre-semantic similarities. For a given commit without messages, it is able to discover its most similar past commit from a large commit repository, and recommend its message as the message of the given commit. Our repository contains half a million commits that were collected from SourceForge. We evaluate our approach on the commits from 10 projects. The results show that 21.5% of the recommended messages by ChangeDoc can be directly used without modification, and 62.8% require minor modifications. In order to evaluate the quality of the commit messages recommended by ChangeDoc, we performed two empirical studies involving a total of 40 participants (10 professional developers and 30 students). The results indicate that the recommended messages are very good approximations of the ones written by developers and often include important intent information that is not included in the messages generated by other tools. 展开更多
关键词 commit message recommendation code syntax similarity code semantic similarity code change comprehension
原文传递
Context-Aware Change Pattern for Code Transformation
2
作者 LIU Zhiping 《Wuhan University Journal of Natural Sciences》 CAS CSCD 2018年第4期355-361,共7页
When source code is over-specific to some concrete contexts, developers have to manually change the source code retrieved from the Internet. To solve this problem, we propose the context-aware change pattern(CACP). ... When source code is over-specific to some concrete contexts, developers have to manually change the source code retrieved from the Internet. To solve this problem, we propose the context-aware change pattern(CACP). For a piece of source code, we extract the changes and changes-relevant context from the past code changes, identifying CACP that is the abstract common part of the changes and context. By using CACP, the retrieved source code could be transformed into the suitable one according to different user needs. From the Github we extracted 7 topics, collected 5-6 code snippets per topic and performed 5 different experiments which illustrated that CACP improves code transformation accuracy by 73.84%. 展开更多
关键词 code transformation context-aware change pattern code change
原文传递
An incremental software architecture recovery technique driven by code changes
3
作者 Li WANG Xianglong KONG +1 位作者 Jiahui WANG Bixin LI 《Frontiers of Information Technology & Electronic Engineering》 SCIE EI CSCD 2022年第5期664-677,共14页
It is difficult to keep software architecture up to date with code changes during software evolution.Inconsistency is caused by the limitations of standard development specifications and human power resources,which ma... It is difficult to keep software architecture up to date with code changes during software evolution.Inconsistency is caused by the limitations of standard development specifications and human power resources,which may impact software maintenance.To solve this problem,we propose an incremental software architecture recovery(ISAR)technique.Our technique obtains dependency information from changed code blocks and identifies different strength-level dependencies.Then,we use double classifiers to recover the architecture based on the method of mapping code-level changes to architecture-level updates.ISAR is evaluated on 10 open-source projects,and the results show that it performs more effectively and efficiently than the compared techniques.We also find that the impact of low-quality architectural documentation on effectiveness remains stable during software evolution. 展开更多
关键词 Architecture recovery Software evolution Code change
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部