Supporting Software Maintenance with Dynamically Generated Document Hierarchies
<|reference_start|>Supporting Software Maintenance with Dynamically Generated Document Hierarchies: Software documentation supports a broad set of software maintenance tasks; however, creating and maintaining high-quality, multi-level software documentation can be incredibly time-consuming and therefore many code bases suffer from a lack of adequate documentation. We address this problem through presenting HGEN, a fully automated pipeline that leverages LLMs to transform source code through a series of six stages into a well-organized hierarchy of formatted documents. We evaluate HGEN both quantitatively and qualitatively. First, we use it to generate documentation for three diverse projects, and engage key developers in comparing the quality of the generated documentation against their own previously produced manually-crafted documentation. We then pilot HGEN in nine different industrial projects using diverse datasets provided by each project. We collect feedback from project stakeholders, and analyze it using an inductive approach to identify recurring themes. Results show that HGEN produces artifact hierarchies similar in quality to manually constructed documentation, with much higher coverage of the core concepts than the baseline approach. Stakeholder feedback highlights HGEN's commercial impact potential as a tool for accelerating code comprehension and maintenance tasks. Results and associated supplemental materials can be found at https://zenodo.org/records/11403244<|reference_end|>
@article{dearstyne2024supporting,
    title={Supporting Software Maintenance with Dynamically Generated Document
  Hierarchies},
    author={Katherine R. Dearstyne, Alberto D. Rodriguez, Jane Cleland-Huang},
    journal={arXiv preprint arXiv:2408.05829},
    year={2024},
    archivePrefix={arXiv},
    eprint={2408.05829},
    primaryClass={cs.SE}
}