Papers › Recommendations for Datasets for Source Code Summarization

Recommendations for Datasets for Source Code Summarization

4 Apr 2019NAACL 2019 6arXiv:1904.02660archive 2025-07-28

Alexander LeClair, Collin McMillan

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.

PaperPDFConference PDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

ICSEG/M2TS mentioned on GitHubpytorch report
YUEXIUG/M2TS mentioned on GitHubpytorch report
apcl-research/funcom-useloss mentioned on GitHubtf report
apcl-research/jam mentioned on GitHubpytorch report
lucy66666/okt mentioned on GitHubpytorch report
transms/m2ts mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Code SummarizationSentenceSource Code Summarization

Datasets

Introduced by this paper, per the archive.

Funcom

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections