[{"data":1,"prerenderedAt":661},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-byoungd\u002Fup":249,"page-views-\u002Ftrending\u002Fbyoungd\u002Fup":659},[4,29,104,124,194],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Start",false,"\u002Fstart","1.start",[10,14,19,24],{"title":11,"path":7,"stem":12,"icon":13},"What jscpd finds","1.start\u002Findex","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fstart\u002Finstallation","1.start\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quickstart","\u002Fstart\u002Fquickstart","1.start\u002F3.quickstart","i-lucide-rocket",{"title":25,"path":26,"stem":27,"icon":28},"Configuration basics","\u002Fstart\u002Fconfiguration","1.start\u002F4.configuration","i-lucide-settings-2",{"title":30,"icon":6,"path":31,"stem":32,"children":33,"page":6},"Guides","\u002Fguides","2.guides",[34,39,44,49,54,59,64,69,74,79,84,89,94,99],{"title":35,"path":36,"stem":37,"icon":38},"Use jscpd in CI","\u002Fguides\u002Fci","2.guides\u002F01.ci","i-lucide-github",{"title":40,"path":41,"stem":42,"icon":43},"Pre-commit hooks","\u002Fguides\u002Fpre-commit","2.guides\u002F02.pre-commit","i-lucide-git-commit",{"title":45,"path":46,"stem":47,"icon":48},"Fail only on new duplication","\u002Fguides\u002Fbaseline","2.guides\u002F03.baseline","i-lucide-git-compare",{"title":50,"path":51,"stem":52,"icon":53},"Monorepos","\u002Fguides\u002Fmonorepos","2.guides\u002F04.monorepos","i-lucide-folder-tree",{"title":55,"path":56,"stem":57,"icon":58},"Cross-format detection","\u002Fguides\u002Fcross-format","2.guides\u002F05.cross-format","i-lucide-layers",{"title":60,"path":61,"stem":62,"icon":63},"Agents","\u002Fguides\u002Fagents","2.guides\u002F06.agents","i-lucide-cpu",{"title":65,"path":66,"stem":67,"icon":68},"Editors","\u002Fguides\u002Feditors","2.guides\u002F07.editors","i-lucide-code",{"title":70,"path":71,"stem":72,"icon":73},"Duplication over git history","\u002Fguides\u002Fhistory","2.guides\u002F08.history","i-lucide-chart-no-axes-combined",{"title":75,"path":76,"stem":77,"icon":78},"Dashboard and health score","\u002Fguides\u002Fdashboard","2.guides\u002F09.dashboard","i-lucide-layout-dashboard",{"title":80,"path":81,"stem":82,"icon":83},"Dead code","\u002Fguides\u002Fdead-code","2.guides\u002F10.dead-code","i-lucide-ghost",{"title":85,"path":86,"stem":87,"icon":88},"Comparing two codebases","\u002Fguides\u002Fcompare","2.guides\u002F11.compare","i-lucide-git-compare-arrows",{"title":90,"path":91,"stem":92,"icon":93},"Semantic clones","\u002Fguides\u002Fsemantic-clones","2.guides\u002F12.semantic-clones","i-lucide-brain-circuit",{"title":95,"path":96,"stem":97,"icon":98},"Similar functions","\u002Fguides\u002Fsimilarity","2.guides\u002F13.similarity","i-lucide-list-tree",{"title":100,"path":101,"stem":102,"icon":103},"Boundaries","\u002Fguides\u002Fboundaries","2.guides\u002F14.boundaries","i-lucide-fence",{"title":105,"icon":6,"path":106,"stem":107,"children":108,"page":6},"Concepts","\u002Fconcepts","3.concepts",[109,114,119],{"title":110,"path":111,"stem":112,"icon":113},"Types of code clones","\u002Fconcepts\u002Fclone-types","3.concepts\u002F1.clone-types","i-lucide-copy",{"title":115,"path":116,"stem":117,"icon":118},"How detection works","\u002Fconcepts\u002Fhow-detection-works","3.concepts\u002F2.how-detection-works","i-lucide-scan-search",{"title":120,"path":121,"stem":122,"icon":123},"The health score","\u002Fconcepts\u002Fhealth-score","3.concepts\u002F3.health-score","i-lucide-heart-pulse",{"title":125,"icon":6,"path":126,"stem":127,"children":128,"page":6},"Reference","\u002Freference","4.reference",[129,134,139,144,181,186,190],{"title":130,"path":131,"stem":132,"icon":133},"CLI options","\u002Freference\u002Fcli","4.reference\u002F1.cli","i-lucide-terminal",{"title":135,"path":136,"stem":137,"icon":138},"The config file","\u002Freference\u002Fconfig-file","4.reference\u002F2.config-file","i-lucide-settings",{"title":140,"path":141,"stem":142,"icon":143},"Exit codes","\u002Freference\u002Fexit-codes","4.reference\u002F3.exit-codes","i-lucide-log-out",{"title":145,"icon":6,"path":146,"stem":147,"children":148},"Reporters","\u002Freference\u002Freporters","4.reference\u002F4.reporters\u002Findex",[149,151,156,161,166,171,176],{"title":145,"path":146,"stem":147,"icon":150},"i-lucide-file-chart-column",{"title":152,"path":153,"stem":154,"icon":155},"HTML reporter","\u002Freference\u002Freporters\u002Fhtml","4.reference\u002F4.reporters\u002F2.html","i-lucide-file-code",{"title":157,"path":158,"stem":159,"icon":160},"JSON reporter","\u002Freference\u002Freporters\u002Fjson","4.reference\u002F4.reporters\u002F3.json","i-lucide-braces",{"title":162,"path":163,"stem":164,"icon":165},"Badge reporter","\u002Freference\u002Freporters\u002Fbadge","4.reference\u002F4.reporters\u002F4.badge","i-lucide-award",{"title":167,"path":168,"stem":169,"icon":170},"SARIF reporter","\u002Freference\u002Freporters\u002Fsarif","4.reference\u002F4.reporters\u002F5.sarif","i-lucide-shield-check",{"title":172,"path":173,"stem":174,"icon":175},"CodeClimate reporter","\u002Freference\u002Freporters\u002Fcodeclimate","4.reference\u002F4.reporters\u002F6.codeclimate","i-lucide-flag-triangle-right",{"title":177,"path":178,"stem":179,"icon":180},"OpenMetrics reporter","\u002Freference\u002Freporters\u002Fopenmetrics","4.reference\u002F4.reporters\u002F7.openmetrics","i-lucide-activity",{"title":182,"path":183,"stem":184,"icon":185},"Supported formats","\u002Freference\u002Fsupported-formats","4.reference\u002F5.supported-formats","i-lucide-languages",{"title":187,"path":188,"stem":189,"icon":38},"GitHub Action","\u002Freference\u002Fgithub-action","4.reference\u002F6.github-action",{"title":191,"path":192,"stem":193,"icon":68},"Rust crates","\u002Freference\u002Frust-crates","4.reference\u002F7.rust-crates",{"title":195,"icon":6,"path":196,"stem":197,"children":198,"page":6},"Project","\u002Fproject","5.project",[199,204,209,214,239,244],{"title":200,"path":201,"stem":202,"icon":203},"Changelog","\u002Fproject\u002Fchangelog","5.project\u002F1.changelog","i-lucide-scroll-text",{"title":205,"path":206,"stem":207,"icon":208},"Migrating from v4 to v5","\u002Fproject\u002Fmigration","5.project\u002F2.migration","i-lucide-arrow-right-left",{"title":210,"path":211,"stem":212,"icon":213},"jscpd v4 (TypeScript)","\u002Fproject\u002Fv4","5.project\u002F3.v4","i-simple-icons-typescript",{"title":215,"icon":6,"path":216,"stem":217,"children":218},"Benchmarks","\u002Fproject\u002Fbenchmarks","5.project\u002F4.benchmarks\u002Findex",[219,221,226,230,235],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-gauge",{"title":222,"path":223,"stem":224,"icon":225},"Detection Speed","\u002Fproject\u002Fbenchmarks\u002Fdetection-speed","5.project\u002F4.benchmarks\u002F2.detection-speed","i-lucide-zap",{"title":227,"path":228,"stem":229,"icon":58},"Multi-Format Detection","\u002Fproject\u002Fbenchmarks\u002Fcross-format","5.project\u002F4.benchmarks\u002F3.cross-format",{"title":231,"path":232,"stem":233,"icon":234},"AI Token Efficiency","\u002Fproject\u002Fbenchmarks\u002Fai-token-efficiency","5.project\u002F4.benchmarks\u002F4.ai-token-efficiency","i-lucide-sparkles",{"title":236,"path":237,"stem":238,"icon":93},"Embedding Models","\u002Fproject\u002Fbenchmarks\u002Fembedding-models","5.project\u002F4.benchmarks\u002F5.embedding-models",{"title":240,"path":241,"stem":242,"icon":243},"Research","\u002Fproject\u002Fresearch","5.project\u002F5.research","i-lucide-graduation-cap",{"title":245,"path":246,"stem":247,"icon":248},"Articles","\u002Fproject\u002Farticles","5.project\u002F6.articles","i-lucide-newspaper",{"name":250,"url":251,"appearances":252,"latest":273},"byoungd\u002Fup","https:\u002F\u002Fgithub.com\u002Fbyoungd\u002Fup",[253,268],{"date":254,"rank":255,"stars":256,"starsToday":257,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":265,"healthScore":266,"healthGrade":267},"2026-09-29",5,64946,327,"7478ac2b740cba5d423ebf61143f14442b278725",277,32994,55,1201,3.64,0.91,23,67.6,"C",{"date":269,"rank":270,"stars":271,"starsToday":272,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":265,"healthScore":266,"healthGrade":267},"2026-10-01",7,66488,743,{"date":269,"generatedAt":274,"name":250,"url":251,"description":275,"language":276,"stars":271,"starsToday":272,"defaultBranch":277,"headSha":258,"durationMs":278,"total":279,"formats":283,"topClones":339,"health":477,"complexity":511,"deadCode":562,"code":583,"measuredAt":657,"jscpdVersion":658},"2026-10-01T05:31:24.085Z","An advanced guide which might benefit you a lot 🎉 . 韩先凯的人生进阶指南 人生进阶指南 离谱的人生 人生进阶 AI学习 AI指南 韩先凯的AI学习指南 英语学习指南\u002F英语学习教程\u002F英语学习\u002F学英语","JavaScript","master",80,{"sources":259,"lines":260,"tokens":280,"clones":261,"duplicatedLines":262,"duplicatedTokens":281,"percentage":263,"percentageTokens":282},306572,9447,3.08,[284,291,298,305,312,318,324,328,332,336],{"format":285,"sources":286,"lines":287,"clones":288,"duplicatedLines":289,"percentage":290},"markdown",173,24021,21,616,2.56,{"format":292,"sources":293,"lines":294,"clones":295,"duplicatedLines":296,"percentage":297},"javascript",13,4341,18,154,3.55,{"format":299,"sources":300,"lines":301,"clones":302,"duplicatedLines":303,"percentage":304},"markup",12,486,11,287,59.05,{"format":306,"sources":307,"lines":308,"clones":309,"duplicatedLines":310,"percentage":311},"text",17,176,3,43,24.43,{"format":313,"sources":314,"lines":315,"clones":316,"duplicatedLines":300,"percentage":317},"yaml",37,581,1,2.07,{"format":319,"sources":320,"lines":321,"clones":316,"duplicatedLines":322,"percentage":323},"txt",2,187,89,47.59,{"format":325,"sources":320,"lines":326,"clones":327,"duplicatedLines":327,"percentage":327},"python",1061,0,{"format":329,"sources":330,"lines":331,"clones":327,"duplicatedLines":327,"percentage":327},"bash",9,644,{"format":333,"sources":334,"lines":335,"clones":327,"duplicatedLines":327,"percentage":327},"typescript",4,597,{"format":337,"sources":316,"lines":338,"clones":327,"duplicatedLines":327,"percentage":327},"css",383,[340,365,385,403,410,417,442,452,460,467],{"format":319,"lines":322,"tokens":341,"first":342,"others":345,"copies":320,"excerpt":349,"excerptSecond":358,"kind":364},885,{"name":343,"start":255,"end":344},"book-assets\u002Ffonts\u002FOFL-NotoSans.txt",93,[346],{"name":347,"start":270,"end":348},"book-assets\u002Ffonts\u002FOFL-NotoSerifSC.txt",94,{"lines":350,"total":322},[351,352,352,353,354,353,352,355,356,357],"https:\u002F\u002Fscripts.sil.org\u002FOFL","","-----------------------------------------------------------","SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007","PREAMBLE","The goals of the Open Font License (OFL) are to stimulate worldwide","development of collaborative font projects, to support the font creation",{"lines":359,"total":363},[360,352,353,354,353,352,355,356,361,362],"http:\u002F\u002Fscripts.sil.org\u002FOFL","development of collaborative font projects, to support the font","creation efforts of academic and linguistic communities, and to",88,"docs",{"format":299,"lines":366,"tokens":367,"first":368,"others":370,"copies":320,"excerpt":373,"kind":364},54,845,{"name":369,"start":316,"end":366},"docs\u002Fassets\u002Ffeature-en.svg",[371],{"name":372,"start":316,"end":366},"docs\u002Fpublic\u002Fassets\u002Ffeature-en.svg",{"lines":374,"total":366},[375,376,377,378,379,380,381,382,383,384],"\u003Csvg width=\"1200\" height=\"630\" viewBox=\"0 0 1200 630\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" role=\"img\" aria-labelledby=\"title description\">","  \u003Ctitle id=\"title\">Life Level-up Guide book sharing cover\u003C\u002Ftitle>","  \u003Cdesc id=\"description\">By Han Xiankai. Five rising stages represent input, life, tools, practice, and action.\u003C\u002Fdesc>","  \u003Crect width=\"1200\" height=\"630\" fill=\"#f5f7f3\"\u002F>","  \u003Crect width=\"14\" height=\"630\" fill=\"#176f5b\"\u002F>","  \u003Cpath d=\"M58 94H650M58 570H650\" stroke=\"#cfd7d1\" stroke-width=\"1\"\u002F>","  \u003Cg fill=\"none\" stroke=\"#dfe5e0\" stroke-width=\"1\">","    \u003Cpath d=\"M720 70V570\"\u002F>","    \u003Cpath d=\"M1190 70V570\"\u002F>","    \u003Cpath d=\"M720 570H1190\"\u002F>",{"format":299,"lines":386,"tokens":387,"first":388,"others":390,"copies":320,"excerpt":393,"kind":364},53,814,{"name":389,"start":316,"end":386},"docs\u002Fassets\u002Fcover-portrait-en.svg",[391],{"name":392,"start":316,"end":386},"docs\u002Fpublic\u002Fassets\u002Fcover-portrait-en.svg",{"lines":394,"total":386},[395,396,377,397,398,399,352,400,401,402],"\u003Csvg width=\"1600\" height=\"2560\" viewBox=\"0 0 1600 2560\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" role=\"img\" aria-labelledby=\"title description\">","  \u003Ctitle id=\"title\">Life Level-up Guide English ebook cover\u003C\u002Ftitle>","  \u003Crect width=\"1600\" height=\"2560\" fill=\"#f5f7f3\"\u002F>","  \u003Crect width=\"30\" height=\"2560\" fill=\"#176f5b\"\u002F>","  \u003Cpath d=\"M110 210H1490M110 2290H1490\" stroke=\"#cfd7d1\" stroke-width=\"2\"\u002F>","  \u003Cg font-family=\"system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\">","    \u003Ctext x=\"120\" y=\"170\" fill=\"#176f5b\" font-size=\"38\" font-weight=\"700\">A LIFELONG LEARNING GUIDE FOR THE AI ERA\u003C\u002Ftext>","    \u003Ctext x=\"112\" y=\"500\" fill=\"#1d2926\" font-size=\"158\" font-weight=\"800\">LIFE LEVEL-UP\u003C\u002Ftext>",{"format":299,"lines":386,"tokens":404,"first":405,"others":407,"copies":320,"kind":364},784,{"name":406,"start":316,"end":386},"docs\u002Fassets\u002Ffeature.svg",[408],{"name":409,"start":316,"end":386},"docs\u002Fpublic\u002Fassets\u002Ffeature.svg",{"format":299,"lines":386,"tokens":411,"first":412,"others":414,"copies":320,"kind":364},773,{"name":413,"start":316,"end":386},"docs\u002Fassets\u002Fcover-portrait.svg",[415],{"name":416,"start":316,"end":386},"docs\u002Fpublic\u002Fassets\u002Fcover-portrait.svg",{"format":292,"lines":418,"tokens":419,"first":420,"others":424,"copies":440,"kind":441},10,109,{"name":421,"start":422,"end":423},"tests\u002Fsite.spec.mjs",264,273,[425,428,431,434,437],{"name":421,"start":426,"end":427},291,300,{"name":421,"start":429,"end":430},319,328,{"name":421,"start":432,"end":433},348,357,{"name":421,"start":435,"end":436},378,387,{"name":421,"start":438,"end":439},461,470,6,"tests",{"format":285,"lines":443,"tokens":444,"first":445,"others":449,"copies":320,"kind":364},35,316,{"name":446,"start":447,"end":448},"README.md:markdown",111,145,[450],{"name":451,"start":447,"end":448},"docs\u002FREADME.md:markdown",{"format":285,"lines":453,"tokens":454,"first":455,"others":458,"copies":320,"kind":364},27,274,{"name":446,"start":456,"end":457},22,48,[459],{"name":451,"start":456,"end":457},{"format":285,"lines":461,"tokens":462,"first":463,"others":465,"copies":320,"kind":364},14,237,{"name":446,"start":464,"end":321},174,[466],{"name":451,"start":464,"end":321},{"format":299,"lines":468,"tokens":469,"first":470,"others":473,"copies":320,"kind":364},15,226,{"name":369,"start":471,"end":472},25,39,[474],{"name":406,"start":475,"end":476},24,38,{"score":266,"grade":267,"size":478,"dimensions":482},{"lines":479,"files":480,"class":481},6897,29,"S",[483,495,504],{"id":484,"source":485,"value":486,"adjusted":487,"lines":296,"halfLife":488,"formats":489,"excluded":492,"weight":316,"score":494},"duplication","jscpd",2.2,2.5,8.5,[292,325,329,333,490,491],"perl","vue",[299,306,493],"data",81.4,{"id":496,"source":485,"value":497,"adjusted":498,"lines":499,"halfLife":500,"coverage":501,"weight":502,"score":503},"dead-code",0.7,1.3,40,7.5,87.5,0.875,88.9,{"id":505,"source":485,"value":506,"adjusted":507,"lines":508,"halfLife":509,"weight":316,"score":510},"complexity",70.1,59.1,4837,50,44.1,{"total":512,"mean":513,"files":514},1116,38.5,[515,519,524,529,534,539,544,549,553,558],{"path":421,"complexity":516,"lines":517,"bytes":518},241,2318,125841,{"path":520,"complexity":521,"lines":522,"bytes":523},"scripts\u002Fbuild-pdf.py",195,946,37739,{"path":525,"complexity":526,"lines":527,"bytes":528},"scripts\u002Fcheck-content.mjs",171,526,19261,{"path":530,"complexity":531,"lines":532,"bytes":533},"scripts\u002Fbuild-epub.mjs",124,573,24002,{"path":535,"complexity":536,"lines":537,"bytes":538},"docs\u002F.vitepress\u002Fconfig.mts",104,474,19493,{"path":540,"complexity":541,"lines":542,"bytes":543},"scripts\u002Fsync-navigation.mjs",33,105,3442,{"path":545,"complexity":546,"lines":547,"bytes":548},"scripts\u002Fsync-public-assets.mjs",28,113,3860,{"path":550,"complexity":265,"lines":551,"bytes":552},"scripts\u002Fsubset-pdf-fonts.py",115,4028,{"path":554,"complexity":555,"lines":556,"bytes":557},".git\u002Fhooks\u002Ffsmonitor-watchman.sample",19,168,4611,{"path":559,"complexity":555,"lines":560,"bytes":561},"docs\u002F.vitepress\u002Fnavigation.mjs",292,13632,{"percentage":563,"findings":440,"files":555,"byCategory":564,"largest":569},0.66,[565,567],{"category":566,"count":316},"unused-file",{"category":568,"count":255},"unused-import",[570,572,575,577,579,581],{"category":566,"path":571,"name":352,"line":316,"lines":475},".markdownlint-cli2.mjs",{"category":568,"path":520,"name":573,"line":574,"lines":300},"KeepTogether",36,{"category":568,"path":530,"name":576,"line":293,"lines":316},"statSync",{"category":568,"path":530,"name":578,"line":295,"lines":316},"basename",{"category":568,"path":520,"name":580,"line":330,"lines":316},"os",{"category":568,"path":520,"name":582,"line":295,"lines":316},"PurePosixPath",{"sources":265,"lines":584,"tokens":585,"clones":334,"duplicatedLines":541,"duplicatedTokens":586,"percentage":264,"percentageTokens":587,"formats":588,"topClones":595,"generated":655},3610,22561,266,1.18,[589,592,593,594],{"format":292,"sources":302,"lines":590,"clones":334,"duplicatedLines":541,"percentage":591},1731,1.91,{"format":325,"sources":320,"lines":326,"clones":327,"duplicatedLines":327,"percentage":327},{"format":329,"sources":330,"lines":331,"clones":327,"duplicatedLines":327,"percentage":327},{"format":490,"sources":316,"lines":464,"clones":327,"duplicatedLines":327,"percentage":327},[596,619,629,647],{"format":292,"lines":597,"tokens":598,"first":599,"others":601,"copies":320,"excerpt":605,"excerptSecond":614,"kind":618},8,72,{"name":525,"start":600,"end":303},280,[602],{"name":525,"start":603,"end":604},342,350,{"lines":606,"total":597},[607,608,609,610,611,612,610,613],"function checkBilingualParity(markdownFiles) {","  const publicFiles = markdownFiles.filter(","    (file) => file.startsWith(`${DOCS}\u002F`) && !file.endsWith(\"SUMMARY.md\"),","  );","  const chineseFiles = publicFiles.filter(","    (file) => !file.startsWith(`${join(DOCS, \"en\")}\u002F`) && file !== join(DOCS, \"README.md\"),","  const englishFiles = publicFiles.filter(",{"lines":615,"total":330},[616,608,609,610,611,612,610,352,617],"function checkUpdatedParity(markdownFiles) {","  const pairs = [[join(DOCS, \"README.md\"), join(DOCS, \"en\u002FREADME.md\")]];","code",{"format":292,"lines":270,"tokens":620,"first":621,"others":623,"copies":320,"excerpt":627,"kind":618},71,{"name":525,"start":600,"end":622},286,[624],{"name":525,"start":625,"end":626},318,324,{"lines":628,"total":270},[607,608,609,610,611,612,610],{"format":292,"lines":270,"tokens":630,"first":631,"others":634,"copies":320,"excerpt":638,"kind":618},64,{"name":525,"start":632,"end":633},57,63,[635],{"name":636,"start":471,"end":637},"scripts\u002Fsanitize-assets.mjs",31,{"lines":639,"total":270},[640,641,642,643,644,645,646],"    const path = join(dir, name);","    const stat = statSync(path);","    if (stat.isDirectory()) walk(path, extensions, output);","    else if (extensions.has(extname(name).toLowerCase())) output.push(path);","  }","  return output;","}",{"format":292,"lines":302,"tokens":648,"first":649,"others":652,"copies":320,"kind":618},59,{"name":525,"start":650,"end":651},403,413,[653],{"name":654,"start":300,"end":456},"scripts\u002Fsync-readme.mjs",{"files":327,"minified":327,"sample":656},[],"2026-10-07T06:32:09.567Z","5.4.0",{"\u002Ftrending\u002Fbyoungd\u002Fup":660},{"views":597,"visits":255},1795510256107]