conda env create -f environment.yml
conda activate jit-def-pred
ipython kernel install --user --name=jit-def-pred
- Clone needed repositories:
cd jit-defect-prediction/data/repositories
git clone git@github.com:openstack/openstack.git
cd qt
awk '{ system("git clone git@github.com:qt/"$1".git") }' qt_repositories
- Download files changed by commits:
cd jit-defect-prediction
conda activate jit-def-pred
python src/preparation/download_data.py --project openstack
python src/preparation/download_data.py --project qt
You can also run test to check if the script works correctly:
python src/preparation/download_data.py --project test
Copy data (around 15GB) from Google Drive.
and extract them to jit-defect-prediction/data
directory.
How to fit and search for parameters of a baseline model?
cd jit-defect-prediction
conda activate jit-def-pred
python src/models/baseline.py --help
Results can be found in directory data/models