Skip to content

Commit 5f606d1

Browse files
refactor(docs): code analysis engine
stats: lines: "+264/-264 (net +0)" files: 10 complexity: "Stable complexity"
1 parent de4b3d5 commit 5f606d1

15 files changed

Lines changed: 283 additions & 268 deletions

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
## [Unreleased]
22

3+
## [0.5.91] - 2026-03-26
4+
5+
### Docs
6+
- Update project/context.md
7+
8+
### Other
9+
- Update project/analysis.toon.yaml
10+
- Update project/calls.mmd
11+
- Update project/calls.png
12+
- Update project/compact_flow.mmd
13+
- Update project/flow.mmd
14+
- Update project/flow.png
15+
- Update project/index.html
16+
- Update project/map.toon.yaml
17+
318
## [0.5.90] - 2026-03-26
419

520
### Docs

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.90
1+
0.5.91

code2llm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
and entity resolution with multilingual support.
99
"""
1010

11-
__version__ = "0.5.90"
11+
__version__ = "0.5.91"
1212
__author__ = "STTS Project"
1313

1414
# Core analysis components (lightweight, always needed)

code2llm/nlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
with multilingual support and fuzzy matching.
55
"""
66

7-
__version__ = "0.5.90"
7+
__version__ = "0.5.91"
88

99
from .pipeline import NLPPipeline
1010
from .normalization import QueryNormalizer

project/analysis.toon.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ REFACTOR[1]:
1919
PIPELINES[637]:
2020
[1] Src [read_readme]: read_readme
2121
PURITY: 100% pure
22-
[2] Src [save_report]: save_report
22+
[2] Src [run_benchmark]: run_benchmark → load_previous
2323
PURITY: 100% pure
24-
[3] Src [run_benchmark]: run_benchmark → load_previous
24+
[3] Src [save_report]: save_report
2525
PURITY: 100% pure
2626
[4] Src [main]: main → load_file → is_toon_file
2727
PURITY: 100% pure

project/calls.mmd

Lines changed: 226 additions & 226 deletions
Large diffs are not rendered by default.

project/calls.png

52.9 KB
Loading

project/compact_flow.mmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ flowchart TD
1616
code2llm_cli ==>|5| code2llm_cli_commands
1717
code2llm_cli_exports -->|3| code2llm_exporters
1818
validate_toon -->|2| code2llm_parsers
19-
benchmarks_benchmark_format_quality -->|2| benchmarks_reporting
2019
code2llm_cli_analysis -->|2| code2llm_cli_exports
20+
benchmarks_benchmark_format_quality -->|2| benchmarks_reporting
2121
code2llm_cli -->|1| code2llm_cli_parser
2222
code2llm_cli -->|1| code2llm_cli_analysis
2323
code2llm_cli -->|1| code2llm_cli_exports
24-
benchmarks_benchmark_format_quality -->|1| benchmarks_format_evaluator
25-
benchmarks_benchmark_format_quality -->|1| benchmarks_project_generator
2624
code2llm_cli_analysis -->|1| code2llm_core
2725
code2llm_cli_commands -->|1| code2llm_cli_exports
26+
benchmarks_benchmark_format_quality -->|1| benchmarks_format_evaluator
27+
benchmarks_benchmark_format_quality -->|1| benchmarks_project_generator
2828
code2llm_cli_exports -->|1| code2llm_core
2929
code2llm_cli_exports -->|1| code2llm_generators

project/context.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@
5353
- **Classes**: 1
5454
- **File**: `type_inference.py`
5555

56-
### code2llm.analysis.pipeline_detector
57-
- **Functions**: 18
58-
- **Classes**: 3
59-
- **File**: `pipeline_detector.py`
60-
6156
### code2llm.analysis.data_analysis
6257
- **Functions**: 18
6358
- **Classes**: 1
6459
- **File**: `data_analysis.py`
6560

61+
### code2llm.analysis.pipeline_detector
62+
- **Functions**: 18
63+
- **Classes**: 3
64+
- **File**: `pipeline_detector.py`
65+
6666
### code2llm.exporters.project_yaml_exporter
6767
- **Functions**: 18
6868
- **Classes**: 1
@@ -473,10 +473,6 @@ Key functions that process and transform data:
473473
> Create CLI argument parser.
474474
- **Output to**: argparse.ArgumentParser, parser.add_argument, parser.add_argument, parser.add_argument, parser.add_argument
475475

476-
### benchmarks.benchmark_format_quality._generate_format_outputs
477-
> Generate all format outputs and evaluate them.
478-
- **Output to**: format_configs.items, __import__, getattr, exporter_cls, time.time
479-
480476
### demo_langs.valid.sample.UserService.process_users
481477
- **Output to**: print
482478

@@ -491,6 +487,10 @@ Checks:
491487
1. All chunks have required files (analysis.toon, contex
492488
- **Output to**: print, print, sorted, print, print
493489

490+
### benchmarks.benchmark_format_quality._generate_format_outputs
491+
> Generate all format outputs and evaluate them.
492+
- **Output to**: format_configs.items, __import__, getattr, exporter_cls, time.time
493+
494494
### code2llm.analysis.data_analysis.DataAnalyzer._identify_process_patterns
495495
- **Output to**: result.functions.items, patterns.items, sorted, func.name.lower, indicators.items
496496

@@ -506,6 +506,10 @@ Checks:
506506
> Load gitignore parser for project if available.
507507
- **Output to**: code2llm.core.gitignore.load_gitignore_patterns
508508

509+
### code2llm.analysis.cfg.CFGExtractor._format_except
510+
> Format except handler.
511+
- **Output to**: self._expr_to_str
512+
509513
### code2llm.core.gitignore.GitIgnoreParser._parse_pattern
510514
> Parse a single gitignore pattern into regex.
511515
- **Output to**: pattern.startswith, pattern.endswith, pattern.startswith, self._wildcard_to_regex, re.compile
@@ -520,10 +524,6 @@ Returns list of (module_name, start_line, end_line).
520524
> Check if file should be processed.
521525
- **Output to**: file_path.lower, Path, self._gitignore_parser.is_ignored, any, fnmatch.fnmatch
522526

523-
### code2llm.analysis.cfg.CFGExtractor._format_except
524-
> Format except handler.
525-
- **Output to**: self._expr_to_str
526-
527527
### code2llm.core.file_analyzer.FileAnalyzer._process_class
528528
> Process class definition.
529529
- **Output to**: ClassInfo, None.classes.append, isinstance, isinstance, methods.append

project/flow.mmd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ flowchart TD
3030
badges__server__get_badges["get_badges"]
3131
code2llm__api__analyze["analyze"]
3232
code2llm__api__analyze_file["analyze_file"]
33-
code2llm__TypeInferenceEngine__enrich_function["enrich_function"]
34-
code2llm__TypeInferenceEngine__get_arg_types["get_arg_types"]
35-
code2llm__TypeInferenceEngine__get_return_type["get_return_type"]
36-
code2llm__TypeInferenceEngine__get_typed_signature["get_typed_signature"]
37-
code2llm__TypeInferenceEngine__extract_all_types["extract_all_types"]
38-
code2llm__TypeInferenceEngine___get_ast["_get_ast"]
39-
code2llm__TypeInferenceEngine___find_function_node["_find_function_node"]
40-
code2llm__TypeInferenceEngine___extract_from_node["_extract_from_node"]
33+
code2llm__DataAnalyzer__analyze_data_flow["analyze_data_flow"]
34+
code2llm__DataAnalyzer__analyze_data_structures["analyze_data_structures"]
35+
code2llm__DataAnalyzer___find_data_pipelines["_find_data_pipelines"]
36+
code2llm__DataAnalyzer___find_state_patterns["_find_state_patterns"]
37+
code2llm__DataAnalyzer___find_data_dependencies["_find_data_dependencies"]
38+
code2llm__DataAnalyzer___find_event_flows["_find_event_flows"]
39+
code2llm__DataAnalyzer___detect_types_from_name["_detect_types_from_name"]
40+
code2llm__DataAnalyzer___create_type_entry["_create_type_entry"]
4141
...["+291 more"]
4242
end
4343

@@ -60,4 +60,4 @@ flowchart TD
6060
...["+224 more"]
6161
end
6262

63-
class setup__read_readme,validate_toon__main,badges__server__index,badges__server__generate_badges,badges__server__get_badges,code2llm__cli__main,code2llm__api__analyze,code2llm__api__analyze_file,code2llm__cli_analysis___run_analysis,code2llm__cli_analysis___run_standard_analysis entry
63+
class setup__read_readme,validate_toon__main,code2llm__cli__main,badges__server__index,badges__server__generate_badges,badges__server__get_badges,code2llm__api__analyze,code2llm__api__analyze_file,code2llm__cli_analysis___run_analysis,code2llm__cli_analysis___run_standard_analysis entry

0 commit comments

Comments
 (0)