Nothing Special   »   [go: up one dir, main page]

Skip to main content

Source Code Recommendation with Sequence Learning of Code Functions

  • Conference paper
  • First Online:
Advanced Information Networking and Applications (AINA 2022)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 451))

  • 1159 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Similar content being viewed by others

References

  1. 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)

    Google Scholar 

  2. 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)

    Google Scholar 

  3. 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)

    Google Scholar 

  4. Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997)

    Article  Google Scholar 

  5. Devlin, J., Chang, M.-W., Lee, K., Toutanova, K.: BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv:1810.04805 (2018)

  6. 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)

    Google Scholar 

  7. Yamamoto, T.: An API suggestion using recurrent neural networks. J. Inf. Process. 58(4), 769–779 (2017)

    Google Scholar 

  8. Alon, U., Zilberstein, M., Levy O., Yahav, E.: code2vec: Learning Distributed Representations of Code, arXiv:1803.09473 (2018)

  9. Darwin, I.F.: The Java Cookbook Third Edition. O’Reilly Media, Sebastopol (2014)

    Google Scholar 

Download references

Acknowledgments

This work was supported by JSPS KAKENHI Grant Number 17K00498.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kosuke Takano .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics