https://github.com/felixoder/bug_detection_ml_project
This is a Machine learning project based on NLP to find bug and ~ fix it
https://github.com/felixoder/bug_detection_ml_project
Last synced: 3 days ago
JSON representation
This is a Machine learning project based on NLP to find bug and ~ fix it
- Host: GitHub
- URL: https://github.com/felixoder/bug_detection_ml_project
- Owner: felixoder
- License: mit
- Created: 2025-02-06T14:27:11.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-06T14:44:13.000Z (about 1 year ago)
- Last Synced: 2025-04-06T15:35:56.783Z (about 1 year ago)
- Language: Jupyter Notebook
- Homepage: https://usefelix.vercel.app/
- Size: 8.42 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

[](https://github.com/felixoder/bug_detection_ml_project/blob/master/LICENSE)
[](https://usefelix.vercel.app/)
This project is a powerful fine tune model crafted in google colab to detect and fix all kinds of bugs of a python code in realtime. This is integrated in a VS code extenstion through [felix-detect-fix](https://github.com/felixoder/felix-detect-fix). It's fast with it's GPU/CPU based workflow and compatible with all the Operating System. thanks to the new [codebert-base](microsoft/codebert-base) model and [deepseek](deepseek-ai/deepseek-coder-1.3b-instruct).

# Getting Started
## Installation
If you want to use this model locally then you should have installed python 3+ on your machine. And for model usage if you have a good GPU it will be cherry on the top. But if you don't have any GPU please make sure to use google colab or kaggle notebook or other services. Alternatively You can use any popular cloud services such that AWS, GCP, Azure etc.
Instructions
The both bug detecting and fixing model is available on the [Huggingface-bug-detection](https://huggingface.co/felixoder/bug_detector_model) and [Huggingface-bug-fixing](https://huggingface.co/felixoder/bug_fixer_model) if you want to install them you are good to go.
1. Open the `usingModel.ipynb` and test this model.
2. Check the accuracy score, F1, Precesion and other metrics for better understanding.
3. Next, Check for the graphical section to understand confusion matrix, box-plot, histogram etc.
## Usage
If you want to explore the extension please refer to this repository
https://github.com/felixoder/felix-detect-fix
Instructions How to use this
Open the extension tab in your VS code and find this [felix-detect-fix](https://marketplace.visualstudio.com/items?itemName=DebayanGhosh.felix-detect-fix) and install this.
1. Now create a python file having extension of `.ipynb`.
2. Write some code and press `Ctrl/cmd + shift + p` and type `Detect Bug`. after running this wait for couple of second and if there is a bug you can see a pop up and if you want to click `Fix Bug`.
3. Next, Click the `Fix Bug` [you can do this either by running the `Ctrl/cmd + shift + p` and type `Detect Bug` or the steps in step 2 and do fix likewise]





## Documentation
Here are some useful documentation links:
- Getting started guide: 
- VS code extension library: https://marketplace.visualstudio.com/items?itemName=DebayanGhosh.felix-detect-fix
## Evaluation
we have evaluated the evaluation matrics of the fine tune model please check the following graphs
and from the evaluation matrics our scores are follows -
Accuracy: 80.00%
Precision: 1.00
Recall: 0.60
F1 Score: 0.75





## Cross Platform
- see how it is working on Windows

## Feedback
To give feedback, ask a question or make a feature request, you can either use the [Github Discussions](https://github.com/felixoder/bug_detection_ml_project/discussions).
Bugs are logged using the github issue system. To report a bug, simply [open a new issue](https://github.com/felixoder/bug_detection_ml_project/issues/new/choose).
## Contributions
All contributions are welcomed.
For new nodes, check out [this documentation page on how to create a new shader-based node](https://usefelix.vercel.app/). Once you have it working, prepare a pull request against this repository.
In case you have any questions about a feature you want to develop of something you're not sure how to do, you can still create a draft pull request to discuss the implementation details.
# Gallery / Cool things
You can install the extension and detect the bug like

And fix the bug like

Use the model in google colab like this


Please check out my documentation page

@source - The idea and the project is done from my industrial training of Intel Unnati where I am selected among 50 students in my college.
## Developer
Debayan Ghosh @felixoder
uni student code - BWU/BTA/22/157