Open-source JavaWeb Applications (JWAs) have become increasingly prevalent, supporting a wide range of daily-life needs. Providing comprehensive setup instructions in ReadMe files is essential for enabling newcomers to effectively engage with these projects. However, some developers overlook this aspect, posing significant challenges for newcomers when setting up JWAs. Further, existing research in this area remains relatively underexplored due to the complex structure of JavaWeb applications. As a result, ensuring clear and concise setup steps in ReadMe files is crucial for facilitating newcomer participation in maintaining open-source JWAs. To address this challenge, we present PAL4JavaWeb, a novel method that automatically generates setup instructions for JWA projects by analyzing source files. Unlike traditional manual approaches, PAL4JavaWeb leverages a large language model (LLM) to produce comprehensive and actionable setup steps. Specifically, we employ static program analysis to extract relevant information and reduce complexity, and then utilize segmented outputs to guide the LLM in recognizing key configuration steps and generating setup instructions. Experimental results on 35 real-world JWAs demonstrate the effectiveness of PAL4JavaWeb, achieving a success rate of 91.43%, outperforming the baseline by 48.57%. Furthermore, we submitted the generated setup instructions as pull requests to 13 open-source JWAs on GitHub, of which 10 were merged, highlighting the practical utility of PAL4JavaWeb in simplifying newcomer onboarding.
扫码关注我们
求助内容:
应助结果提醒方式:
