[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-496411-105":59,"doc-detail-496411-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","supporting-exploratory-code-search-with-differencing-and-visualization-paper","Supporting Exploratory Code Search with Differencing and Visualization - Paper","","Searching and reusing online code is common in software development, yet current tool support overlooks two key properties of online code. Many snippets are largely similar while subtly different, and related snippets can form complex relations through those differences. This paper proposes an exploratory online code search approach that analyzes both commonalities and differences among returned methods using clone detection and code differencing, then visualizes results as an exploration graph. The work is implemented in CodeNuance and evaluated against ranked-list and clustering-based approaches, including performance and user behavior comparisons.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/supporting-exploratory-code-search-with-differencing-and-visualization-paper/496411/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/supporting-exploratory-code-search-with-differencing-and-visualization-paper/496411.png","ImageObject",300,407,{"name":92,"@type":93},"Fahsai","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-09","2026-10-02",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the paper address in online code search?","Question",{"text":112,"@type":113},"It addresses the difficulty of ranking and examining online code when snippets are similar but subtly different, and when code differences imply complex relationships.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the proposed approach analyze search results?",{"text":117,"@type":113},"Given a list of methods returned for a query, it uses clone detection and code differencing to identify both commonalities and differences among the methods.",{"name":119,"@type":110,"acceptedAnswer":120},"What is CodeNuance and how is it evaluated?",{"text":121,"@type":113},"CodeNuance is the web-based tool implementing the approach. The paper evaluates it by comparing search-result examination effectiveness against ranked-list and code-clustering methods, and also compares performance and user behavior.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},496411,1791308980,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},549768702563,"https://ap-avatar.wpscdn.com/avatar/8000c4aa63b76e948b?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786536092046926083","Supporting Exploratory Code Search with Differencing and Visualization  \nWenjian Liu 1,2,3 , Xin Peng 1,2,3 , Zhenchang Xing4 , Junyi Li 1,2,3 , Bing Xie5 and Wenyun Zhao 1,2,3  \n1 School of Computer Science, Fudan University, China  \n2 Shanghai Key Laboratory of Data Science, Fudan University, China  \n3 Shanghai Institute of Intelligent Electronics & Systems, China  \n4Research School of Computer Science, Australian National University, Australia  \n5 School of Electronics Engineering and Computer Science, Peking University, China  \nfwjliu14, pengxin, 16212010012, [wyzhao](wyzhaog@fudan.edu.cn)[g](wyzhaog@fudan.edu.cn)[@fudan.edu.cn](wyzhaog@fudan.edu.cn)  \n[zhenchang.xing@anu.edu.au](zhenchang.xing@anu.edu.au), [xiebing@pku.edu.cn](xiebing@pku.edu.cn)  \nAbstract—Searching and reusing online code has become a common practice in software development. Two important characteristics of online code have not been carefully considered in current tool support. First, many pieces of online code are largely similar but subtly different. Second, several pieces of code may form complex relations through their differences. These two characteristics make it difﬁcult to properly rank online code toa search query and reduce the efﬁciency of examining search results. In this paper, we present an exploratory online code search approach that explicitly takes into account the above two characteristics of online code. Given a list of methods returned for a search query, our approach uses clone detection and code differencing techniques to analyze both commonalities and differences among the methods in the search results. It then produces an exploration graph that visualizes the method differences and the relationships of methods through their differences. The exploration graph allows developers to explore search results in a structured view of different method groups present in the search results, and turns implicit code differences into visual cues to help developers navigate the search results. We implement our approach in a web-based tool called CodeNuance. We conduct experiments to evaluate the effectiveness of our CodeNuance tool for search results examination, compared with ranked-list and code-clustering based search results examination. We also compare the performance and user behavior differences in using our tool and other exploratory code search tools.  \nI. INTRODUCTION  \nToday, the ability to search, understand and use online knowledge affects software developers' efﬁciency and success in work [1], [2] . Among various sources of online knowledge, online code (e.g., open source projects on GitHub [3]) constitutes a core asset for software engineering domain. Searching for online code for reuse has become an integral part of software development [4], [5], [6], [7] . The prevalence of online code, on one hand, increases the chance that the needed code is likely out there, but on the other hand, the two characteristics of online code make it difﬁcult to ﬁnd the needed code. First, many pieces of code are largely similar, but at the same time have subtle differences. Second, several pieces of code may differ in different ways from one another, and thus may form complex relations through their differences.  \nConsider three pieces of code Snippet 3, Snippet 4 and Snippet 5 in Fig. 1. Snippet 3 and Snippet 4 differ as Snippet 4 uses StringBuffer to store strings when converting an input stream to a string, while Snippet 3 uses StringBuilder. Snippet 5 also uses StringBuilder, but it uses try-catch to handle IOException when calling StringBuilder.append(), while Snippet 3 does not. These three pieces of code form a “gradient evolution” relation through their differences. The differences between Snippet 4 and Snippet 5 can be represented as those between Snippet 4 and Snippet 3 (i.e., replace StringBuffer with StringBuilder), and then those between Snippet 3 and Snippet 5 (i.e., add try-catch to handle IOException) .  \nTypically, developers use a","cbCaiovH3oHyLrOo","https://ap.wps.com/l/cbCaiovH3oHyLrOo","pdf",1205945,11,"English","# I. INTRODUCTION\n## Online code reuse and search challenges\n## Similar-but-subtly-different code\n## Unknown-unknown exploration need","[{\"question\":\"What problem does the paper address in online code search?\",\"answer\":\"It addresses the difficulty of ranking and examining online code when snippets are similar but subtly different, and when code differences imply complex relationships.\"},{\"question\":\"How does the proposed approach analyze search results?\",\"answer\":\"Given a list of methods returned for a query, it uses clone detection and code differencing to identify both commonalities and differences among the methods.\"},{\"question\":\"What is CodeNuance and how is it evaluated?\",\"answer\":\"CodeNuance is the web-based tool implementing the approach. The paper evaluates it by comparing search-result examination effectiveness against ranked-list and code-clustering methods, and also compares performance and user behavior.\"}]","Supporting Exploratory Code Search with Differencing and Visualization - Paper | PDF",1790931808,28,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/51c34c636bf14cfdc06a659d334d7deb.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/136f2e1a4bc85d2d3d69a2177dca7ea1.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e447c88616e47dc7621da763a351f16c.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0ceb75642dcc596316c56c59461491cd.webp",980,1268]