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
![generate](https://private-user-images.githubusercontent.com/76843234/335576849-62fe7902-db25-4e8e-b56f-c79bd699ef25.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1MjIyMjcsIm5iZiI6MTcyMzUyMTkyNywicGF0aCI6Ii83Njg0MzIzNC8zMzU1NzY4NDktNjJmZTc5MDItZGIyNS00ZThlLWI1NmYtYzc5YmQ2OTllZjI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDA0MDUyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxOTUzZjhlZWRhNDc2ZTQ4YjI2N2FjZTEyZjc1NTgyOTgyMGFmYTY0YmQ1MjA3ODhiZDE5YjFhNDZjMmI0ZTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CSZYTJctQmQ3Nsl5My6olxgDQW5iQBvrOXT2RqAs2kc)