Automatic Code Documentation Generation Using GPT-3

09/06/2022
by   Junaed Younus Khan, et al.
0

Source code documentation is an important artifact for efficient software development. Code documentation could greatly benefit from automation since manual documentation is often labouring, resource and time-intensive. In this paper, we employed Codex for automatic code documentation creation. Codex is a GPT-3 based model pre-trained on both natural and programming languages. We find that Codex outperforms existing techniques even with basic settings like one-shot learning (i.e., providing only one example for training). Codex achieves an overall BLEU score of 20.6 for six different programming languages (11.2 promise and warrants in-depth future studies for automatic code documentation generation to support diverse development tasks.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/25/2023

Combining Contexts from Multiple Sources for Documentation-Specific Code Example Generation

Code example is a crucial part of good documentation. It helps the devel...
research
05/02/2023

Automated Code generation for Information Technology Tasks in YAML through Large Language Models

The recent improvement in code generation capabilities due to the use of...
research
03/16/2023

Knowledge Transfer for Pseudo-code Generation from Low Resource Programming Language

Generation of pseudo-code descriptions of legacy source code for softwar...
research
07/31/2017

The Code2Text Challenge: Text Generation in Source Code Libraries

We propose a new shared task for tactical data-to-text generation in the...
research
08/03/2020

GPP, the Generic Preprocessor

In computer science, a preprocessor (or macro processor) is a tool that ...
research
07/15/2021

Duplicated Code Pattern Mining in Visual Programming Languages

Visual Programming Languages (VPLs), coupled with the high-level abstrac...
research
05/25/2021

Project CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Tasks

Advancements in deep learning and machine learning algorithms have enabl...

Please sign up or login with your details

Forgot password? Click here to reset