講演抄録/キーワード |
講演名 |
2020-10-19 16:25
コードレビュー向けコメント行位置予測ツールの試作 ○神谷年洋(島根大) SS2020-12 DC2020-29 |
抄録 |
(和) |
ソースコード中のコメントはソースコードを理解するために重要である.
本稿では,ソースコード中にコメントが出現する位置を予測する手法の提案とツールの試作について報告する.
このツールは与えられたソースファイルを字句解析して抽出したトークンの列(コメントも特殊なトークンとして含まれている)を入力とし,
ある位置に出現するトークンがコメントであるかの予測を出力とするRNN(回帰型ニューラルネットワーク)により,
与えられたソースファイルの中で文末にコメントが出現する位置を予測する機能を持つ.
応用としては,ソースコードのレビューにおいてコメントが書かれると期待されるが書かれていない箇所を指摘する作業のサポート等を想定している. |
(英) |
Comments in source code play an important role in code comprehension.
This paper presents a method and its prototype tool that predicts the locations of comments in source code.
This tool has an RNN which inputs a sequence of tokens (holding each comment as a special token) extracted from a given source file with lexical analysis, and outputs predict whether a token appearing a location should be a comment or not.
For a given source file, the RNN is used to predict a comment that appears at each end of sentences.
One of the tool's supposed applications is to support a code review by pointing out where comments are expected to be written but not written. |
キーワード |
(和) |
ソースコード理解 / コードレビュー / 保守 / 静的解析 / / / / |
(英) |
Souce code comprehension / Code review / Maintenance / Static analysis / / / / |
文献情報 |
信学技報, vol. 120, no. 193, SS2020-12, pp. 43-48, 2020年10月. |
資料番号 |
SS2020-12 |
発行日 |
2020-10-12 (SS, DC) |
ISSN |
Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
SS2020-12 DC2020-29 |