2018 · 15 citations · 12 references
ComputingComputer ScienceComputational LinguisticsNatural Language ProcessingText AnalyticsDocument RepresentationSoftware DocumentationText Similarity AnalysisComment QualityDocument Similarity AssessmentDocument Similarity MetricsOpen-source Software DevelopmentProgram ComprehensionSource Code Change AnalysisSource Code EvolutionVector Similarity Measures
Comments in a source program can be helpful artifacts for program comprehension. While many comments are useful documents embedded in source programs, there are also poorly-informative comments in the real world. In order to quantitatively assess the value of comments, this paper proposes applying the Doc2Vec model to comment evaluation. Doc2Vec is a useful model for vectorizing the content of a document. In this paper, a Java method is regarded as a document, and its content is expressed as a vector. Then, two vectors corresponding to different versions of a method are prepared-the original version and the comment-erased version-, and the vector similarity between these two versions are computed. If the erased comments provided richer information for the source code, the corresponding vector would have a larger change through the comment elimination. A method having poorly-informative comments may be low-quality and might require more code modifications. This paper analyzes the relationship between the value of comments in a method and the change-proneness, using the data collected from five popular open source software projects. The results show that a method having poorly-informative comments is likely to be change-prone, i.e., such a method could not survive unscathed after release.
12
Efficient Estimation of Word Representations in Vector Space
Tomáš Mikolov, Kai Chen, Greg S. Corrado et al. · arXiv (Cornell University) · 2013 · 11.7K citations · Full text
Clean Code: A Handbook of Agile Software Craftsmanship
Kybernetes · 2009 · 498 citations
Lin Tan, Ding Yuan, Gopal Krishna et al. · 2007 · 268 citations