2 views
DeanChensj/jiangshan-map
江山时序 · 中国历史交互地图时间轴 (403 BCE – Present) | Interactive Historical Atlas of China across 18 dynasties, 198 territory snapshots, ancient-to-modern place genealogy & classical poetry routes
JavaScript★ 8,122+218 that day#11 on trending
C67.3/100
Duplication83
2.2% in javascript, pythonDead code97
0.2%Complexity38
72.2% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
2.27%duplicated code · 940 of 41,336 lines
72clones in code
36code files of 140 scanned
26.16%duplicated over all files · 1,331 clones
Most complex files
- js/app.js4296 cx
- js/atlas_trace.js2156 cx
- js/atlas_api.js1088 cx
- scripts/tests/suite_cartography_ui.js1078 cx
- scripts/tests/suite_search_runtime.js919 cx
- scripts/tests/suite_api_search.js671 cx
- scripts/tests/suite_trace_genealogy.js662 cx
- js/atlas_search.js649 cx
- scripts/tests/suite_core_data.js358 cx
- js/atlas_narrator.js276 cx
Dead code 0.21% unused · 1 findings
- geojson/jiangshan-locate.jsunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 2 generated files: js/event_pinyin.js, js/milestone_sources.js.
Largest clones in the code
- 138 lines in 2 placesjavascript2,997 tokens
2237{"ancient":"三明","modern":"三明","coord":[117.64,26.26],"tier":2,"remark":"1934年宁化为中央红军长征出发地之一;抗战期间福建省会内迁永安七年半"}, 2238{"ancient":"唐山","modern":"唐山","coord":[118.181,39.631],"tier":2}, 2239{"ancient":"沧州","modern":"沧州","coord":[116.841,38.301],"tier":2}, 2240{"ancient":"廊坊","modern":"廊坊","coord":[116.701,39.521],"tier":2}, 2241{"ancient":"衡水","modern":"衡水","coord":[115.671,37.741],"tier":2}, 2242{"ancient":"阳泉","modern":"阳泉","coord":[113.581,37.861],"tier":2}, 2243{"ancient":"晋城","modern":"晋城","coord":[112.851,35.491],"tier":2}, 2244{"ancient":"朔州","modern":"朔州","coord":[112.431,39.331],"tier":2}, 2245{"ancient":"晋中","modern":"晋中","coord":[112.751,37.691],"tier":2}, 2246{"ancient":"吕梁","modern":"吕梁","coord":[111.141,37.521],"tier":2},First 10 of 138 lines.
- 38 lines in 2 placesjavascript802 tokens
2151{"ancient":"连云港","modern":"连云港","coord":[119.18,34.59],"tier":2}, 2152{"ancient":"无锡","modern":"无锡","coord":[120.3,31.57],"tier":2}, 2153{"ancient":"南充","modern":"南充","coord":[105.97,31.56],"tier":2}, 2154{"ancient":"宜宾","modern":"宜宾","coord":[104.64,28.77],"tier":2}, 2155{"ancient":"乐山","modern":"乐山","coord":[103.77,29.55],"tier":2}, 2156{"ancient":"泸州","modern":"泸州","coord":[105.44,28.89],"tier":2}, 2157{"ancient":"抚州","modern":"抚州","coord":[116.36,27.98],"tier":2}, 2158{"ancient":"宜春","modern":"宜春","coord":[114.39,27.8],"tier":2}, 2159{"ancient":"莆田","modern":"莆田","coord":[119.01,25.43],"tier":2}, 2160{"ancient":"随州","modern":"随州","coord":[113.38,31.69],"tier":2},First 10 of 38 lines.
- 31 lines in 2 placesjavascript648 tokens
2091{"ancient":"贵阳","modern":"贵阳","coord":[106.631,26.651],"tier":2}, 2092{"ancient":"吉林","modern":"吉林","coord":[126.551,43.841],"tier":2}, 2093{"ancient":"岳阳","modern":"岳阳","coord":[113.129,29.357],"tier":2}, 2094{"ancient":"常德","modern":"常德","coord":[111.698,29.032],"tier":2}, 2095{"ancient":"衡阳","modern":"衡阳","coord":[112.572,26.894],"tier":2}, 2096{"ancient":"永州","modern":"永州","coord":[111.613,26.421],"tier":2}, 2097{"ancient":"宜昌","modern":"宜昌","coord":[111.286,30.692],"tier":2}, 2098{"ancient":"宣城","modern":"宣城","coord":[118.759,30.94],"tier":2}, 2099{"ancient":"池州","modern":"池州","coord":[117.491,30.665],"tier":2}, 2100{"ancient":"滁州","modern":"滁州","coord":[118.317,32.301],"tier":2},First 10 of 31 lines.
7 more
- 30 lines in 2 placesjavascript623 tokens
- 22 lines in 2 placesjavascript470 tokens
- 18 lines in 2 placesjavascript362 tokens
- 14 lines in 2 placesjavascript274 tokens
- 29 lines in 2 placesjavascript253 tokens
- 12 lines in 3 placesjavascript102 tokens
- 11 lines in 4 placesjavascript63 tokens
Largest clones over all files, tests and data included
- 422 lines in 38 placesmarkupmarkup2,823 tokenstopics/battle-changping.html:73–494topics/battle-chibi.html:73–494topics/battle-feishui.html:73–494topics/beisong.html:78–499topics/donghan.html:78–499and 33 more
73 } 74 ] 75 } 76 ] 77} 78 </script> 79 <style> 80 :root { 81 --bg-paper: #f5efe2; 82 --bg-card: #fbf7ee;First 10 of 422 lines.
- 35 lines in 19 placesmarkupmarkup511 tokenstopics/beisong.html:1518–1552topics/donghan.html:1259–1293topics/dongjin.html:1281–1315topics/index.html:752–786topics/ming.html:1800–1834and 14 more
1518 <p>按《元丰九域志》标绘二十三路与京畿东京开封府、西京河南府、北京大名府、南京应天府四京;西南四川川峡四路与大理国严格循大渡河及滇西山脉分界。</p> 1519 </div> 1520 </div> 1521</section> 1522 1523<section class="section-card"> 1524 <h2>中国十八历史时期疆域图志速查(403 BCE — 2026 CE)</h2> 1525 <div class="chip-grid"> 1526 <a class="chip-link" href="https://deanchen.me/jiangshan-map/topics/zhanguo.html">战国(前403—前221)</a> 1527 <a class="chip-link" href="https://deanchen.me/jiangshan-map/topics/qin.html">秦(前221—前202)</a>First 10 of 35 lines.
- 37 lines in 7 placesmarkupmarkup527 tokenstopics/battle-changping.html:708–744topics/battle-chibi.html:708–744topics/battle-feishui.html:708–744topics/dufu-763.html:584–620topics/hanyu-languan.html:708–744and 2 more
708 <td><a href="https://deanchen.me/jiangshan-map/?year=2026&place=%E9%95%BF%E5%B9%B3">查看该朝版图 →</a></td> 709 </tr> 710 </tbody> 711 </table> 712 </div> 713</section> 714 715<section class="section-card"> 716 <h2>中国十八历史时期疆域图志速查(403 BCE — 2026 CE)</h2> 717 <div class="chip-grid">First 10 of 37 lines.
- 138 lines in 2 placesjavascript2,997 tokens
- 417 lines in 2 placesmarkupmarkup2,803 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| javascript | 34 | 40,556 | 72 | 940 | 2.32% |
| python | 2 | 780 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| markup | 43 | 45,081 | 1,227 | 27,811 | 61.69% |
| javascript | 44 | 54,382 | 91 | 1,232 | 2.27% |
| css | 1 | 6,243 | 6 | 51 | 0.82% |
| markdown | 14 | 2,330 | 4 | 37 | 1.59% |
| bash | 11 | 116 | 3 | 24 | 20.69% |
| json | 17 | 2,139 | 0 | 0 | 0% |
| python | 2 | 780 | 0 | 0 | 0% |
| yaml | 4 | 183 | 0 | 0 | 0% |
| txt | 2 | 138 | 0 | 0 | 0% |
| text | 2 | 68 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 19, 2026 | #11 | 8,122 (+218) | 140 | 111,460 | 1,331 | 26.16% | 2.27% | C 67.3 | 76f0e16 |
| Nov 17, 2026 | #6 | 7,118 (+288) | 134 | 101,918 | 1,270 | 22.2% | 2.27% | C 67.3 | 897b9ad |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.