Skip to content

Commit 0251b9b

Browse files
1 parent 15335ee commit 0251b9b

7 files changed

Lines changed: 37 additions & 30 deletions

File tree

.sync_log.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474
"timestamp": "2025-07-28T11:42:25.834410",
7575
"files_synced": 1,
7676
"total_files": 1
77+
},
78+
{
79+
"timestamp": "2025-07-28T11:54:29.434023",
80+
"files_synced": 3,
81+
"total_files": 3
7782
}
7883
],
7984
"file_hashes": {
@@ -132,6 +137,8 @@
132137
"src/code_intelligence/api/__init__.py": "385171c91cd9fac3e75f362b5b183e12",
133138
"src/code_intelligence/refactoring/safe_refactorer.py": "0457d3ce6bd17599e3ff06d8c0d24357",
134139
"src/code_intelligence/refactoring/__init__.py": "03ec84bffb09d119553070b3a88a1e59",
135-
"src/code_intelligence/refactoring/ast_refactor.py": "879de9c99f8f6bd7ba0b5ff57cdef97f"
140+
"src/code_intelligence/refactoring/ast_refactor.py": "879de9c99f8f6bd7ba0b5ff57cdef97f",
141+
"DEPENDENCY_ANALYZER_GUIDE.md": "bcf05592ab8383026aad784644a1703b",
142+
"OPEN_SOURCE_READY.md": "684ed14d875b00636f99f96d021b0ab3"
136143
}
137144
}

DEPENDENCY_ANALYZER_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The `dependency_analyzer.py` is a comprehensive "tool to rule them all" for anal
3131
- **Dependency Extraction**: Automatically finds and analyzes all dependencies
3232
- **Line Count Analysis**: Counts lines of code for all classes and dependencies
3333
- **Complexity Scoring**: Calculates complexity based on size, dependencies, and category
34-
- **Category Classification**: Automatically categorizes classes (UI, Processing, Analysis, etc.)
34+
- **Category Classification**: Automatically categorizes classes (UI, Trading, Analysis, etc.)
3535

3636
### 📊 **Visualization & Reporting**
3737
- **Dependency Graphs**: Interactive network graphs showing relationships
@@ -42,7 +42,7 @@ The `dependency_analyzer.py` is a comprehensive "tool to rule them all" for anal
4242
### 🎯 **Smart Classification**
4343
Classes are automatically categorized using pattern matching:
4444
- **UI**: GUI components, frames, dialogs, monitors
45-
- **Business Logic**: Core business operations and domain logic
45+
- **Trading**: Order management, positions, portfolio logic
4646
- **Analysis**: Analyzers, calculators, detectors, trackers
4747
- **Indicator**: VWAP, moving averages, technical indicators
4848
- **Data**: Data structures, caches, buffers, stores
@@ -128,7 +128,7 @@ Categories: 8 different functional areas
128128
```
129129

130130
### Category Breakdown
131-
- **Core Systems**: DataProcessorControllerV2, StateManagerControllerV3
131+
- **Trading Systems**: DataProcessorControllerV2, StateManagerControllerV3
132132
- **Market Analysis**: DataProfileAnalyzerV4, ClusterAnalyzerV1_7
133133
- **UI Components**: Multiple monitoring and debug interfaces
134134
- **Indicators**: VWAP calculations, proximity tracking

DOC_GENERATOR_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ Both tools are maintained and serve different but complementary purposes in the
953953
# Generate architecture overview with visual call graph
954954
./run_any_python_tool.sh doc_generator_enhanced.py \
955955
--module \
956-
--file core_system.py \
956+
--file trading_system.py \
957957
--style architecture \
958958
--format html \
959959
--depth deep \

OPEN_SOURCE_READY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ code-intelligence-toolkit/
104104
├── dependency_checker.py # Multi-platform dep checking
105105
├── *.py # 40+ analysis tools
106106
├── examples/ # Usage examples
107-
│ └── enterprise-app/ # Real-world example
107+
│ └── bookmap-trading/ # Real-world example
108108
└── docs/ # Additional documentation
109109
```
110110

@@ -121,7 +121,7 @@ This toolkit now stands out as:
121121

122122
## 🎊 Celebration
123123

124-
The Code Intelligence Toolkit transformation is complete! From a project-specific toolkit to a **professional, open-source, multi-platform code analysis suite** ready to serve the entire developer community.
124+
The Code Intelligence Toolkit transformation is complete! From a project-specific trading toolkit to a **professional, open-source, multi-platform code analysis suite** ready to serve the entire developer community.
125125

126126
**Total time invested**: ~2 hours
127127
**Total improvements**: 100+ changes across the entire codebase

dev-artifacts/demo_dependency_analysis.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ def run_analysis_demo():
3030
toolkit_dir = Path(__file__).parent
3131
os.chdir(toolkit_dir)
3232

33-
print("📍 Analyzing: NubiaAutoMidasAnchoredVWAPV7_1_5")
34-
print("🎯 Target: Real-world Java trading strategy with 12,146 lines")
33+
print("📍 Analyzing: ExampleComplexAnalyzer")
34+
print("🎯 Target: Complex Java analysis class with multiple dependencies")
3535
print("🔍 Depth: 2 levels of dependencies")
3636
print()
3737

3838
# Basic line count for context
39-
nubia_file = "../src/main/java/com/bookmap/api/simple/demo/indicators/NubiaAutoMidasAnchoredVWAPV7_1_5.java"
40-
if Path(nubia_file).exists():
41-
result = subprocess.run(['wc', '-l', nubia_file], capture_output=True, text=True)
39+
example_file = "../src/main/java/com/example/package/ExampleComplexAnalyzer.java"
40+
if Path(example_file).exists():
41+
result = subprocess.run(['wc', '-l', example_file], capture_output=True, text=True)
4242
if result.returncode == 0:
4343
lines = result.stdout.split()[0]
4444
print(f"📊 Main class: {lines} lines of code")
@@ -48,7 +48,7 @@ def run_analysis_demo():
4848
print("⚡ Running basic dependency analysis...")
4949
cmd = [
5050
'python3', 'dependency_analyzer.py',
51-
'NubiaAutoMidasAnchoredVWAPV7_1_5',
51+
'ExampleComplexAnalyzer',
5252
'--project-root', '..',
5353
'--summary-only',
5454
'--categories',
@@ -76,7 +76,7 @@ def run_analysis_demo():
7676
📈 AUTOMATED METRICS:
7777
• Total lines of code across all dependencies
7878
• Complexity scoring for each class
79-
• Category-based classification (UI, Trading, Analysis, etc.)
79+
• Category-based classification (UI, Processing, Analysis, etc.)
8080
• Dependency relationship mapping
8181
8282
📊 VISUAL OUTPUTS AVAILABLE:
@@ -97,13 +97,13 @@ def run_analysis_demo():
9797

9898
print("""
9999
# Generate full analysis with all visualizations:
100-
./run_any_python_tool.sh dependency_analyzer.py NubiaAutoMidasAnchoredVWAPV7_1_5 --export-all
100+
./run_any_python_tool.sh dependency_analyzer.py ExampleComplexAnalyzer --export-all
101101
102102
# Create interactive dependency graph:
103-
./run_any_python_tool.sh dependency_analyzer.py NubiaAutoMidasAnchoredVWAPV7_1_5 --plotly-graph nubia_deps.html
103+
./run_any_python_tool.sh dependency_analyzer.py ExampleComplexAnalyzer --plotly-graph analyzer_deps.html
104104
105105
# Quick analysis of any class:
106-
./run_any_python_tool.sh dependency_analyzer.py OrderSenderControllerV2 --summary-only
106+
./run_any_python_tool.sh dependency_analyzer.py ExampleController --summary-only
107107
108108
# Deep architectural analysis:
109109
./run_any_python_tool.sh dependency_analyzer.py MyClass --depth 4 --html-report --graph

dev/unified_refactor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _run_java_cli(self, args: List[str]) -> Tuple[int, str, str]:
116116
# Build the command
117117
cmd = [
118118
self.java_cli_path, '-q', 'runMain',
119-
'-PmainClass=com.bookmap.tools.JavaRefactorCLI',
119+
'-PmainClass=com.example.tools.JavaRefactorCLI',
120120
'--args=' + ' '.join(f'"{arg}"' for arg in args)
121121
]
122122

main_tools.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@
5858
./error_handling.py
5959
./error_logger.py
6060
./error_usage_hints.py
61-
./examples/bookmap-trading/advanced_indicator_parser.py
62-
./examples/bookmap-trading/analyze_diff_time_severity.py
63-
./examples/bookmap-trading/analyze_nonzero_difftime.py
64-
./examples/bookmap-trading/check_medium_scores.py
65-
./examples/bookmap-trading/comprehensive_indicator_analysis.py
66-
./examples/bookmap-trading/enhanced_analyzer_simplified.py
67-
./examples/bookmap-trading/extract_indicators.py
68-
./examples/bookmap-trading/final_verification_table.py
69-
./examples/bookmap-trading/fix_indentation.py
70-
./examples/bookmap-trading/populate_calls_comprehensive.py
71-
./examples/bookmap-trading/populate_database.py
72-
./examples/bookmap-trading/simple_enhanced_analyzer.py
61+
./examples/domain-specific/advanced_indicator_parser.py
62+
./examples/domain-specific/analyze_diff_time_severity.py
63+
./examples/domain-specific/analyze_nonzero_difftime.py
64+
./examples/domain-specific/check_medium_scores.py
65+
./examples/domain-specific/comprehensive_indicator_analysis.py
66+
./examples/domain-specific/enhanced_analyzer_simplified.py
67+
./examples/domain-specific/extract_indicators.py
68+
./examples/domain-specific/final_verification_table.py
69+
./examples/domain-specific/fix_indentation.py
70+
./examples/domain-specific/populate_calls_comprehensive.py
71+
./examples/domain-specific/populate_database.py
72+
./examples/domain-specific/simple_enhanced_analyzer.py
7373
./extract_block.py
7474
./extract_class_structure.py
7575
./extract_methods_v2.py

0 commit comments

Comments
 (0)