Joint Embedding of Semantic and Statistical Features for Effective Code Search

Author:

Kong XianglongORCID,Kong Supeng,Yu Ming,Du Chengjie

Abstract

Code search is an important approach to improve effectiveness and efficiency of software development. The current studies commonly search target code based on either semantic or statistical information in large datasets. Semantic and statistical information have hidden relationships between them since they describe code snippets from different perspectives. In this work, we propose a joint embedding model of semantic and statistical features to improve the effectiveness of code annotation. Then, we implement a code search engine, i.e., JessCS, based on the joint embedding model. We evaluate JessCS on more than 1 million lines of code snippets and corresponding descriptions. The experimental results show that JessCS performs more effective than UNIF-based approach, with at least 13% improvements on the studied metrics.

Publisher

MDPI AG

Subject

Fluid Flow and Transfer Processes,Computer Science Applications,Process Chemistry and Technology,General Engineering,Instrumentation,General Materials Science

Reference42 articles.

1. A study of the uniqueness of source code;Gabel;Proceedings of the 18th ACM SIGSOFT International Symposium on Foundations of Software Engineering,2010

2. Adam: A Method for Stochastic Optimization;Kingma;Proceedings of the 3rd International Conference on Learning Representations,2015

3. Incorporating Code Structure and Quality in Deep Code Search

4. Deep code search;Gu;Proceedings of the 40th International Conference on Software Engineering. ACM,2018

5. Cross-language code search using static and dynamic analyses;Mathew;Proceedings of the 29th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering,2021

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3