[{"data":1,"prerenderedAt":449},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-kelseyhightower\u002Fkubernetes-the-hard-way":249,"page-views-\u002Ftrending\u002Fkelseyhightower\u002Fkubernetes-the-hard-way":447},[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":268},"kelseyhightower\u002Fkubernetes-the-hard-way","https:\u002F\u002Fgithub.com\u002Fkelseyhightower\u002Fkubernetes-the-hard-way",[253],{"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-26",6,50152,119,"52eb26dad1a3e9e8083a899bc854421eb4842a73",44,3109,3,18,0.58,null,10,81.8,"B",{"date":254,"generatedAt":269,"name":250,"url":251,"description":270,"language":264,"stars":256,"starsToday":257,"defaultBranch":271,"headSha":258,"durationMs":272,"total":273,"formats":277,"topClones":308,"health":368,"complexity":391,"deadCode":264,"code":434,"measuredAt":445,"jscpdVersion":446},"2026-09-26T05:27:46.278Z","Bootstrap Kubernetes the hard way. No scripts.","master",21,{"sources":259,"lines":260,"tokens":274,"clones":261,"duplicatedLines":262,"duplicatedTokens":275,"percentage":263,"percentageTokens":276},20275,168,0.83,[278,285,291,296,299,302,305],{"format":279,"sources":280,"lines":281,"clones":282,"duplicatedLines":283,"percentage":284},"bash",19,1083,2,14,1.29,{"format":286,"sources":287,"lines":288,"clones":289,"duplicatedLines":287,"percentage":290},"text",4,109,1,3.67,{"format":292,"sources":293,"lines":294,"clones":295,"duplicatedLines":295,"percentage":295},"markdown",15,1650,0,{"format":297,"sources":289,"lines":298,"clones":295,"duplicatedLines":295,"percentage":295},"perl",174,{"format":300,"sources":282,"lines":301,"clones":295,"duplicatedLines":295,"percentage":295},"yaml",58,{"format":303,"sources":282,"lines":304,"clones":295,"duplicatedLines":295,"percentage":295},"txt",22,{"format":306,"sources":289,"lines":307,"clones":295,"duplicatedLines":295,"percentage":295},"toml",13,[309,333,352],{"format":279,"lines":272,"tokens":310,"first":311,"others":315,"copies":282,"excerpt":319,"excerptSecond":328,"kind":332},57,{"name":312,"start":313,"end":314},"docs\u002F05-kubernetes-configuration-files.md:bash",72,92,[316],{"name":312,"start":317,"end":318},106,127,{"lines":320,"total":272},[321,322,323,324,325,324,326,327,323,324],"    --kubeconfig=kube-proxy.kubeconfig","}","```","","Results:","```text","kube-proxy.kubeconfig",{"lines":329,"total":304},[330,322,323,324,325,324,326,331,323,324],"    --kubeconfig=kube-controller-manager.kubeconfig","kube-controller-manager.kubeconfig","docs",{"format":286,"lines":334,"tokens":310,"first":335,"others":339,"copies":282,"excerpt":341,"excerptSecond":348,"kind":332},11,{"name":336,"start":337,"end":338},"docs\u002F11-pod-network-routes.md:text",52,62,[340],{"name":336,"start":338,"end":313},{"lines":342,"total":334},[343,344,345,323,324,346,347,323,324,326],"10.200.0.0\u002F24 via XXX.XXX.XXX.XXX dev ens160","10.200.1.0\u002F24 via XXX.XXX.XXX.XXX dev ens160","XXX.XXX.XXX.0\u002F24 dev ens160 proto kernel scope link src XXX.XXX.XXX.XXX","```bash","ssh root@node-0 ip route",{"lines":349,"total":334},[350,344,345,323,324,346,351,323,324,326],"default via XXX.XXX.XXX.XXX dev ens160","ssh root@node-1 ip route",{"format":279,"lines":255,"tokens":353,"first":354,"others":356,"copies":282,"excerpt":359,"excerptSecond":366,"kind":332},54,{"name":312,"start":355,"end":301},53,[357],{"name":312,"start":358,"end":314},87,{"lines":360,"total":255},[361,362,363,364,365,321],"{","  kubectl config set-cluster kubernetes-the-hard-way \\","    --certificate-authority=ca.crt \\","    --embed-certs=true \\","    --server=https:\u002F\u002Fserver.kubernetes.local:6443 \\",{"lines":367,"total":255},[361,362,363,364,365,330],{"score":266,"grade":267,"size":369,"dimensions":372,"skipped":387},{"lines":370,"files":265,"class":371},862,"XS",[373,382],{"id":374,"source":375,"value":295,"adjusted":376,"lines":295,"halfLife":377,"formats":378,"excluded":379,"weight":289,"score":381},"duplication","jscpd",2.4,8.5,[279,297],[286,380],"data",81.9,{"id":383,"source":375,"value":295,"adjusted":384,"lines":295,"halfLife":385,"weight":289,"score":386},"complexity",14.6,50,81.7,[388],{"id":389,"reason":390},"dead-code","no JavaScript, TypeScript, Python or compiler-checked Rust files",{"total":392,"mean":393,"files":394},84,8.4,[395,398,402,406,410,414,419,422,426,430],{"path":396,"complexity":280,"lines":275,"bytes":397},".git\u002Fhooks\u002Ffsmonitor-watchman.sample",4611,{"path":399,"complexity":283,"lines":400,"bytes":401},".git\u002Fhooks\u002Fpre-rebase.sample",169,4898,{"path":403,"complexity":283,"lines":404,"bytes":405},".git\u002Fhooks\u002Fsendemail-validate.sample",77,2308,{"path":407,"complexity":307,"lines":408,"bytes":409},".git\u002Fhooks\u002Fupdate.sample",128,3650,{"path":411,"complexity":255,"lines":412,"bytes":413},".git\u002Fhooks\u002Fpush-to-checkout.sample",78,2783,{"path":415,"complexity":416,"lines":417,"bytes":418},".git\u002Fhooks\u002Fpre-commit.sample",5,49,1649,{"path":420,"complexity":416,"lines":355,"bytes":421},".git\u002Fhooks\u002Fpre-push.sample",1374,{"path":423,"complexity":287,"lines":424,"bytes":425},".git\u002Fhooks\u002Fpre-receive.sample",24,544,{"path":427,"complexity":261,"lines":428,"bytes":429},".git\u002Fhooks\u002Fcommit-msg.sample",74,1972,{"path":431,"complexity":289,"lines":432,"bytes":433},".git\u002Fhooks\u002Fprepare-commit-msg.sample",42,1492,{"sources":265,"lines":435,"tokens":436,"clones":295,"duplicatedLines":295,"duplicatedTokens":295,"percentage":295,"percentageTokens":295,"formats":437,"topClones":442,"generated":443},818,3040,[438,441],{"format":279,"sources":439,"lines":440,"clones":295,"duplicatedLines":295,"percentage":295},9,644,{"format":297,"sources":289,"lines":298,"clones":295,"duplicatedLines":295,"percentage":295},[],{"files":295,"minified":295,"sample":444},[],"2026-10-07T06:26:18.034Z","5.4.0",{"\u002Ftrending\u002Fkelseyhightower\u002Fkubernetes-the-hard-way":448},{"views":289,"visits":289},1795510259780]