首页>
外国专利>
QUERY-BY-EXAMPLE IN LARGE-SCALE CODE REPOSITORIES
QUERY-BY-EXAMPLE IN LARGE-SCALE CODE REPOSITORIES
展开▼
机译:大型代码存储库中的按示例查询
展开▼
页面导航
摘要
著录项
相似文献
摘要
Systems and methods for performing query-by-example are described. A query module executing on the system may maintain a source code repository containing a plurality of source code files. Each of the plurality of source code files is associated with a corresponding source syntax structure generated based on said each of the plurality of source code files. The query module may receive a query snippet, and generate a query syntax structure based on the query snippet. The query module may then identify a first source code file from the plurality of source code files for being relevant to the query snippet. The being relevant to the query snippet is determined by a first relevance score which is calculated based on the query syntax structure and the first source code file's corresponding source syntax structure.
展开▼