• DocumentCode
    650703
  • Title

    LHDiff: A Language-Independent Hybrid Approach for Tracking Source Code Lines

  • Author

    Asaduzzaman, Muhammad ; Roy, Chanchal K. ; Schneider, Kevin A. ; Di Penta, Massimiliano

  • Author_Institution
    Dept. of Comput. Sci., Univ. of Saskatchewan, Saskatoon, SK, Canada
  • fYear
    2013
  • fDate
    22-28 Sept. 2013
  • Firstpage
    230
  • Lastpage
    239
  • Abstract
    Tracking source code lines between two different versions of a file is a fundamental step for solving a number of important problems in software maintenance such as locating bug introducing changes, tracking code fragments or defects across versions, merging file versions, and software evolution analysis. Although a number of such approaches are available in the literature, their performance is sensitive to the kind and degree of source code changes. There is also a marked lack of study on the effect of change types on source location tracking techniques. In this paper, we propose a language-independent technique, LHDiff, for tracking source code lines across versions that leverages simhash technique together with heuristics to improve accuracy. We evaluate our approach against state-of-the- art techniques using benchmarks containing different degrees of changes where files are selected from real world applications. We further evaluate LHDiff with other techniques using a mutation based analysis to understand how different types of changes affect their performance. The results reveal that our technique is more effective than language-independent approaches and no worse than some language-dependent techniques. In our study LHDiff even shows better performance than a state-of-the-art language- dependent approach. In addition, we also discuss limitations of different line tracking techniques including ours and propose future research directions.
  • Keywords
    merging; software maintenance; source coding; LHDiff; file merging; language-independent hybrid approach; software evolution analysis; software maintenance; source code lines tracking; Accuracy; Benchmark testing; Cloning; Context; Position measurement; Software; Syntactics; diff; levenshtein; lightweight; line tracking;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Maintenance (ICSM), 2013 29th IEEE International Conference on
  • Conference_Location
    Eindhoven
  • ISSN
    1063-6773
  • Type

    conf

  • DOI
    10.1109/ICSM.2013.34
  • Filename
    6676894