6 views
HKUDS/DeepTutor
DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python★ 53,022+1,034 that day#3 on trending
D54.5/100
Duplication81
2.6% in python, tsx, typescript, javascript, docker, nsis, powershell, swift, batchDead code44
8.9%Complexity46
56.7% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
1.8%duplicated code · 9,929 of 552,341 lines
754clones in code
2,127code files of 4,010 scanned
2.55%duplicated over all files · 1,896 clones
Most complex files
- web/features/chat/ChatStateAdapter.tsx1112 cx
- deeptutor/learning/service.py905 cx
- deeptutor/services/session/sqlite_store.py853 cx
- deeptutor/api/routers/knowledge.py849 cx
- web/features/chat/components/ChatWorkspace.tsx666 cx
- deeptutor/capabilities/mastery/tools.py642 cx
- web/features/chat/messages/ChatMessageList.tsx640 cx
- web/features/settings/store/SettingsStore.tsx571 cx
- deeptutor/knowledge/manager.py536 cx
- deeptutor/partners/channels/feishu.py515 cx
Dead code 8.93% unused · 537 findings
- deeptutor/api/routers/knowledge.pyunused-file
- deeptutor/agents/research/pipeline.pyunused-file
- deeptutor/partners/channels/feishu.pyunused-file
- deeptutor/api/routers/partners.pyunused-file
- web/components/settings/ServiceConfigEditor.tsxunused-file
- deeptutor/api/routers/book.pyunused-file
- deeptutor/api/routers/reading.pyunused-file
- deeptutor/api/routers/mastery_path.pyunused-file
- deeptutor/partners/channels/weixin.pyunused-file
- deeptutor/api/routers/co_writer.pyunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 3 generated files: web/contracts/generated/api.ts, web/contracts/generated/turn-protocol.ts, web/lib/brand-icons.generated.ts.
Largest clones in the code
- 7 lines in 7 placespython83 tokensdeeptutor/book/blocks/code.py:64–70deeptutor/book/blocks/figure.py:31–37deeptutor/book/blocks/flash_cards.py:22–28deeptutor/book/blocks/interactive.py:31–37deeptutor/book/blocks/quiz.py:17–23and 2 more
64async def _generate( 65 self, ctx: BlockContext 66) -> tuple[dict[str, Any], list[SourceAnchor], dict[str, Any]]: 67 params = ctx.block.params 68 chapter_title = params.get("chapter_title", ctx.chapter.title) 69 chapter_summary = params.get("chapter_summary", ctx.chapter.summary) 70 objectives = params.get("objectives") or ctx.chapter.learning_objectives - 60 lines in 2 placestsx446 tokensweb/components/common/RichMarkdownRenderer.tsx:226–285web/components/common/SimpleMarkdownRenderer.tsx:88–147
226 <code className="rounded bg-[var(--muted)] px-1 py-0.5 font-mono text-[0.95em] text-[var(--foreground)]/90"> 227 {String(children).replace(/\n$/, "")} 228 </code> 229), 230img: () => null, 231hr: () => <div className="my-1 h-px bg-current opacity-10" />, 232ul: ({ node, ...props }: any) => ( 233 <ul className="my-1 ml-4 list-disc" {...props} /> 234), 235ol: ({ node, ...props }: any) => (First 10 of 60 lines.
- 58 lines in 2 placestsx419 tokensweb/components/learning/LearningDashboard.tsx:65–122web/features/ui-layout/classic/ClassicLearningDashboard.tsx:107–164
65 onRetry={retry} 66 /> 67)} 68{loading ? ( 69 <LearningSkeleton count={4} /> 70) : ( 71 <> 72 {(todos.reviews.length > 0 || todos.books.length > 0) && ( 73 <section aria-labelledby="learning-todos" className="mb-9"> 74 <h2 id="learning-todos" className="mb-3 text-[13.5px] font-semibold">First 10 of 58 lines.
7 more
- 78 lines in 2 placespython369 tokens
- 41 lines in 2 placestsx367 tokens
- 65 lines in 2 placespython294 tokens
- 8 lines in 6 placespython58 tokens
- 53 lines in 2 placestsx272 tokens
- 52 lines in 2 placestsx270 tokens
- 12 lines in 4 placespython80 tokens
Largest clones over all files, tests and data included
- 604 lines in 12 placesbashdocs and examples495 tokensREADME.md:283–886assets/README/README_AR.md:96–684assets/README/README_CN.md:96–689assets/README/README_ES.md:96–689assets/README/README_FR.md:96–689and 7 more
283docker run --rm --name deeptutor \ 284 -p 127.0.0.1:3782:3782 \ 285 -v deeptutor-data:/app/data \ 286 ghcr.io/hkuds/deeptutor:latest 287``` 288 289Open [http://127.0.0.1:3782](http://127.0.0.1:3782). The named volume preserves settings and local data; only port `3782` is required for the Web app. See the … 290 291</details> 29296docker run --rm --name deeptutor \ 97 -p 127.0.0.1:3782:3782 \ 98 -v deeptutor-data:/app/data \ 99 ghcr.io/hkuds/deeptutor:latest 100``` 101 102افتح [http://127.0.0.1:3782](http://127.0.0.1:3782). تحفظ وحدة التخزين المسماة الإعدادات والبيانات المحلية؛ ولا يتطلب تطبيق الويب سوى المنفذ `3782`. راجع [دليل… 103 104</details> 105First 10 of 604 lines, the second copy on the right.
- 174 lines in 4 placesjsontranslations691 tokensweb/locales/de/app.json:5750–5923web/locales/en/app.json:5824–5997web/locales/pl/app.json:5766–5939web/locales/uk/app.json:5766–5939
5750"Favorites": "Favoriten", 5751"Insert favorite": "Insert favorite", 5752"Choose a collection": "Choose a collection", 5753"Add to a note": "Add to a note", 5754"Target page": "Target page", 5755"New page": "New page", 5756"Added to note": "Added to note", 5757"Conversation notes": "Conversation notes", 5758"Keep your ideas beside the conversation.": "Keep your ideas beside the conversation.", 5759"Create a note": "Create a note",First 10 of 174 lines.
- 21 lines in 4 placesmarkdowndocs and examples606 tokensassets/README/README_CN.md:20–40assets/README/README_ES.md:20–40assets/README/README_JA.md:20–40assets/README/README_TW.md:20–40
20 <a href="README_ES.md"><img alt="Español" height="40" src="https://img.shields.io/badge/Español-CDCFD4"></a> 21 <a href="README_FR.md"><img alt="Français" height="40" src="https://img.shields.io/badge/Français-CDCFD4"></a> 22 <a href="README_AR.md"><img alt="Arabic" height="40" src="https://img.shields.io/badge/Arabic-CDCFD4"></a> 23 <a href="README_RU.md"><img alt="Русский" height="40" src="https://img.shields.io/badge/Русский-CDCFD4"></a> 24 <a href="README_HI.md"><img alt="Hindi" height="40" src="https://img.shields.io/badge/Hindi-CDCFD4"></a> 25 <a href="README_PT.md"><img alt="Português" height="40" src="https://img.shields.io/badge/Português-CDCFD4"></a> 26 <a href="README_TH.md"><img alt="Thai" height="40" src="https://img.shields.io/badge/Thai-CDCFD4"></a> 27 <a href="README_PL.md"><img alt="Polski" height="40" src="https://img.shields.io/badge/Polski-CDCFD4"></a> 28</p> 29First 10 of 21 lines.
- 9 lines in 10 placesmarkdowndocs and examples159 tokens
- 170 lines in 12 placestextdocs and examples108 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 1,099 | 320,191 | 479 | 5,772 | 1.8% |
| tsx | 565 | 169,616 | 243 | 3,767 | 2.22% |
| typescript | 416 | 58,558 | 32 | 390 | 0.67% |
| javascript | 45 | 3,831 | 0 | 0 | 0% |
| powershell | 1 | 75 | 0 | 0 | 0% |
| swift | 1 | 70 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 2,053 | 556,596 | 1,288 | 15,604 | 2.8% |
| tsx | 762 | 198,909 | 371 | 5,080 | 2.55% |
| typescript | 687 | 92,378 | 107 | 1,353 | 1.46% |
| markdown | 177 | 22,781 | 58 | 630 | 2.77% |
| json | 67 | 78,026 | 23 | 1,140 | 1.46% |
| text | 18 | 209 | 13 | 109 | 52.15% |
| css | 13 | 9,549 | 11 | 99 | 1.04% |
| bash | 28 | 1,119 | 11 | 649 | 58% |
| yaml | 109 | 8,493 | 9 | 140 | 1.65% |
| markup | 19 | 657 | 3 | 23 | 3.5% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 1, 2026 | #3 | 53,022 (+1,034) | 4,010 | 974,409 | 1,896 | 2.55% | 1.8% | D 54.5 | f7aed07 |
| Oct 31, 2026 | #4 | 51,941 (+2,282) | 3,814 | 914,554 | 1,774 | 2.63% | 1.8% | D 54.6 | 1ea7df1 |
| Oct 30, 2026 | #1 | 50,595 (+1,930) | 3,814 | 914,554 | 1,774 | 2.63% | 1.8% | D 54.6 | 1ea7df1 |
| Oct 29, 2026 | #2 | 48,426 (+2,371) | 3,814 | 914,554 | 1,774 | 2.63% | 1.8% | D 54.6 | 1ea7df1 |
| Oct 28, 2026 | #4 | 46,410 (+1,598) | 3,477 | 850,057 | 1,713 | 2.63% | 1.89% | C 64.3 | a31d826 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.