A machine learning classifier that identifies code comprehension related comments in a pull request.
Set up Git Large File Storage
- Install git-lfs: https://github.com/git-lfs/git-lfs/wiki/Installation
- Initialize Git LFS and its respective hooks in this repo:
git lfs install
Set up a virtual environment
On macOS and Linux:
python3 -m venv .venv
source .venv/bin/activate
On Windows:
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
In the Python console, launch the NLTK Downloader:
import nltk
nltk.download()
Download the following corpora:
- nps_chat
Configure Confuse
By default, Visual Studio Code will use .env automatically when starting the Python environment, so add the following to the end of .env (create the file if it does not exist):
# Confuse Config Search Directory
CCC4PRCDIR="./"
Alternatively, if not using Visual Studio Code, please see the instructions below.
- Add the following to the end of venv activate script:
# Confuse Config Search Directory
CCC4PRCDIR="./"
export CCC4PRCDIR
- Then reactivate the venv to take effect:
source .venv/bin/activate
- Add the following to the end of Activate.ps1:
# Confuse Config Search Directory
$env:CCC4PRCDIR="./"
- Then reactivate the venv to take effect:
.venv\Scripts\Activate.ps1