• Home
  • Search
  • Source code retrieval on StackOverflow using LDA
  • Cite Icon20
  • https://doi.org/10.1109/icoict.2015.7231439Copy DOI Icon

Source code retrieval on StackOverflow using LDA

  • May 1, 2015
  • Achmad Arwan +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Internet code search is quite popular research area. StackOverflow allows developers to ask and answer questions about code. Previous approach to search code on StackOverflow uses tf-idf method that based on number of occurrences of words to recommend source code. This method has the disadvantage that variable or method identifiers are considered as normal words, even though identifiers are often a combination of two or more words. For example, there is an identifier named “randomString”. In that case, if we search using a keyword “random” the system probably will not recommend “randomString” because both words are different. Concept location can tackle this problem. Concept location has been used widely to obtain the correlation between code with a specific concepts or features. Previous research of concept location only focused on source code's comments, and relation among the objects within the source code. This research proposes a mechanism for finding code on StackOverflow uses Latent Dirichlet Allocation (LDA) using concept location in the preprocessing stage. Questions, answers, and code snippets about Java programming are downloaded from StackOverflow to a local repository. Corpuses are generated by extracting questions, answers and code snippets. Inferencing concept location from source code is created using LDA algorithm. Developers query concepts and then system will recommend source code based on the relevant concepts. The result of the experiment shows that the system is able to recommend source code with 48% average of precision and 58% average of recall.

Similar Papers
  • Conference Article
  • Citations83

9.6 Million Links in Source Code Comments: Purpose, Evolution, and Decay

  • May 01, 2019
  • Hideaki Hata +3
  • Research Article
  • Citations148

Neural Network-based Detection of Self-Admitted Technical Debt

  • Jul 29, 2019
  • ACM Transactions on Software Engineering and Methodology
  • Xiaoxue Ren +5
  • Research Article
  • Citations7

Exploring Latent Dirichlet Allocation (LDA) in Topic Modeling: Theory, Applications, and Future Directions

  • Mar 11, 2024
  • NEWPORT INTERNATIONAL JOURNAL OF ENGINEERING AND PHYSICAL SCIENCES
  • Ugorji C Calistus +3
  • Conference Article
  • Citations10

Augmented Latent Dirichlet Allocation (Lda) Topic Model with Gaussian Mixture Topics

  • Apr 01, 2018
  • Kedar S Prabhudesai +3
  • Conference Article
  • Citations621

Deep code search

  • May 27, 2018
  • Xiaodong Gu +2
  • Research Article
  • Citations94

Analyzing the co-evolution of comments and source code

  • Mar 26, 2009
  • Software Quality Journal
  • Beat Fluri +3
  • Research Article
  • Citations86

Deep Graph Matching and Searching for Semantic Code Retrieval

  • May 10, 2021
  • ACM Transactions on Knowledge Discovery from Data
  • Xiang Ling +8
  • Conference Article
  • Citations1

ASKDetector: An AST-Semantic and Key Features Fusion based Code Comment Mismatch Detector

  • Apr 15, 2024
  • Haiyang Yang +4
  • Research Article

Hybrid Attention Approach for Source Code Comment Generation

  • Jul 14, 2025
  • Information Technology and Control
  • Yao Meng
  • Conference Article
  • Citations81

Using recurrent neural networks for decompilation

  • Mar 01, 2018
  • Deborah S Katz +2
  • Research Article
  • Citations56

FineLocator: A novel approach to method-level fine-grained bug localization by query expansion

  • Mar 02, 2019
  • Information and Software Technology
  • Wen Zhang +3
  • Conference Article
  • Citations22

A Survey on Research of Code Comment

  • Jan 12, 2019
  • Bai Yang +2
  • Book Chapter

Comparative study of official manufacturers, automotive journalists, and Indonesian citizens preferences in choosing 150cc sports motorcycle products using topic modeling with LDA Algorithm (Study of Honda CBR150R and Yamaha All New R15 V3)

  • Oct 20, 2022
  • T Guruminda +2
  • Research Article
  • Citations1

Machine learning-based text mining for cutaneous myiasis and potential value of an accidental maggot therapy for complicated skin and soft tissue infection with sepsis.

  • May 06, 2025
  • Frontiers in cellular and infection microbiology
  • Zhiyuan Zhou +7
  • Research Article

Trends in Artificial Intelligence Research on Education: Topic Modeling Using Latent Dirichlet Allocation

  • May 16, 2025
  • Bulletin of Kharkov National Automobile and Highway University
  • Nataliia Fil +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.