Using structural context to recommend source code examples

被引:0
|
作者
Holmes, R [1 ]
Murphy, GC [1 ]
机构
[1] Univ British Columbia, Dept Comp Sci, Vancouver, BC V6T 1Z4, Canada
关键词
recommender; examples; software structure; development environment framework;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
When coding to a framework, developers often become stuck, unsure of which class to subclass, which objects to instantiate and which methods to call. Example code that demonstrates the use of the framework can help developers make progress on their task. In this paper, we describe an approach for locating relevant code in an example repository that is based on heuristically matching the structure of the code under development to the example code. Our tool improves on existing approaches in two ways. First, the structural context needed to query the repository is extracted automatically from the code, freeing the developer from learning a query language or from writing their code in a particular style. Second, the repository can be generated easily from existing applications. We demonstrate the utility of this approach by reporting on a case study involving two subjects completing four programming tasks within the Eclipse integrated development environment framework.
引用
收藏
页码:117 / 125
页数:9
相关论文
共 50 条
  • [21] Structurally Heterogeneous Source Code Examples from Unstructured Knowledge Sources
    Vinayakarao, Venkatesh
    Purandare, Rahul
    Nori, Aditya V.
    PROCEEDINGS OF THE 2015 ACM SIGPLAN WORKSHOP ON PARTIAL EVALUATION AND PROGRAM MANIPULATION (PEPM'15), 2015, : 21 - 26
  • [22] Adding Context to Source Code Representations for Deep Learning
    Tian, Fuwei
    Treude, Christoph
    2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2022), 2022, : 374 - 378
  • [23] Scalable Source Code Plagiarism Detection Using Source Code Vectors Clustering
    Duracik, Michal
    Krsak, Emil
    Hrkut, Patrik
    PROCEEDINGS OF 2018 IEEE 9TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS), 2018, : 499 - 502
  • [24] Source code enhancement using reduction of duplicated code
    Nasehi, Seyyed Mehdi
    Sotudeh, Gholam Reza
    Gomrokchi, Maziar
    PROCEEDINGS OF THE IASTED INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 2007, : 192 - +
  • [25] Automatically Recommend Code Updates: Are We There Yet?
    Liu, Yue
    Tantithamthavorn, Chakkrit
    Liu, Yonghui
    Thongtanunam, Patanamon
    Li, Li
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (08)
  • [26] Semi-automatic generation of parallelizable patterns from source code examples
    Markovic, D
    Hagemeister, JR
    Raghavendra, CS
    Bhansali, S
    FIFTH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION - IWPC '97, PROCEEDINGS, 1997, : 50 - 59
  • [27] Semi-automatic generation of parallelizable patterns from source code examples
    Markovic, Dejan
    Hagemeister, Jack R.
    Raghavendra, Cauligi S.
    Bhansali, Sanjay
    Program Comprehension, Workshop Proceedings, 1997, : 50 - 59
  • [28] Source Code Plagiarism Detection in an Educational Context: A Literature Mapping
    Aniceto, Rodrigo C.
    Holanda, Maristela
    Castanho, Carla
    Da Silva, Dilma
    2021 IEEE FRONTIERS IN EDUCATION CONFERENCE (FIE 2021), 2021,
  • [29] Source Code Plagiarism Detection in an Educational Context: A Literature Mapping
    Aniceto, Rodrigo C
    Holanda, Maristela
    Castanho, Carla
    Da Silva, Dilma
    Proceedings - Frontiers in Education Conference, FIE, 2021, 2021-October
  • [30] Automatic Source Code Summarization of Context for Java']Java Methods
    McBurney, Paul W.
    McMillan, Collin
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2016, 42 (02) : 103 - 119