Remove commented code from projects automatically
Project description
Vestige
Vestige is a tool that automatically finds and removes commented code from python files.
For example, you can use the tool to remove some comments within it's main file, and output the result into another file cleaned.py like this.
python -m vestige --input cleaner.py --output cleaned.py
Q/A
- Will vestige break my code!?
Thankfully, no! Vestige only analyzes inline comments, so while it's possible for it to remove some inline documentation by mistake, it won't ever affect the actual code.
- How much can I trust vestige?
Vestige's current model is about 95% accurate on internal tests. We recommend double checking the diff of the original and output final to ensure everything has worked properly. In the future we are aiming to increase this accuracy significantly through improvement of both the model and the training dataset.
- How does vestige work?
Vestige uses BERT, a transformer based artificial neural network that is pretrained to better understand (kind of) language, and then fine tuned on a specific task. In this case, it is fine tuned to distinguish between commented code and useful documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for vestige_cleaner-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 426a46c75c3b1c48d8cc1f490cf29698c30433957152a86a953deafbd25cea32 |
|
MD5 | 3a0f9d0d6888b98958eb968c687da729 |
|
BLAKE2b-256 | df460216cf840932a392f069d4971d95574ecd2e9cf1994eb46708e5639bd9e7 |