PAL4JavaWeb is a lightweight approach that utilises static program analysis and prompt engineering to leverage LLM’s (Large Language Models) knowledge for generating setup steps. This project is implemented in Java language and is intended to be run in IntelliJ IDEA.
- Clone this project and the project you want to generate setup steps for.
- Locate PAL4JavaWeb\src\main\java\chatGpt.java, which serves as the main file for generating the setup steps.
- Modify the projname in the step2 file to the address of your target project on your PC.
- Change the Apikey of chatGpt to yours.
- Modify the arguments in the
writeToText()
function to the location you desire. - The result will be automatically generated at the address specified in step 5.
- Run the
chatGpt.java
.
Repository: java-all-call-graph
- Package the project into a .war or .jar file.
- Locate the _jacg_config/config.properties file.
- Modify the
app.name
to your preference. - Find the _jacg_config/jar_dir.properties file.
- Specify the location of the war/jar file.
- Find the _jacg_config/config_db.properties file.
- Adjust the database configuration (url, username, password).
- Find the _jacg_config/method_class_4caller file.
- Specify the class name you wish to analyse.
- Run
TestRunnerWriteDb.java
andTestRunnerGenAllGraph4Caller.java
. The result will be automatically generated in the "_jacg-[time]" directory.
- Locate the PAL4JavaWeb\src\main\java\KeywordExtract.java file.
- Modify the
directoryPath
to the directory of your baseline projects. - Modify the arguments in the
writeToText()
function to the desired location. - The result will be automatically generated at the address specified in step 3.
- Locate the PAL4JavaWeb\src\main\java\RQ2Baseline1.java file.
- Modify the
directoryPath
to the directory of your baseline projects. - Modify the arguments in the
writeToText()
function to the desired location. - The result will be automatically generated at the address specified in step 3.
macrozheng/mall
lenve/vhr
elunez/eladmin
201206030/novel
stylefeng/Guns
ZHENFENG13/My-Blog
kanwangzjm/funiture
JaceyRx/Examination_System
withstars/Books-Management-System
guqing/qinlouyue
support-project/knowledge
ihengshuai/ktv-select_music-system
yupaits/docs-manage
LovebuildJ/book-manager
b2stry/mytwitter
muyinchen/migo-security
gpengDemo/Estore
liutengjian66/COVID
qiutiandefeng/yfdoc
Azure99/RainngCourse
Advancedpawn2020/cinema
Cool-Coding/angular-springboot-demo
Laverrr/bookstore
weiqingwen/spring-boot-forum
liujianview/gymxmjpa
huija/bicycleSharingServer
wdjisn/SpringBoot-Admin
ZemelZhu/MMS
ZemelZhu/Chatrum
mojooo/perManaGement
W-CORN/Cashier_management_system
DemoTree/NJU-SEII
sthoppan21/Java-BookStoreShoppingCart
Cool-Coding/angular-springboot-demo
ming-soft/MCMS