• DocumentCode
    176120
  • Title

    CSCC: Simple, Efficient, Context Sensitive Code Completion

  • Author

    Asaduzzaman, Muhammad ; Roy, Chanchal K. ; Schneider, Kevin A. ; Daqing Hou

  • Author_Institution
    Dept. of Comput. Sci., Univ. of Saskatchewan, Saskatoon, SK, Canada
  • fYear
    2014
  • fDate
    Sept. 29 2014-Oct. 3 2014
  • Firstpage
    71
  • Lastpage
    80
  • Abstract
    Code Completion helps developers learn APIs and frees them from remembering every detail. In this paper, we describe a novel technique called CSCC (Context Sensitive Code Completion) for improving the performance of API method call completion. CSCC is context sensitive in that it uses new sources of information as the context of a target method call. CSCC indexes method calls in code examples by their contexts. To recommend completion proposals, CSCC ranks candidate methods by the similarities between their contexts and the context of the target call. Evaluation using a set of subject systems and five popular state of-the-art techniques suggests that CSCC performs better than existing type or example-based code completion systems. We also investigate how the different contextual elements of the target call benefit CSCC.
  • Keywords
    application program interfaces; software engineering; API method call completion; CSCC indexes method; context sensitive code completion; example-based code completion systems; type-based code completion systems; Context; FCC; Hamming distance; Indexes; Libraries; Proposals; Receivers; code completion; code example; recommendation; simhash;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Maintenance and Evolution (ICSME), 2014 IEEE International Conference on
  • Conference_Location
    Victoria, BC
  • ISSN
    1063-6773
  • Type

    conf

  • DOI
    10.1109/ICSME.2014.29
  • Filename
    6976073