Replication package for the paper detection of code smells in pull requests on GitHub.
- Clone the repository
$ git clone https://github.com/Tools-Demo/PR_CodeSmells.git
-
Place the dataset file in PR_CodeSmells-main/Dataset (Download from 25_projects_PRs.csv)
-
Change directory
$ cd PR_CodeSmells-main
-
Execute python classify_quality_PRs_1.py
-
Output for each executed method will be generated as a CSV file under "Results" folder (Existing results are placed in "Results_old" folder)
-
Methods that can be executed in the main function:
$ train_models_using_10FoldCV(df) [Default] -- Train all classifiers with 10-fold cross-validation
$ Baseline_10FoldCV(df) -- Train baseline classifier with 10-fold cross-validation
$ baseline_classifer(df) -- Train baseline classifier
$ hyperparamGridSearch(df) -- Execute grid search for HPO