Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Intelligent Code Comments Morphing and Generation

  • Conference paper
  • First Online:
Advances in Information and Communication (FICC 2024)

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

Included in the following conference series:

  • 491 Accesses

Abstract

Technologists with various personas such as data scientists, software architects, software engineers, data engineers and research scientists spend hours writing piece of code, using different algorithms and commenting their code snippets or scripts. However, it takes considerable amount of time to comment the code and customize these comments based on the knowledge level of audience. In an ideal world, if everyone belongs to the same persona which means similar background and skill set, having the same set of comments on source code repositories should be perfect. But with the advent of multiple personas in the recent years, there needs to be a mechanism wherein the comments are synthesized and custom tailored dynamically based on the persona viewing the code. The comments should be added at appropriate instances of the code to make it more readable, contextual, meaningful depending on the persona of the reader. In our paper, we propose a novel method to consider persona into account to generate comments for the source code using Natural Language Processing (NLP) and generative AI. The generated comments will takes into account the context and intention while writing the code. It also includes a real time feedback loop which helps enhance the persona understanding and model improvement.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Trim et al.: US11556709B2: text autocomplete using punctuation marks (2020)

    Google Scholar 

  2. Silverstein et al.: US20210264480A1: text processing based interface accelerating (2020)

    Google Scholar 

  3. Baughman et al.: US11481401B2: enhanced cognitive query construction (2020)

    Google Scholar 

  4. Kochura et al.: US11488240B2: dynamic chatbot session based on product image and description discrepancy (2020)

    Google Scholar 

  5. Hu, X., et al.: Deep code comment generation. In: ICPC 2018: Proceedings of the 26th Conference on Program Comprehension (2018)

    Google Scholar 

  6. Matskevich, S., et al.: Generating comments from source code with CCGs. In: NL4SE 2018: Proceedings of 4th ACM SIGSOFT Int. Workshop on NLP for Software Engineering (2018)

    Google Scholar 

  7. Chen, F., et al.: novel natural language summarization of program code via leveraging multiple input representations. Om: EMNLP 2021 (2021)

    Google Scholar 

  8. Liang, Y., et al.: Automatic generation of text descriptive comments for code blocks. In: AAAI 2018(2018)

    Google Scholar 

  9. Zhang et al.: Training deep code comment generation models via data augmentation. In: Internet ware (2020)

    Google Scholar 

  10. Banipal et al.: US20220215047A1: context-based text searching (2021)

    Google Scholar 

  11. Kwatra et al.: US11483262B2: contextually-aware personalized chatbot (2020)

    Google Scholar 

  12. Trim et al.: US20220188525A1: dynamic, real-time collaboration enhancement (2020)

    Google Scholar 

  13. Banipal et al.: US20220358237A1: secure data analytics (2021)

    Google Scholar 

  14. Cannon et al.: US20220164472A1: recommending post modifications to reduce sensitive data exposure (2020)

    Google Scholar 

  15. Banipal et al.: Smart system for multi-cloud pathways. In: IEEE Big Data (2022)

    Google Scholar 

  16. Banipal et al.: US11514507B2: virtual image prediction and generation (2020)

    Google Scholar 

  17. Banipal, I.S., Freed, A., Kwatra, S.: US11185780B2: artificial intelligence profiling (2017)

    Google Scholar 

  18. Banipal et al.: US20220309379A1: automatic identification of improved machine learning models (2021)

    Google Scholar 

  19. Banipal, I.S., Freed, A.: US20210042290A1: annotation assessment and adjudication (2019)

    Google Scholar 

  20. Banipal, I.S., Freed, A.: US11188517B2: annotation assessment and ground truth construction (2019)

    Google Scholar 

  21. Silverstein et al.: US11055119B1: feedback responsive Interface (2020)

    Google Scholar 

  22. Wang, X., et al.: KDGAN: knowledge distillation with generative adversarial networks (2018)

    Google Scholar 

  23. Iovine, A., et al.: CycleNER: an unsupervised training approach for named entity recognition. In: WWW 2022 (2022)

    Google Scholar 

  24. SystemML, IBM Research

    Google Scholar 

  25. Asthana et al.: Joint time-series learning framework for maximizing purchase order renewals (2021)

    Google Scholar 

  26. Trim, C., et al.: US20220012018A1: software programming assistant (2020)

    Google Scholar 

  27. Kwatra et al.: US11556335B1: annotating program code (2021)

    Google Scholar 

  28. Kwatra et al.: US11552966B2: generating and mutually maturing a knowledge corpus (2020)

    Google Scholar 

  29. Kwatra et al.: US11445042B2: correlating multiple media sources for personalized media content (2020)

    Google Scholar 

  30. Banipal et al.: Relational social media search engine. In: UT Dallas (2016)

    Google Scholar 

  31. Banipal et al.: US11188968B2: component based review system (2020)

    Google Scholar 

  32. Bravo, R., et al.: US10921887B2: cognitive state aware accelerated activity completion and amelioration (2019)

    Google Scholar 

  33. Gan, S.C., et al.: US11556385B2: cognitive processing resource allocation (2020)

    Google Scholar 

  34. Banipal et al.: US20220335302A1: cognitive recommendation of computing environment attributes (2021)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Indervir Singh Banipal .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 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

Banipal, I.S., Asthana, S., Mazumder, S., Kochura, N. (2024). Intelligent Code Comments Morphing and Generation. In: Arai, K. (eds) Advances in Information and Communication. FICC 2024. Lecture Notes in Networks and Systems, vol 920. Springer, Cham. https://doi.org/10.1007/978-3-031-53963-3_46

Download citation

Publish with us

Policies and ethics