Proceedings

Graph-Augmented Code Summarization in Computational Notebooks

Download BibTeX Cite

Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence. Demo Track. Pages 5020-5023.

https://doi.org/10.24963/ijcai.2021/717

Abstract

Computational notebooks allow data scientists to express their ideas through a combination of code and documentation. However, data scientists often pay attention only to the code and neglect the creation of the documentation in a notebook. In this work, we present a human-centered automation system, Themisto, that can support users to easily create documentation via three approaches: 1) We have developed and reported a GNN-augmented code documentation generation algorithm in a previous paper, which can generate documentation for a given source code; 2) Themisto also implements a query-based approach to retrieve the online API documentation as the summary for certain types of source code; 3) Lastly, Themistoalso enables a user prompt approach to motivate users to write documentation for some use cases that automation does not work well.

  1. [Alon et al., 2018] Uri Alon, Shaked Brody, Omer Levy, and Eran Yahav. code2seq: Generating sequences from structured representations of code. arXiv preprint arXiv:1808.01400, 2018.
  2. [Cho et al., 2014] Kyunghyun Cho, Bart van Merriënboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Y. Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. 06 2014.
  3. [Kery and Myers, 2017] Mary Beth Kery and Brad A. My- ers. Exploring exploratory programming. In 2017 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC), pages 25-29, 2017.
  4. [Kingma and Ba, 2014] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. Interna- tional Conference on Learning Representations, 12 2014.
  5. [LeClair and McMillan, 2019] Alexander LeClair and Collin McMillan. Recommendations for datasets for source code summarization. arXiv preprint arXiv:1904.02660, 2019.
  6. [LeClair et al., 2020] Alexander LeClair, Sakib Haque, Lin- fgei Wu, and Collin McMillan. Improved code sum- marization via a graph neural network. arXiv preprint arXiv:2004.02843, 2020.
  7. [Lin, 2004] Chin-Yew Lin. ROUGE: A package for auto- matic evaluation of summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain, July 2004. Association for Computational Linguistics.
  8. [Liu et al., 2021] Xuye Liu, Dakuo Wang, April Wang, and Lingfei Wu. Haconvgnn: Hierarchical attention based convolutional graph neural network for code documen- tation generation in jupyter notebooks. arXiv preprint arXiv:2104.01002, 2021.
  9. [Rule et al., 2018] Adam Rule, Aurélien Tabard, and James D Hollan. Exploration and explanation in com- putational notebooks. In Proceedings of the 2018 CHI Conference on Human Factors in Computing Systems, pages 1-12, 2018.
  10. [Wang et al., 2021a] April Yi Wang, Dakuo Wang, Jaimie Drozdal, Xuye Liu, Soya Park, Steve Oney, and Christo- pher Brooks. What makes a well-documented notebook? a case study of data scientists' documentation practices in kaggle. In Extended Abstracts of the 2021 CHI Confer- ence on Human Factors in Computing Systems, pages 1-7, 2021.
  11. [Wang et al., 2021b] Dakuo Wang, Pattie Maes, Xiangshi Ren, Ben Shneiderman, Yuanchun Shi, and Qianying Wang. Designing ai to work with or for people? In Ex- tended Abstracts of the 2021 CHI Conference on Human Factors in Computing Systems, pages 1-5, 2021.
  12. [Xu et al., 2018] Kun Xu, Lingfei Wu, Zhiguo Wang, Yan- song Feng, Michael Witbrock, and Vadim Sheinin. Graph2seq: Graph to sequence learning with attention- based neural networks. arXiv preprint arXiv:1804.00823, 2018.
  13. [Zhang et al., 2020] Amy X Zhang, Michael Muller, and Dakuo Wang. How do data science workers collab- orate? roles, workflows, and tools. arXiv preprint arXiv:2001.06684, 2020.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards