講演名 2014-03-12
コードクローンを用いたコード補完手法の提案
石原 知也, 肥後 芳樹, 楠本 真二,
PDFダウンロードページ PDFダウンロードページへ
抄録(和) ソースコードの実装を効率化する手段の1つにコード補完がある.コード補完は開発者が途中まで実装したコードの不足部分を補完する機能であり,近年ではソースコードの再利用支援を目的としたコード補完手法も提案されている.しかし,既存のコード補完手法は途中まで実装されたソースコードの後に続く部分のみを補完するにとどまり,開発者が実装途中に書き漏らしたコードを補完することはできない.本研究では,書き漏らしたコードの発生状況を調べ,書き漏らしコードの補完が有効であるかを調査する.また,書き漏らしコードの補完も実現するために,コードクローンを用いたコード補完手法を提案して調査に用いる.提案する手法は途中まで実装されたソースコードのType-3コードクローンを見つけることで,そのソースコードの後に続く部分だけでなく書き漏らしたコードを特定し補完することが可能になる.本論文では,被験者実験を行いコードの書き漏らしについて調査を行った.調査の結果,多くの被験者の実装において書き漏らしが発生しており,書き漏らしコードの補完は有益であることが確認された.
抄録(英) Code completion is one of the techniques that raise efficiency of implementation. Code completion techniques make up for code lacking in half-written code. Recently, some researchers have proposed techniques using code completion for helping code reuse. However, existing code completion techniques, which complete only code following the half-written code, cannot complete code in the middle of the half-written code. In this research, we investigate the situation where developers forget to write some code and examine whether it is useful to complete the middle code. Also, we propose a new code completion technique with code clone detection techniques in order to complete the middle code. The proposed technique can complete both the middle code and following code by detecting Type-3 code clones of the half-written method. In this research, we have conducted an experiment with subjects to investigate the code that subjects forgot to write. As a result, we have confirmed that most of the subjects forgot to write some code in their given tasks and that it was useful to complete the middle code.
キーワード(和) コードクローン / コード補完 / ソースコード再利用
キーワード(英) Code Clone / Code Completion / Source Code Reuse
資料番号 SS2013-87
発行日

研究会情報
研究会 SS
開催期間 2014/3/4(から1日開催)
開催地(和)
開催地(英)
テーマ(和)
テーマ(英)
委員長氏名(和)
委員長氏名(英)
副委員長氏名(和)
副委員長氏名(英)
幹事氏名(和)
幹事氏名(英)
幹事補佐氏名(和)
幹事補佐氏名(英)

講演論文情報詳細
申込み研究会 Software Science (SS)
本文の言語 JPN
タイトル(和) コードクローンを用いたコード補完手法の提案
サブタイトル(和)
タイトル(英) Code Completion with Code Clones
サブタイトル(和)
キーワード(1)(和/英) コードクローン / Code Clone
キーワード(2)(和/英) コード補完 / Code Completion
キーワード(3)(和/英) ソースコード再利用 / Source Code Reuse
第 1 著者 氏名(和/英) 石原 知也 / Tomoya ISHIHARA
第 1 著者 所属(和/英) 大阪大学大学院情報科学研究科
Graduate School of Information Science and Technology, Osaka University
第 2 著者 氏名(和/英) 肥後 芳樹 / Yoshiki HIGO
第 2 著者 所属(和/英) 大阪大学大学院情報科学研究科
Graduate School of Information Science and Technology, Osaka University
第 3 著者 氏名(和/英) 楠本 真二 / Shinji KUSUMOTO
第 3 著者 所属(和/英) 大阪大学大学院情報科学研究科
Graduate School of Information Science and Technology, Osaka University
発表年月日 2014-03-12
資料番号 SS2013-87
巻番号(vol) vol.113
号番号(no) 489
ページ範囲 pp.-
ページ数 6
発行日