Abstract
For finding desired source codes and articles using existing source code search engines, it is necessary to compare them in the different results to examine which source codes are the best practice for developing the target software. In this paper, we propose a method of source code recommendation based on the prediction of code function. The feature of the proposed method is that by interpreting the context of the processing procedure of the source code, it recommends source code which complements or follow the processing procedures. In the experiment using actual source codes, we evaluate the feasibility of the proposed method.
Similar content being viewed by others
References
Kawamura, Y., Asami, C.-C.K.K.: The production of the automatic source code generation tool from UML. In: Proceedings of the 71th Information Processing Society of Japan Annual Convention, pp. 337–338 (2010)
Shigeta, T., Takano, K.: A source code recommendation system based on programming logic. In: Proceedings of the 81th Information Processing Society of Japan Annual Convention, vol. 2019, no. 1, pp. 305–306 (2019)
Uchiyama, T., Niimi, A.: Retrieving code fragments using Word2Vec considering the lnfuence of nearby words peculiar to source code. In: Proceedings of 2017 Software Engineering Symposium (SES2017), pp. 146–154. Information Processing Society of Japan (2017)
Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997)
Devlin, J., Chang, M.-W., Lee, K., Toutanova, K.: BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv:1810.04805 (2018)
Yamamoto, T.: A code completion of method invocation statement using source code corpus including a consideration of contol flow. J. Inf. Process. 56(2), 682–691 (2015)
Yamamoto, T.: An API suggestion using recurrent neural networks. J. Inf. Process. 58(4), 769–779 (2017)
Alon, U., Zilberstein, M., Levy O., Yahav, E.: code2vec: Learning Distributed Representations of Code, arXiv:1803.09473 (2018)
Darwin, I.F.: The Java Cookbook Third Edition. O’Reilly Media, Sebastopol (2014)
Acknowledgments
This work was supported by JSPS KAKENHI Grant Number 17K00498.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Saito, E., Takano, K. (2022). Source Code Recommendation with Sequence Learning of Code Functions. In: Barolli, L., Hussain, F., Enokido, T. (eds) Advanced Information Networking and Applications. AINA 2022. Lecture Notes in Networks and Systems, vol 451. Springer, Cham. https://doi.org/10.1007/978-3-030-99619-2_30
Download citation
DOI: https://doi.org/10.1007/978-3-030-99619-2_30
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-99618-5
Online ISBN: 978-3-030-99619-2
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)