2024-03-29T23:58:14Zhttps://ipsj.ixsq.nii.ac.jp/ej/?action=repository_oaipmhoai:ipsj.ixsq.nii.ac.jp:000907272024-03-29T05:26:34Z01164:03368:07104:07105
構造派生機能を有する検索モデルのソースコード検索への応用Applying Derived Structure Retrieval Model to Source Code Retrievaljpnhttp://id.nii.ac.jp/1001/00090710/Technical Reporthttps://ipsj.ixsq.nii.ac.jp/ej/?action=repository_action_common_download&item_id=90727&item_no=1&attribute_id=1&file_no=1Copyright (c) 2013 by the Information Processing Society of Japan東京工芸大学宇田川, 佳久ソースコードの確認作業を効率的に支援するために類似ソースコードの検索機能が必要とされている.本文では,制御文とメソッド名のシーケンスを検索条件とするソースコードの検索手法について論じている.本研究で開発した検索機能の特徴は,与えられた検索条件から有意な検索条件を派生させて検索を行うことである.この検索機能により,与えられた検索条件を完全に満たすソースコードだけでなく,部分的に満たすソースコードをも検索することができる.Struts 2 Coreソースコードを対象とした実験では,ベクトル空間モデルによる検索よりも,本研究で開発した検索機能が16%から94%の効率化を達成している結果を得た.This paper presents an approach to improve source code retrieval using the structure of control statements. We develop a lexical parser that extracts structural information for each method including control statements and method identifiers. We present a source code retrieval model, named derived structure retrieval model, in which a retrieval conditions are defined as a sequence of control statements and/or method identifiers, and meaningful search conditions are derived from the given sequence. Experiments on the source code of Struts 2 Core show that the derived structure retrieval model outperforms the vector space retrieval model and it's variant by 16% to 94% in the number of retrieved methods.AA11253943研究報告情報システムと社会環境(IS)2013-IS-1234182013-03-082013-02-27