Skip to content
PGZXBPublic

About

Repository for "Task-Aware Project-Specific Information Selection for LLM-Based Automated Program Repair" accepted by IEEE Transactions on Software Engineering (TSE)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

PSIRepair (Task-Aware Project-Specific Information Selection for LLM-Based Automated Program Repair)

Overview of PSIRepair

The overview of PSIRepair

Preparation

  1. Clone Repository

    git clone https://github.com/PGZXB/PSIRepair
  2. Set Up Conda Environment

    • Create: conda create --name psirepair python=3.11.9
    • Install libraries
      • numpy 1.26.4
      • JPype1 1.5.2
      • chardet 5.2.0
      • openai 1.58.1
      • tenacity 9.0.0
      • javalang 0.13.0
      • langchain 0.3.13
      • langchain-openai 0.2.14
      • tqdm 4.66.4
    • See psirepair_env.yml for details
  3. Prepare JDKs

    • Java 7 (for Defects4j V1.2)
    • Java 8 (for Defects4j V2.0)
    • Java 17 (for Our PG Builder)
  4. Prepare Benchmarks

  5. Prepare Configuration Files

Perform Repair Experiments

To run PSIRepair, execute psirepair.sh:

# In PSIRepair root directory
## Select benchmarks to run (choose 1+ from: d4j-v120, d4j-v200, vul4j)
bash psirepair.sh /path/to/output/ --benchmarks d4j-v120 d4j-v200 vul4j

All results will be stored in the output directory you specified.

About

Repository for "Task-Aware Project-Specific Information Selection for LLM-Based Automated Program Repair" accepted by IEEE Transactions on Software Engineering (TSE)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages