Skip to content

Source code of the paper "Leveraging textual properties of bug reports to localize relevant source files".

License

Notifications You must be signed in to change notification settings

Eng-sarah90/bug-localization

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Run

  1. Install Python 3.8+ and clone this repository:

    git clone https://github.com/h4iku/bug-localization.git
  2. Create a venv and install the dependencies:

    cd bug-localization
    python -m venv env
    ./env/Scripts/activate
    python -m pip install -U pip setuptools
    pip install -r requirements.txt

    Also, download and install the spaCy's en_core_web_lg pretrained model and NLTK data.

  3. Download the datasets file from here, and unzip it in the root directory of the cloned repository. You can also download these datasets from the BugLocator and BRTracer repositories. More datasets can be downloaded from the Bench4BL repository.

  4. Check the path of datasets in buglocalizer/datasets.py module and change the value of the DATASET variable to choose different datasets (default values can be aspectj, swt, and zxing, but you can add more).

    Run the main module:

    python buglocalizer/main.py

    All the modules are also independently runnable if it was needed to run them one by one.

About

Source code of the paper "Leveraging textual properties of bug reports to localize relevant source files".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%