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★ 7,118+288 that day#6 on trending
C67.3/100
Duplication83
2.2% in javascript, pythonDead code97
0.2%Complexity38
71.8% 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 · 915 of 40,381 lines
71clones in code
36code files of 134 scanned
22.2%duplicated over all files · 1,270 clones
Most complex files
- js/app.js4284 cx
- js/atlas_trace.js2104 cx
- js/atlas_api.js1088 cx
- scripts/tests/suite_cartography_ui.js1079 cx
- scripts/tests/suite_search_runtime.js868 cx
- scripts/tests/suite_api_search.js671 cx
- scripts/tests/suite_trace_genealogy.js653 cx
- js/atlas_search.js649 cx
- scripts/tests/suite_core_data.js352 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
2235{"ancient":"三明","modern":"三明","coord":[117.64,26.26],"tier":2,"remark":"1934年宁化为中央红军长征出发地之一;抗战期间福建省会内迁永安七年半"}, 2236{"ancient":"唐山","modern":"唐山","coord":[118.181,39.631],"tier":2}, 2237{"ancient":"沧州","modern":"沧州","coord":[116.841,38.301],"tier":2}, 2238{"ancient":"廊坊","modern":"廊坊","coord":[116.701,39.521],"tier":2}, 2239{"ancient":"衡水","modern":"衡水","coord":[115.671,37.741],"tier":2}, 2240{"ancient":"阳泉","modern":"阳泉","coord":[113.581,37.861],"tier":2}, 2241{"ancient":"晋城","modern":"晋城","coord":[112.851,35.491],"tier":2}, 2242{"ancient":"朔州","modern":"朔州","coord":[112.431,39.331],"tier":2}, 2243{"ancient":"晋中","modern":"晋中","coord":[112.751,37.691],"tier":2}, 2244{"ancient":"吕梁","modern":"吕梁","coord":[111.141,37.521],"tier":2},First 10 of 138 lines.
- 38 lines in 2 placesjavascript802 tokens
2149{"ancient":"连云港","modern":"连云港","coord":[119.18,34.59],"tier":2}, 2150{"ancient":"无锡","modern":"无锡","coord":[120.3,31.57],"tier":2}, 2151{"ancient":"南充","modern":"南充","coord":[105.97,31.56],"tier":2}, 2152{"ancient":"宜宾","modern":"宜宾","coord":[104.64,28.77],"tier":2}, 2153{"ancient":"乐山","modern":"乐山","coord":[103.77,29.55],"tier":2}, 2154{"ancient":"泸州","modern":"泸州","coord":[105.44,28.89],"tier":2}, 2155{"ancient":"抚州","modern":"抚州","coord":[116.36,27.98],"tier":2}, 2156{"ancient":"宜春","modern":"宜春","coord":[114.39,27.8],"tier":2}, 2157{"ancient":"莆田","modern":"莆田","coord":[119.01,25.43],"tier":2}, 2158{"ancient":"随州","modern":"随州","coord":[113.38,31.69],"tier":2},First 10 of 38 lines.
- 31 lines in 2 placesjavascript648 tokens
2089{"ancient":"贵阳","modern":"贵阳","coord":[106.631,26.651],"tier":2}, 2090{"ancient":"吉林","modern":"吉林","coord":[126.551,43.841],"tier":2}, 2091{"ancient":"岳阳","modern":"岳阳","coord":[113.129,29.357],"tier":2}, 2092{"ancient":"常德","modern":"常德","coord":[111.698,29.032],"tier":2}, 2093{"ancient":"衡阳","modern":"衡阳","coord":[112.572,26.894],"tier":2}, 2094{"ancient":"永州","modern":"永州","coord":[111.613,26.421],"tier":2}, 2095{"ancient":"宜昌","modern":"宜昌","coord":[111.286,30.692],"tier":2}, 2096{"ancient":"宣城","modern":"宣城","coord":[118.759,30.94],"tier":2}, 2097{"ancient":"池州","modern":"池州","coord":[117.491,30.665],"tier":2}, 2098{"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
- 306 lines in 33 placesmarkupmarkup2,023 tokenstopics/battle-changping.html:73–378topics/battle-chibi.html:73–378topics/battle-feishui.html:73–378topics/beisong.html:78–383topics/donghan.html:78–383and 28 more
73 } 74 ] 75 } 76 ] 77} 78 </script> 79 <style> 80 :root { 81 --bg-paper: #f5efe2; 82 --bg-card: #fbf7ee;First 10 of 306 lines.
- 37 lines in 18 placesmarkupmarkup507 tokenstopics/beisong.html:1375–1411topics/donghan.html:1116–1152topics/dongjin.html:1138–1174topics/ming.html:1653–1689topics/nanbei.html:1123–1159and 13 more
1375 <td><a href="https://deanchen.me/jiangshan-map/?year=1127">定格此年 →</a></td> 1376 </tr> 1377 </tbody> 1378 </table> 1379 </div> 1380</section> 1381 1382<section class="section-card"> 1383 <h2>中国十八历史时期疆域图志速查(403 BCE — 2026 CE)</h2> 1384 <div class="chip-grid">First 10 of 37 lines.
- 37 lines in 9 placesmarkupmarkup509 tokenstopics/battle-changping.html:582–618topics/battle-chibi.html:582–618topics/battle-feishui.html:582–618topics/beisong.html:1375–1411topics/dufu-763.html:458–494and 4 more
582 <td><a href="https://deanchen.me/jiangshan-map/?year=2026&place=%E9%95%BF%E5%B9%B3">查看该朝版图 →</a></td> 583 </tr> 584 </tbody> 585 </table> 586 </div> 587</section> 588 589<section class="section-card"> 590 <h2>中国十八历史时期疆域图志速查(403 BCE — 2026 CE)</h2> 591 <div class="chip-grid">First 10 of 37 lines.
- 138 lines in 2 placesjavascript2,997 tokens
- 34 lines in 6 placesmarkupmarkup496 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| javascript | 34 | 39,601 | 71 | 915 | 2.31% |
| python | 2 | 780 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| markup | 38 | 36,729 | 1,167 | 21,302 | 58% |
| javascript | 44 | 53,227 | 90 | 1,207 | 2.27% |
| css | 1 | 6,221 | 6 | 51 | 0.82% |
| markdown | 14 | 2,330 | 4 | 37 | 1.59% |
| bash | 11 | 116 | 3 | 24 | 20.69% |
| json | 16 | 2,126 | 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 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.