Skip to content

zerbouhyoussef/nlp_code_debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLP Code Debugger

NLP Code Debugger is an intelligent, AI-powered debugging assistant that helps you analyze and fix programming errors quickly. Built with Streamlit and OpenAI's GPT models, this tool leverages advanced NLP to provide actionable solutions, best practices, and learning resources for your coding bugs.

Features

  • 🐍 Supports multiple languages: Python, Java, JavaScript, PHP
  • 🤖 AI-driven code and error analysis powered by GPT-3
  • 🛠️ Detailed error diagnostics and common causes
  • ⚡ Quick fixes and best practice recommendations
  • 📚 Curated learning resources for further study
  • 🖥️ Intuitive Streamlit-based web interface with light/dark themes
  • 📝 Paste your code and error message to get instant help

Demo

![screenshot or gif here if available]

Installation

  1. Clone the repo:

    git clone https://github.com/Youssefzrr/nlp_code_debugger.git
    cd nlp_code_debugger
  2. Install the requirements:

    pip install -r requirements.txt

Usage

  1. Run the Streamlit app:

    streamlit run app.py
  2. Open your browser at the provided local URL.

  3. Paste your code and error message, select your language, and click "Analyze & Debug".

Requirements

  • Python 3.7+
  • OpenAI API Key (for GPT-3 integration)

Python dependencies

  • openai
  • streamlit
  • pygments
  • javalang
  • esprima
  • phply

(Install with pip install -r requirements.txt)

Project Structure

.
├── app.py              # Main Streamlit app
├── requirements.txt    # Python dependencies
├── data/               # Data files (if any)
├── src/                # Source code (solution generator, parsers, etc.)
├── templates/          # Template files
├── tests/              # Unit tests

How It Works

  1. Paste your code and error message.
  2. Select the programming language or enable auto-detection.
  3. The AI analyzes the error and provides:
    • Error type, severity, and location
    • Common causes
    • AI-generated analysis and solution
    • Quick fixes and best practices
    • Learning resources

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss improvements.

License

MIT (or specify your license here)


Maintainer: Youssefzrr

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages