Giter Site home page Giter Site logo

homework's Introduction

PAL4JavaWeb

Introduction

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.

Usage

  1. Clone this project and the project you want to generate setup steps for.
  2. Locate PAL4JavaWeb\src\main\java\chatGpt.java, which serves as the main file for generating the setup steps.
  3. Modify the projname in the step2 file to the address of your target project on your PC.
  4. Change the Apikey of chatGpt to yours.
  5. Modify the arguments in the writeToText() function to the location you desire.
  6. The result will be automatically generated at the address specified in step 5.
  7. Run the chatGpt.java.

Call Graph

Repository: java-all-call-graph

  1. Package the project into a .war or .jar file.
  2. Locate the _jacg_config/config.properties file.
  3. Modify the app.name to your preference.
  4. Find the _jacg_config/jar_dir.properties file.
  5. Specify the location of the war/jar file.
  6. Find the _jacg_config/config_db.properties file.
  7. Adjust the database configuration (url, username, password).
  8. Find the _jacg_config/method_class_4caller file.
  9. Specify the class name you wish to analyse.
  10. Run TestRunnerWriteDb.java and TestRunnerGenAllGraph4Caller.java. The result will be automatically generated in the "_jacg-[time]" directory.

Baseline1

  1. Locate the PAL4JavaWeb\src\main\java\KeywordExtract.java file.
  2. Modify the directoryPath to the directory of your baseline projects.
  3. Modify the arguments in the writeToText() function to the desired location.
  4. The result will be automatically generated at the address specified in step 3.

Baseline2

  1. Locate the PAL4JavaWeb\src\main\java\RQ2Baseline1.java file.
  2. Modify the directoryPath to the directory of your baseline projects.
  3. Modify the arguments in the writeToText() function to the desired location.
  4. The result will be automatically generated at the address specified in step 3.

Test Applications

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

Example of the Generation Module

generate

homework's People

Contributors

pal4javaweb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.