Decomposing God Header File via Multi-View Graph Clustering
Yue Wang, Wenhui Chang, Tongwei Deng, Yanzhen Zou, Bing Xie

TL;DR
This paper introduces a multi-view graph clustering method to decompose God Header Files, improving code modularity and reducing recompilation time by addressing dependency issues and cyclic dependencies.
Contribution
It proposes a novel multi-view graph clustering approach specifically designed for God Header Files, considering build dependencies and acyclic constraints, which is not addressed by existing methods.
Findings
Achieved 11.5% higher accuracy than existing refactoring methods.
Improved modularity and acyclic dependencies in decompositions.
Reduced recompilation time by 15% to 60% for historical commits.
Abstract
God Header Files, just like God Classes, pose significant challenges for code comprehension and maintenance. Additionally, they increase the time required for code recompilation. However, existing refactoring methods for God Classes are inappropriate to deal with God Header Files because the code elements in header files are mostly short declaration types, and build dependencies of the entire system should be considered with the aim of improving compilation efficiency. Meanwhile, ensuring acyclic dependencies among the decomposed sub-header files is also crucial in the God Header File decomposition. This paper proposes a multi-view graph clustering based approach for decomposing God Header Files. It first constructs and coarsens the code element graph, then a novel multi-view graph clustering algorithm is applied to identify the clusters and a heuristic algorithm is introduced to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Semantic Web and Ontologies · Text and Document Classification Technologies
