arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.05036cs.SE
收藏

使用机器学习预测开发人员的IDE命令

Predicting Developers' IDE Commands with Machine Learning

Tyson Bulmer, Lloyd Montgomery, Daniela Damian

摘要:

当开发人员编写代码时,他们通常是专注的,处于一种被称为流的精神状态。打破这种流程会导致开发人员失去他们的思想训练,不得不从头开始他们的思想过程。这种思维的丢失可能是由中断和有时缓慢的IDE交互引起的。预测功能已经在用户应用程序中被利用来加快加载时间,例如在Google Chrome的浏览器中,它具有一个名为“预测网络动作”的功能。这将预先加载用户最有可能点击的网页。这减轻了加载时间可能引入的中断。在本文中,我们试图在IDE中预测用户命令的第一步。使用超过3000个开发者会话和超过1000万个记录事件的MSR 2018挑战数据,我们分析和清理要解析为事件序列的数据,然后可以用于训练各种机器学习模型,包括神经网络,以预测用户诱导的命令。我们的最高性能模型能够获得64%的5交叉验证预测准确率。

英文摘要:

When a developer is writing code they are usually focused and in a state-of-mind which some refer to as flow. Breaking out of this flow can cause the developer to lose their train of thought and have to start their thought process from the beginning. This loss of thought can be caused by interruptions and sometimes slow IDE interactions. Predictive functionality has been harnessed in user applications to speed up load times, such as in Google Chrome's browser which has a feature called "Predicting Network Actions". This will pre-load web-pages that the user is most likely to click through. This mitigates the interruption that load times can introduce. In this paper we seek to make the first step towards predicting user commands in the IDE. Using the MSR 2018 Challenge Data of over 3000 developer session and over 10 million recorded events, we analyze and cleanse the data to be parsed into event series, which can then be used to train a variety of machine learning models, including a neural network, to predict user induced commands. Our highest performing model is able to obtain a 5 cross-fold validation prediction accuracy of 64%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑