File size: 1,467 Bytes
be94910
2a1cdbf
be94910
 
 
 
 
 
 
 
 
 
 
2a1cdbf
be94910
 
2a1cdbf
be94910
 
2a1cdbf
 
be94910
 
 
 
2a1cdbf
 
be94910
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Code Analyzer

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://huggingface.co/spaces/YOUR_USERNAME/code-analyzer)

This tool analyzes code projects and generates descriptive summaries along with answers to specific questions about the codebase.

## Features
- Analyzes Python, Java, and React code files
- Detects technology stack and dependencies
- Measures code complexity metrics
- Generates project summaries using transformer models
- Interactive Streamlit interface with visualizations
- Provides targeted answers to specific questions about the codebase

## Demo
You can try the live demo on [Hugging Face Spaces](https://huggingface.co/spaces/YOUR_USERNAME/code-analyzer)

## Local Setup
1. Install dependencies:
```bash
pip install -r requirements.txt
```

2. Run the Streamlit app:
```bash
streamlit run app.py
```

## Usage
1. Upload your code files (supported: .py, .java, .js, .jsx, .ts, .tsx)
2. Enter your analysis questions (or use the default ones)
3. Click "Analyze Code" to get insights about your project

## Analysis Capabilities
- Technology stack detection (languages, frameworks, dependencies)
- Code metrics (lines of code, class/function count, complexity)
- Project objective identification from documentation
- Customizable question-answering system
- Interactive visualizations of code metrics

## Requirements
- Python 3.8+
- 4GB+ RAM
- CUDA-capable GPU (optional, for faster processing)