# Recommendations for Datasets for Source Code Summarization

**Authors:** Alexander LeClair, Collin McMillan

arXiv: 1904.02660 · 2019-04-05

## TL;DR

This paper discusses the importance of standardized datasets for source code summarization, introduces a large dataset of Java methods with descriptions, and provides recommendations to improve research reproducibility.

## Contribution

It offers guidelines for dataset creation in code summarization and releases a comprehensive dataset of Java methods with descriptions to support future research.

## Key findings

- Performance varies over 33% due to dataset design differences
- The released dataset contains over 2.1 million Java method-description pairs
- Key differences between code and natural language data are highlighted.

## Abstract

Source Code Summarization is the task of writing short, natural language descriptions of source code. The main use for these descriptions is in software documentation e.g. the one-sentence Java method descriptions in JavaDocs. Code summarization is rapidly becoming a popular research problem, but progress is restrained due to a lack of suitable datasets. In addition, a lack of community standards for creating datasets leads to confusing and unreproducible research results -- we observe swings in performance of more than 33% due only to changes in dataset design. In this paper, we make recommendations for these standards from experimental results. We release a dataset based on prior work of over 2.1m pairs of Java methods and one sentence method descriptions from over 28k Java projects. We describe the dataset and point out key differences from natural language data, to guide and support future researchers.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1904.02660/full.md

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/1904.02660/full.md

## References

27 references — full list in the complete paper: https://tomesphere.com/paper/1904.02660/full.md

---
Source: https://tomesphere.com/paper/1904.02660