File size: 2,985 Bytes
64249d8
 
 
 
 
 
e0f70c3
31ca630
64249d8
ca0b39f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3b0f543
ca0b39f
3b0f543
 
ca0b39f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3b0f543
 
ca0b39f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
---
license: apache-2.0
title: STHASI Code Review Assistant
emoji: πŸ’»
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.49.1
---
πŸ”’ STHASI Code Review Assistant

An AI-powered code review assistant that analyzes code quality, detects security vulnerabilities, and suggests improvements.


🌟 Features

Code Quality Analysis: Evaluate code structure, readability, and best practices

Security Vulnerability Detection: Identify SQL injection, XSS, authentication flaws, and more

Improvement Suggestions: Get performance optimizations and refactoring recommendations

Bug Detection: Find logic errors, edge cases, and potential issues

Multi-Language Support: Python, JavaScript, Java, C++, Go, Rust, PHP, and more

πŸš€ Technology Stack

Model: Qwen2.5-Coder-7B-Instruct (State-of-the-art code understanding)

Framework: Gradio 5.49.1

Platform: Hugging Face Spaces

πŸ“¦ Installation
For Hugging Face Spaces Deployment:

Create a new Space on Hugging Face

Choose "Gradio" as the SDK

Upload the following files:

app.py

requirements.txt

README.md

Set the Space to use GPU (recommended: T4 or A10G)
For Local Development:
# Clone the repository
git clone <your-repo-url>
cd sthasi-code-review-assistant

# Install dependencies
pip install -r requirements.txt

# Run the application
python app.py

🎯 Usage

Paste your code in the code editor

Select the programming language

Choose analysis type:

Full Analysis (Quality + Security + Improvements)

Security Vulnerabilities Only

Code Quality & Improvements

Bug Detection

Click "Analyze Code" and get comprehensive feedback
πŸ“‹ Supported Languages

Python

JavaScript

Java

C/C++

C#

Go

Rust

PHP

Ruby

TypeScript

SQL

Bash

Kotlin

Swift

πŸ”§ Advanced Settings

Temperature: Control response creativity (0.1-1.0)

Max Tokens: Set maximum analysis length (512-4096)

πŸ“Š Analysis Types
πŸ” Full Analysis

Comprehensive review covering code quality, security, and improvements

πŸ›‘οΈ Security Vulnerabilities Only

Focused security analysis with severity ratings and CVE references

✨ Code Quality & Improvements

Evaluation of code structure, performance, and best practices

πŸ› Bug Detection

Identification of syntax errors, logic errors, and edge case failures

⚠️ Important Notes

This is an AI-powered tool. Always verify critical security findings with manual review

The tool provides suggestions based on best practices and common vulnerabilities

For production systems, consult with security experts for comprehensive audits

🀝 Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

πŸ“ž Contact

Syed Tahir Hussan

LinkedIn: syedtahirhussan

GitHub: SyedTahirHussan

πŸ“„ License

This project is open source and available under the MIT License.

πŸ™ Acknowledgments

Powered by Qwen2.5-Coder-7B-Instruct

Built with Gradio

Hosted on Hugging Face Spaces
Built with ❀️ by Syed Tahir Hussan

Made with ❀️ for the developer community