Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

iSMELL comparison to CodeCureAgent

Replicating the iSMELL comparison

  1. (Optional) Create the iSMELL comparison dataset with evaluation_scripts/create_ismell_comparison_dataset.py (requires the CodeCureAgent python environment (via the requirements.txt in the code_cure_agent folder)). Run it from here.

  2. Add a file .env to this folder with the following content:

    OPENAI_API_KEY=your_api_key_here

    Replace your_api_key_here with your actual OpenAI API key.

  3. Run iSMELL on the dataset using the script refactor_warnings.py. This requires the python environment of iSMELL (the requirements.txt in this folder). Uninstall the CodeCureAgent python environment first, then install the iSMELL environment. Ignore the pip error when installing.
    Run this script from here.
    Logs are saved to the dataset folder cca_dataset.

  4. Evaluate the results (apply the three CodeCureAgent oracle steps to all created fixes) using evaluation_scripts/evaluate_ismell_run_results.py (requires the CodeCureAgent environment (the requirements.txt in the code_cure_agent folder)). Run it from here.
    Results are appended to file ismell_comparison_results.csv per default. Delete or rename it first if you want to write a new file.

  5. Summarize stats from the created results csv file via evaluation_scripts/calculate_ismell_stats_from_evaluation_results.py by passing the ismell_comparison_results.csv file as argument.
    Run this script from this folder.

Relevant Comparison Result Files