Skip to main content

Automated Program Repair of Python Source-Code Using Genetic Improvement

Project description

Pyimprove

This repository contains an implementation of Genetic Improvement that can be used to fix Python code.

Setup

A virtual environment is used to ensure that all requirements are installed correctly without interference with the host environment.

brew install pyenv
brew install pyenv-virtualenv

nano ~/.bash_profile
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
source ~/.bash_profile

pyenv install 3.7.4
pyenv virtualenv 3.7.4 pyimprove

pyenv activate pyimprove

pip install --upgrade pip
pip install -r ./requirements.txt
pip install --editable .
python ./pyimprove/search.py ./bugs/custom/factorial.py ./bugs/custom/factorial_test.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyimprove, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyimprove-0.0.1-py3-none-any.whl (60.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyimprove-0.0.1.tar.gz (27.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page