We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc941b commit 0e99b85Copy full SHA for 0e99b85
src/gitingest/output_formatter.py
@@ -108,7 +108,7 @@ def format_node_with_context_limit(
108
# Update summary with final info
109
if node.type == FileSystemNodeType.DIRECTORY:
110
# Count how many files were actually included
111
- included_files = len([line for line in optimized_content.split('\n') if line.startswith('=' * 48)]) / 2
+ included_files = int(len([line for line in optimized_content.split('\n') if line.startswith('=' * 48)]) / 2)
112
summary += f"Files included: {included_files} (optimized for {max_tokens:,} tokens)\n"
113
elif node.type == FileSystemNodeType.FILE:
114
summary += f"File: {node.name}\n"
0 commit comments