Skip to content

Commit 32fe23a

Browse files
committed
FDS
1 parent dcf05ee commit 32fe23a

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

scripts/docs_ai/bootstrap_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
- Sparse search (PostgreSQL Full-Text Search/BM25)
3333
- Graph search (Neo4j for entity relationships)
3434
35-
WRITING STYLE: Technical, precise, thorough. First person where appropriate.
35+
WRITING STYLE: Technical, precise, thorough. Humorous where appropriate.
3636
3737
KEY ARCHITECTURE POINTS:
3838
1. THREE search legs fused together (hence "tri-brid")
@@ -139,6 +139,7 @@
139139
**MERMAID v11 RULES** (handDrawn style enabled sitewide):
140140
- Use \n for multi-line labels (NOT <br/> or HTML)
141141
- Add color classes with `:::className` for visual appeal
142+
- Make them big and bold and colorful! And 3D!
142143
- Define classDef for custom colors (use hex colors)
143144
- Node shapes: [] rectangle, () rounded, {} diamond, (()) circle, [[ ]] subroutine
144145
- Edge types: --> solid, -.-> dotted, ==> thick

server/api/repos.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ async def get_repo_stats(corpus_id: str) -> CorpusStats:
235235
lang_breakdown: dict[str, int] = {}
236236
root = Path(root_path).expanduser().resolve()
237237
if root.exists():
238-
for rel, p in loader.iter_repo_files(str(root)):
239-
file_count += 1
240-
try:
241-
total_size += p.stat().st_size
242-
except Exception:
243-
pass
244-
lang = loader.detect_language(rel) or "unknown"
245-
lang_breakdown[lang] = lang_breakdown.get(lang, 0) + 1
238+
for rel, p in loader.iter_repo_files(str(root)):
239+
file_count += 1
240+
try:
241+
total_size += p.stat().st_size
242+
except Exception:
243+
pass
244+
lang = loader.detect_language(rel) or "unknown"
245+
lang_breakdown[lang] = lang_breakdown.get(lang, 0) + 1
246246

247247
# Index stats from Postgres (404 if no chunks)
248248
index_stats: IndexStats | None = None

0 commit comments

Comments
 (0)