Commit 9d06422
committed
refactor(examples): code analysis engine
changes:
- file: main.py
area: core
modified: [main]
removed: [save_analysis_data]
- file: main_template.py
area: core
modified: [main]
removed: [save_analysis_data]
- file: mcp_demo.py
area: core
removed: [extract_code_from_response]
- file: claude_autonomous_demo.py
area: core
removed: [extract_code_from_response]
- file: best_version.py
area: core
modified: [main]
removed: [process_user_input]
- file: iteration_1.py
area: core
modified: [main]
removed: [process_user_input]
- file: iteration_2.py
area: core
modified: [main]
removed: [process_user_input]
- file: ollama_simple_demo.py
area: core
removed: [extract_code_from_response]
- file: calculate_total.py
area: util
added: [calculate_total]
- file: load_config.py
area: util
added: [load_config]
- file: process_user_input.py
area: util
added: [process_user_input]
- file: save_data.py
area: util
added: [save_data]
- file: extract_code_from_response.py
area: util
added: [extract_code_from_response]
- file: extraction.py
area: util
added: [extract_code_from_response, extract_json_from_response]
- file: logging_utils.py
area: util
added: [Colors, log_section, log_code, log_step, log_result]
- file: save_analysis_data.py
area: analyzer
added: [save_analysis_data]
- file: validation_runner.py
area: util
added: [run_validation_examples]
- file: cli.py
area: cli
removed: [_show_file_details, _build_results_table, _output_batch_rich, _output_batch_yaml, validate, _print_validator_details, +36 more]
- file: batch_processor.py
area: cli
added: [_process_files, _parse_filter_patterns, output_batch_results, __init__, _handle_no_files_found, _show_validation_start, +7 more]
- file: command_handlers.py
area: cli
added: [_load_reference, validate_command, batch_command, _exit_on_verdict, _load_code, check_command, +5 more]
- file: optimized_batch_processor.py
area: cli
added: [_validate_single_file, _show_detailed_result, OptimizedBatchProcessor, output_batch_results, __init__, create_optimized_batch_processor, +8 more]
- file: output_formatters.py
area: cli
added: [output_text, output_batch_rich, output_batch_results, output_json, output_batch_json, output_batch_text, +7 more]
- file: settings_builders.py
area: cli
added: [build_batch_settings, build_validate_settings]
- file: graph_diff.py
area: core
modified: [_diff_list]
- file: languages.py
area: core
modified: [Language, __init__]
- file: scoring.py
area: core
modified: [ValidationResult]
- file: base.py
area: core
added: [get_language, _get_error_message, _get_rule_name]
modified: [validate, BaseImportValidator]
- file: go_imports.py
area: core
added: [get_language, _get_error_message, _get_rule_name]
modified: [GoImportValidator]
removed: [validate]
- file: java_imports.py
area: core
added: [get_language, _get_error_message, _get_rule_name]
modified: [JavaImportValidator]
removed: [validate]
- file: javascript_imports.py
area: core
added: [get_language, _get_error_message, _get_rule_name]
modified: [JavaScriptImportValidator]
- file: python_imports.py
area: core
added: [get_language, _get_error_message, _get_rule_name]
modified: [PythonImportValidator, module_exists]
- file: rust_imports.py
area: core
added: [get_language, _get_error_message, _get_rule_name]
modified: [RustImportValidator]
removed: [validate]
- file: utils.py
area: util
added: [walk, validate_import_path]
- file: imports_original.py
area: core
removed: [_extract_js_imports, _c_header_exists, validate, _validate_c_cpp, _extract_go_imports, _js_module_exists, +18 more]
- file: lint.py
area: core
added: [_parse_ruff_text, LintValidator, _parse_ruff_result, _check_ruff, validate, create_validator, +1 more]
- file: logical.py
area: core
added: [_parse_pyflakes_line, validate, create_validator, __init__, LogicalErrorValidator, _check_pyflakes]
- file: semantic.py
area: core
modified: [validate, __init__, SemanticValidator]
- file: semantic_cache.py
area: core
added: [get, _get_cache_key, __init__, clear_semantic_cache, clear, get_cache_stats, +3 more]
- file: conftest.py
area: test
added: [pytest_configure, temp_python_file, disable_external_calls, mock_llm_provider]
- file: test_cli_e2e.py
area: cli
modified: [TestConfiguration, TestMultiLanguage, VallmCLI, __init__, TestCLICommands]
- file: test_installation.py
area: test
modified: [TestPipInstallation, TestPipxInstallation, InstallationTester, TestPostInstallation]
- file: test_performance.py
area: test
added: [TestPerformanceOptimizations]
new_tests: 5
- file: test_plugins.py
area: test
added: [validate_proposal, get_validator_name, MockValidator, get_validator_tier, ErrorValidator, StrictValidator, +1 more]
new_tests: 6
- file: test_sandbox.py
area: test
added: [TestSandboxRunner]
new_tests: 8
- file: test_semantic_validation.py
area: test
modified: [TestLLMIntegration, TestCLIWithSemantic]
testing:
new_tests: 19
scenarios:
- max_workers_limiting
- cache_persistence
- cache_key_generation
- parallel_vs_sequential_performance
- semantic_cache_performance
- multiple_validators
- register_validator
- validate_proposal_hook
- plugin_error_handling
- plugin_manager_creation
# +9 more
dependencies:
flow: "mcp_demoβextract_code_from_response, claude_autonomous_demoβextract_code_from_response, ollama_simple_demoβextract_code_from_response"
- mcp_demo.py -> extract_code_from_response.py
- claude_autonomous_demo.py -> extract_code_from_response.py
- ollama_simple_demo.py -> extract_code_from_response.py
stats:
lines: "+6221/-12488 (net -6267)"
files: 73
complexity: "Large structural change (normalized)"1 parent 2022552 commit 9d06422
File tree
86 files changed
+6256
-12491
lines changed- docs
- examples
- 01_basic_validation
- .vallm
- 02_ast_comparison
- 03_security_check
- 04_graph_analysis
- 05_llm_semantic_review
- 06_multilang_validation
- 10_mcp_ollama_demo
- 11_claude_code_autonomous
- 12_ollama_simple_demo
- utils
- utils
- project
- src/vallm
- cli
- core
- validators
- imports
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
86 files changed
+6256
-12491
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 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 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
127 | 211 | | |
128 | 212 | | |
129 | 213 | | |
| |||
195 | 279 | | |
196 | 280 | | |
197 | 281 | | |
198 | | - | |
| 282 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
71 | 87 | | |
72 | 88 | | |
73 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
309 | 315 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
315 | 321 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
321 | 333 | | |
322 | | - | |
| 334 | + | |
323 | 335 | | |
324 | 336 | | |
325 | | - | |
| 337 | + | |
326 | 338 | | |
327 | | - | |
| 339 | + | |
328 | 340 | | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
337 | 347 | | |
338 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
339 | 352 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
346 | 360 | | |
347 | | - | |
348 | | - | |
349 | | - | |
| 361 | + | |
350 | 362 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
355 | 377 | | |
356 | 378 | | |
357 | 379 | | |
358 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
359 | 386 | | |
360 | 387 | | |
361 | 388 | | |
362 | 389 | | |
363 | 390 | | |
364 | | - | |
365 | | - | |
366 | 391 | | |
367 | 392 | | |
368 | 393 | | |
369 | 394 | | |
370 | 395 | | |
371 | 396 | | |
372 | 397 | | |
373 | | - | |
| 398 | + | |
374 | 399 | | |
375 | 400 | | |
376 | 401 | | |
| |||
0 commit comments