Skip to content

netpack/vaitp-auditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” VAITP-Auditor

Python 3.8+ License: MIT Cross-Platform

A powerful Python-based Manual Code Verification Assistant for efficient and accurate review of programmatically generated code snippets.

Transform your code review workflow with both modern GUI and interactive terminal interfaces that make comparing generated code against expected results fast, intuitive, and comprehensive.

Current Version: 0.1.0 (Alpha) - Active development with regular updates


πŸš€ Installation

Prerequisites

  • Python 3.8+ 🐍 (Python 3.10+ recommended)
  • Git for cloning the repository

Quick Setup

# Clone the repository
git clone https://github.com/netpack/vaitp-auditor.git
cd vaitp-auditor

# Create and activate a Python virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install with GUI support
pip install -e ".[gui]"

# Run the application
vaitp-auditor

# macOS users: For proper icon in dock, use the launcher instead:
python vaitp_auditor_launcher.py

Screenshot

vaitp-auditor gui screenshot

🎯 First Run

GUI Mode (Default)

# Launch the modern desktop interface (default if GUI dependencies available)
vaitp-auditor

# macOS users: For proper custom icon in dock, use:
python vaitp_auditor_launcher.py
# Or explicitly request GUI mode
vaitp-auditor --gui

Terminal Mode

# Start terminal-based review session
vaitp-auditor --cli

Follow the interactive setup wizard:

  1. Enter experiment name: my_first_review
  2. Select data source: Choose from folders, SQLite, or Excel/CSV
  3. Configure paths: Point to your generated and expected code
  4. Set sampling: Choose percentage of data to review (1-100%)
  5. Start reviewing: Use intuitive interface to classify code pairs

πŸ’‘ How to Use

πŸ—‚οΈ Data Sources

πŸ“ Folder-based Review (Most Common)

vaitp-auditor
# Select option 1: Folders
# Generated code: /path/to/generated/
# Expected code: /path/to/expected/
# Original input code: /path/to/input/

πŸ—„οΈ Database Review

# SQLite database with code_pairs table
# Columns: id, generated_code, expected_code

πŸ“Š Excel/CSV Review

# Spreadsheet with columns:
# ID | Generated Code | Expected Code

⌨️ Review Interface

Navigation (CLI Mode)

  • ↑↓←→ or hjkl - Scroll through code
  • Tab - Switch between panels
  • Page Up/Down - Navigate faster

Classification (Single keypress!)

  • s - Success βœ… (Code works correctly)
  • f - Failure ❌ (Code doesn't work)
  • i - Invalid 🚫 (Syntax errors)
  • w - Wrong ⚠️ (Wrong vulnerability type)
  • p - Partial πŸ”Ά (Partially correct)
  • u - Undo ↩️ (Go back one step)
  • q - Quit πŸšͺ (Save and exit)

✨ Key Features

πŸ–₯️ Modern Desktop GUI

  • Setup Wizard: Intuitive 5-step configuration process
  • Side-by-Side Code Comparison: Syntax highlighting with diff visualization
  • Responsive Interface: Smooth scrolling, keyboard shortcuts, and accessibility support
  • Performance Optimized: Lazy loading for large files, intelligent caching
  • Accessibility Features: Screen reader support, high contrast themes, keyboard navigation

🎨 Rich Terminal Interface

  • Side-by-side code comparison with syntax highlighting
  • Smooth scrolling and navigation
  • Progress tracking and session management

πŸ”„ Multiple Data Sources

  • File System: Compare folders of code files
  • SQLite: Review code stored in databases
  • Excel/CSV: Process spreadsheet data

πŸ’Ύ Smart Session Management

  • Auto-save progress after each review
  • Resume interrupted sessions seamlessly
  • 30-day automatic cleanup of old sessions

πŸ“ˆ Comprehensive Reporting

  • Excel reports with rich formatting and metadata
  • CSV exports for further analysis
  • Detailed timing and diff information

⚑ Performance Optimized

  • Lazy loading for large files (>100KB)
  • Intelligent caching and memory management
  • Chunked processing for massive datasets
  • Real-time performance monitoring

πŸ“‹ System Requirements

Component Minimum Recommended
Python 3.8 3.10+
RAM 4GB 8GB+
Storage 1GB 5GB+

🧹 Maintenance & Cleanup

Session Management

VAITP-Auditor automatically manages session files, but you can manually clean up when needed:

# View session files
ls -la ~/.vaitp_auditor/sessions/

# Remove sessions older than 7 days (automatic cleanup is 30 days)
find ~/.vaitp_auditor/sessions/ -name "*.pkl" -mtime +7 -delete

# Remove all session files (⚠️ careful!)
rm ~/.vaitp_auditor/sessions/*.pkl

File Locations

Type Location Description
Sessions ~/.vaitp_auditor/sessions/*.pkl Review progress and state
Logs ~/.vaitp_auditor/logs/*.log Application logs
Reports ./reports/*.xlsx Generated review reports
Config ~/.vaitp_auditor/config.yaml Optional configuration

Automatic Cleanup

  • Sessions: Auto-deleted after 30 days
  • Logs: Rotated automatically
  • Reports: Never auto-deleted (your data!)

πŸ“š Documentation

Guide Description
πŸ–₯️ GUI User Guide Complete GUI interface documentation
πŸ‘©β€πŸ’» GUI Developer Guide GUI development and extension guide
πŸ“– CLI User Guide Terminal interface documentation
πŸ”§ Setup Guide Detailed installation and configuration
πŸ—οΈ Developer Guide Architecture and contribution guidelines

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Data Sources  β”‚    β”‚   UI Components β”‚    β”‚   Processing    β”‚
β”‚                 β”‚    β”‚                 β”‚    β”‚                 β”‚
β”‚ β€’ File System   │───▢│ β€’ Terminal UI   │───▢│ β€’ Diff Engine   β”‚
β”‚ β€’ SQLite DB     β”‚    β”‚ β€’ Syntax Highl. β”‚    β”‚ β€’ Classificationβ”‚
β”‚ β€’ Excel/CSV     β”‚    β”‚ β€’ Navigation    β”‚    β”‚ β€’ Validation    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚                       β”‚                       β”‚
         β–Ό                       β–Ό                       β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Session Manager β”‚    β”‚ Report Generatorβ”‚    β”‚ Performance     β”‚
β”‚                 β”‚    β”‚                 β”‚    β”‚                 β”‚
β”‚ β€’ Auto-save     β”‚    β”‚ β€’ Excel Export  β”‚    β”‚ β€’ Memory Mgmt   β”‚
β”‚ β€’ Resume        β”‚    β”‚ β€’ CSV Export    β”‚    β”‚ β€’ Caching       β”‚
β”‚ β€’ Recovery      β”‚    β”‚ β€’ Metadata      β”‚    β”‚ β€’ Optimization  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🀝 Contributing

We welcome contributions! Here's how to get started:

Quick Start

  1. Fork the repository on GitHub
  2. Clone your fork: git clone https://github.com/yourusername/vaitp-auditor.git
  3. Create a feature branch: git checkout -b feature/amazing-feature
  4. Install development dependencies: pip install -e .[dev]
  5. Make your changes and add tests
  6. Run tests: pytest
  7. Commit your changes: git commit -m 'Add amazing feature'
  8. Push to the branch: git push origin feature/amazing-feature
  9. Open a Pull Request

Development Guidelines

  • Follow PEP 8 style guidelines
  • Add tests for new functionality
  • Update documentation as needed
  • Ensure all tests pass before submitting
  • Write clear, descriptive commit messages

Code Quality

See our Developer Guide for detailed contribution guidelines and architecture information.


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

License Summary

  • βœ… Commercial use
  • βœ… Modification
  • βœ… Distribution
  • βœ… Private use
  • ❌ Liability
  • ❌ Warranty

The MIT License is a permissive license that allows you to use this software for any purpose, including commercial applications, as long as you include the original copyright notice.


🌟 Why VAITP-Auditor?

  • πŸš€ Fast: Optimized for large-scale code review workflows
  • 🎯 Accurate: Structured classification with detailed reporting
  • πŸ’ͺ Robust: Cross-platform with comprehensive error handling
  • πŸ”§ Flexible: Multiple data sources and export formats
  • πŸ“Š Insightful: Rich metadata and performance analytics

Ready to revolutionize your manual code review process? Get started in under 2 minutes! πŸš€


🚧 Development Status

VAITP-Auditor is currently in active development (v0.1.0 Alpha). The core functionality is stable and ready for use, with ongoing improvements to the GUI interface, performance optimizations, and deployment capabilities.

Recent Updates

  • βœ… Modern GUI interface with accessibility features
  • βœ… Enhanced performance optimization and caching
  • βœ… Comprehensive test suite with >80% coverage
  • βœ… Simplified installation process

Upcoming Features

  • πŸ”„ Enhanced reporting and analytics
  • 🎨 Additional GUI themes and customization
  • πŸ“Š Advanced performance metrics and monitoring

πŸ“ž Support & Community

  • πŸ“– Documentation: Comprehensive guides in the docs/ directory

  • πŸ› Issues: Report bugs and request features via GitHub Issues

  • πŸ’¬ Discussions: Join community discussions for questions and ideas

  • πŸ“§ Contact: Reach out to the VAITP Research Team for collaboration

  • Support my work on Patreon: https://www.patreon.com/user?u=62912574


About

Manual Code Verification Assistant for programmatically generated code snippets

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages