Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafat3000/ai-review-code-in-docker-
https://github.com/rafat3000/ai-review-code-in-docker-
ai docker mlflow peewee python streamlit
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rafat3000/ai-review-code-in-docker-
- Owner: Rafat3000
- Created: 2024-11-25T20:29:44.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-25T20:51:15.000Z (3 months ago)
- Last Synced: 2024-12-03T04:15:30.344Z (2 months ago)
- Topics: ai, docker, mlflow, peewee, python, streamlit
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI-Review-code-in-docker-
# AI Code Review Assistant
This repository contains the source code for **AI Code Review Assistant**, a Streamlit-based web application designed to analyze and review programming code using AI-powered insights. The application supports multiple programming languages and provides feedback on code quality, maintaining a history of reviews for reference.
---
## Features
- **Interactive Sidebar**: View the last five code reviews directly from the sidebar.
- **Multi-language Support**: Select from a list of supported programming languages.
- **Code Review with AI**: Analyze your code quality using AI and receive actionable feedback.
- **Save Review History**: Automatically stores code review data, language, and quality score for future reference.---
## Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/ai-code-review-assistant.git
2- Navigate to the project directory:
cd ai-code-review-assistant3- Install the required Python libraries:
pip install -r requirements.txt4- Create and configure your database (if not pre-configured). You may need to customize the database.py file for your specific database settings.
------------------------
# Usage
1- Run the application:
streamlit run main.py
2- Open the app in your web browser at http://localhost:8501.
3- Use the interface to:
- Select the programming language.
- Input your code for review.
- View the AI-generated review and code quality score.
4- Access recent reviews from the sidebar.-------
## Project Structure
- main.py: The primary application file containing the Streamlit app logic.
- database.py: Handles database initialization and operations for storing and retrieving reviews.
- ai.py: Contains the AI logic for analyzing and reviewing code.
- utils.py: Utility functions, such as extracting quality scores from AI reviews.
- config.py: Configuration settings, including supported programming languages._____
## Requirements
- Python 3.8 or higher
- Streamlit
- Database support (SQLite, MySQL, or similar)
- AI dependencies (specified in requirements.txt)-------
## Customization- Add or remove programming languages by editing the PROGRAMMING_LANGUAGES list in config.py.
- Adjust database configurations in database.py to suit your environment.
- Modify the AI logic in ai.py to integrate with different AI models or APIs.--------
## ContributionContributions are welcome! Please fork the repository, create a new branch, and submit a pull request with your changes.
--------
## LicenseThis project is licensed under the MIT License. See the LICENSE file for details.