[{"data":1,"prerenderedAt":2738},["ShallowReactive",2],{"navigation_docs":3,"-reference-reporters-json":249,"-reference-reporters-json-surround":2731,"page-views-\u002Freference\u002Freporters\u002Fjson":2736},[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",{"id":250,"title":157,"body":251,"description":2724,"extension":2725,"links":2726,"meta":2727,"navigation":2728,"path":158,"seo":2729,"stem":159,"__hash__":2730},"docs\u002F4.reference\u002F4.reporters\u002F3.json.md",{"type":252,"value":253,"toc":2714},"minimark",[254,275,280,315,323,402,406,430,1402,1408,1688,1703,1705,1725,2257,2369,2373,2378,2399,2405,2425,2431,2438,2508,2512,2541,2545,2640,2644,2676,2680,2710],[255,256,257,261,262,265,266,270,271,274],"p",{},[258,259,260],"code",{},"-r json"," writes what a run knows: each clone with its two locations, token count, kind and source fragment, and the statistics per format and in total. Parse it with ",[258,263,264],{},"jq"," or any JSON library when you build your own check or feed another tool; when GitHub or GitLab should show the clones, the ",[267,268,269],"a",{"href":168},"SARIF"," and ",[267,272,273],{"href":173},"CodeClimate"," reporters save you the translation.",[276,277,279],"h2",{"id":278},"run-it","Run it",[281,282,288],"pre",{"className":283,"code":284,"filename":285,"language":286,"meta":287,"style":287},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","jscpd . -r json --output report\n","Terminal","bash","",[258,289,290],{"__ignoreMap":287},[291,292,295,299,303,306,309,312],"span",{"class":293,"line":294},"line",1,[291,296,298],{"class":297},"sBMFI","jscpd",[291,300,302],{"class":301},"sfazB"," .",[291,304,305],{"class":301}," -r",[291,307,308],{"class":301}," json",[291,310,311],{"class":301}," --output",[291,313,314],{"class":301}," report\n",[281,316,321],{"className":317,"code":319,"language":320,"meta":287},[318],"language-text","JSON report saved to report\u002Fjscpd-report.json\n","text",[258,322,319],{"__ignoreMap":287},[281,324,329],{"className":325,"code":326,"filename":327,"language":328,"meta":287,"style":287},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"reporters\": [\"console\", \"json\"],\n  \"output\": \"report\"\n}\n",".jscpd.json","json",[258,330,331,337,376,396],{"__ignoreMap":287},[291,332,333],{"class":293,"line":294},[291,334,336],{"class":335},"sMK4o","{\n",[291,338,340,343,347,350,353,356,358,361,363,366,369,371,373],{"class":293,"line":339},2,[291,341,342],{"class":335},"  \"",[291,344,346],{"class":345},"spNyl","reporters",[291,348,349],{"class":335},"\"",[291,351,352],{"class":335},":",[291,354,355],{"class":335}," [",[291,357,349],{"class":335},[291,359,360],{"class":301},"console",[291,362,349],{"class":335},[291,364,365],{"class":335},",",[291,367,368],{"class":335}," \"",[291,370,328],{"class":301},[291,372,349],{"class":335},[291,374,375],{"class":335},"],\n",[291,377,379,381,384,386,388,390,393],{"class":293,"line":378},3,[291,380,342],{"class":335},[291,382,383],{"class":345},"output",[291,385,349],{"class":335},[291,387,352],{"class":335},[291,389,368],{"class":335},[291,391,392],{"class":301},"report",[291,394,395],{"class":335},"\"\n",[291,397,399],{"class":293,"line":398},4,[291,400,401],{"class":335},"}\n",[276,403,405],{"id":404},"the-output","The output",[255,407,408,409,270,412,415,416,422,423,426,427,352],{},"The file has two top-level keys, ",[258,410,411],{},"duplicates",[258,413,414],{},"statistics",", and a third, ",[267,417,419],{"href":418},"#boundaries",[258,420,421],{},"boundaries",", when the config file has boundary rules. One clone of the report below, with its fragment cut short, comes from the repository's ",[258,424,425],{},"fixtures\u002Fmcp-demo"," folder scanned with ",[258,428,429],{},"--ignore-identifiers --ignore-literals --max-gap-lines 1",[281,431,434],{"className":325,"code":432,"filename":433,"language":328,"meta":287,"style":287},"{\n  \"duplicates\": [\n    {\n      \"format\": \"javascript\",\n      \"kind\": \"similar\",\n      \"method\": \"gap\",\n      \"similarity\": 0.947,\n      \"isNew\": false,\n      \"lines\": 12,\n      \"tokens\": 197,\n      \"firstFile\": {\n        \"name\": \"src\u002Finvoice.js\",\n        \"start\": 1,\n        \"end\": 12,\n        \"startLoc\": { \"line\": 1, \"column\": 0, \"position\": 0 },\n        \"endLoc\": { \"line\": 12, \"column\": 1, \"position\": 790 }\n      },\n      \"secondFile\": {\n        \"name\": \"src\u002Fprint\u002Finvoice.js\",\n        \"start\": 1,\n        \"end\": 13,\n        \"startLoc\": { \"line\": 1, \"column\": 0, \"position\": 0 },\n        \"endLoc\": { \"line\": 13, \"column\": 1, \"position\": 844 }\n      },\n      \"fragment\": \"export function renderInvoice(invoice, customer) {\\n  const lines = ...\"\n    }\n  ],\n  \"statistics\": {\n    \"detectionDate\": \"2026-10-06T14:48:00.475Z\",\n    \"formats\": {\n      \"javascript\": {\n        \"sources\": 6,\n        \"lines\": 69,\n        \"tokens\": 861,\n        \"clones\": 3,\n        \"duplicatedLines\": 34,\n        \"duplicatedTokens\": 425,\n        \"percentage\": 49.275362318840585,\n        \"percentageTokens\": 49.361207897793264,\n        \"newClones\": 0,\n        \"newDuplicatedLines\": 0\n      }\n    },\n    \"total\": {\n      \"sources\": 9,\n      \"lines\": 192,\n      \"tokens\": 1813,\n      \"clones\": 3,\n      \"duplicatedLines\": 34,\n      \"duplicatedTokens\": 425,\n      \"percentage\": 17.708333333333336,\n      \"percentageTokens\": 23.44180915609487,\n      \"newClones\": 0,\n      \"newDuplicatedLines\": 0\n    }\n  }\n}\n","report\u002Fjscpd-report.json",[258,435,436,440,453,458,480,501,522,540,555,572,589,604,626,643,659,715,767,773,787,807,822,838,887,937,942,968,974,980,993,1015,1029,1042,1059,1075,1091,1108,1125,1142,1159,1176,1192,1207,1213,1219,1233,1249,1265,1281,1296,1311,1326,1342,1358,1373,1386,1391,1397],{"__ignoreMap":287},[291,437,438],{"class":293,"line":294},[291,439,336],{"class":335},[291,441,442,444,446,448,450],{"class":293,"line":339},[291,443,342],{"class":335},[291,445,411],{"class":345},[291,447,349],{"class":335},[291,449,352],{"class":335},[291,451,452],{"class":335}," [\n",[291,454,455],{"class":293,"line":378},[291,456,457],{"class":335},"    {\n",[291,459,460,463,466,468,470,472,475,477],{"class":293,"line":398},[291,461,462],{"class":335},"      \"",[291,464,465],{"class":297},"format",[291,467,349],{"class":335},[291,469,352],{"class":335},[291,471,368],{"class":335},[291,473,474],{"class":301},"javascript",[291,476,349],{"class":335},[291,478,479],{"class":335},",\n",[291,481,483,485,488,490,492,494,497,499],{"class":293,"line":482},5,[291,484,462],{"class":335},[291,486,487],{"class":297},"kind",[291,489,349],{"class":335},[291,491,352],{"class":335},[291,493,368],{"class":335},[291,495,496],{"class":301},"similar",[291,498,349],{"class":335},[291,500,479],{"class":335},[291,502,504,506,509,511,513,515,518,520],{"class":293,"line":503},6,[291,505,462],{"class":335},[291,507,508],{"class":297},"method",[291,510,349],{"class":335},[291,512,352],{"class":335},[291,514,368],{"class":335},[291,516,517],{"class":301},"gap",[291,519,349],{"class":335},[291,521,479],{"class":335},[291,523,525,527,530,532,534,538],{"class":293,"line":524},7,[291,526,462],{"class":335},[291,528,529],{"class":297},"similarity",[291,531,349],{"class":335},[291,533,352],{"class":335},[291,535,537],{"class":536},"sbssI"," 0.947",[291,539,479],{"class":335},[291,541,543,545,548,550,552],{"class":293,"line":542},8,[291,544,462],{"class":335},[291,546,547],{"class":297},"isNew",[291,549,349],{"class":335},[291,551,352],{"class":335},[291,553,554],{"class":335}," false,\n",[291,556,558,560,563,565,567,570],{"class":293,"line":557},9,[291,559,462],{"class":335},[291,561,562],{"class":297},"lines",[291,564,349],{"class":335},[291,566,352],{"class":335},[291,568,569],{"class":536}," 12",[291,571,479],{"class":335},[291,573,575,577,580,582,584,587],{"class":293,"line":574},10,[291,576,462],{"class":335},[291,578,579],{"class":297},"tokens",[291,581,349],{"class":335},[291,583,352],{"class":335},[291,585,586],{"class":536}," 197",[291,588,479],{"class":335},[291,590,592,594,597,599,601],{"class":293,"line":591},11,[291,593,462],{"class":335},[291,595,596],{"class":297},"firstFile",[291,598,349],{"class":335},[291,600,352],{"class":335},[291,602,603],{"class":335}," {\n",[291,605,607,610,613,615,617,619,622,624],{"class":293,"line":606},12,[291,608,609],{"class":335},"        \"",[291,611,612],{"class":536},"name",[291,614,349],{"class":335},[291,616,352],{"class":335},[291,618,368],{"class":335},[291,620,621],{"class":301},"src\u002Finvoice.js",[291,623,349],{"class":335},[291,625,479],{"class":335},[291,627,629,631,634,636,638,641],{"class":293,"line":628},13,[291,630,609],{"class":335},[291,632,633],{"class":536},"start",[291,635,349],{"class":335},[291,637,352],{"class":335},[291,639,640],{"class":536}," 1",[291,642,479],{"class":335},[291,644,646,648,651,653,655,657],{"class":293,"line":645},14,[291,647,609],{"class":335},[291,649,650],{"class":536},"end",[291,652,349],{"class":335},[291,654,352],{"class":335},[291,656,569],{"class":536},[291,658,479],{"class":335},[291,660,662,664,667,669,671,674,676,679,681,683,685,687,689,692,694,696,699,701,703,706,708,710,712],{"class":293,"line":661},15,[291,663,609],{"class":335},[291,665,666],{"class":536},"startLoc",[291,668,349],{"class":335},[291,670,352],{"class":335},[291,672,673],{"class":335}," {",[291,675,368],{"class":335},[291,677,293],{"class":678},"swJcz",[291,680,349],{"class":335},[291,682,352],{"class":335},[291,684,640],{"class":536},[291,686,365],{"class":335},[291,688,368],{"class":335},[291,690,691],{"class":678},"column",[291,693,349],{"class":335},[291,695,352],{"class":335},[291,697,698],{"class":536}," 0",[291,700,365],{"class":335},[291,702,368],{"class":335},[291,704,705],{"class":678},"position",[291,707,349],{"class":335},[291,709,352],{"class":335},[291,711,698],{"class":536},[291,713,714],{"class":335}," },\n",[291,716,718,720,723,725,727,729,731,733,735,737,739,741,743,745,747,749,751,753,755,757,759,761,764],{"class":293,"line":717},16,[291,719,609],{"class":335},[291,721,722],{"class":536},"endLoc",[291,724,349],{"class":335},[291,726,352],{"class":335},[291,728,673],{"class":335},[291,730,368],{"class":335},[291,732,293],{"class":678},[291,734,349],{"class":335},[291,736,352],{"class":335},[291,738,569],{"class":536},[291,740,365],{"class":335},[291,742,368],{"class":335},[291,744,691],{"class":678},[291,746,349],{"class":335},[291,748,352],{"class":335},[291,750,640],{"class":536},[291,752,365],{"class":335},[291,754,368],{"class":335},[291,756,705],{"class":678},[291,758,349],{"class":335},[291,760,352],{"class":335},[291,762,763],{"class":536}," 790",[291,765,766],{"class":335}," }\n",[291,768,770],{"class":293,"line":769},17,[291,771,772],{"class":335},"      },\n",[291,774,776,778,781,783,785],{"class":293,"line":775},18,[291,777,462],{"class":335},[291,779,780],{"class":297},"secondFile",[291,782,349],{"class":335},[291,784,352],{"class":335},[291,786,603],{"class":335},[291,788,790,792,794,796,798,800,803,805],{"class":293,"line":789},19,[291,791,609],{"class":335},[291,793,612],{"class":536},[291,795,349],{"class":335},[291,797,352],{"class":335},[291,799,368],{"class":335},[291,801,802],{"class":301},"src\u002Fprint\u002Finvoice.js",[291,804,349],{"class":335},[291,806,479],{"class":335},[291,808,810,812,814,816,818,820],{"class":293,"line":809},20,[291,811,609],{"class":335},[291,813,633],{"class":536},[291,815,349],{"class":335},[291,817,352],{"class":335},[291,819,640],{"class":536},[291,821,479],{"class":335},[291,823,825,827,829,831,833,836],{"class":293,"line":824},21,[291,826,609],{"class":335},[291,828,650],{"class":536},[291,830,349],{"class":335},[291,832,352],{"class":335},[291,834,835],{"class":536}," 13",[291,837,479],{"class":335},[291,839,841,843,845,847,849,851,853,855,857,859,861,863,865,867,869,871,873,875,877,879,881,883,885],{"class":293,"line":840},22,[291,842,609],{"class":335},[291,844,666],{"class":536},[291,846,349],{"class":335},[291,848,352],{"class":335},[291,850,673],{"class":335},[291,852,368],{"class":335},[291,854,293],{"class":678},[291,856,349],{"class":335},[291,858,352],{"class":335},[291,860,640],{"class":536},[291,862,365],{"class":335},[291,864,368],{"class":335},[291,866,691],{"class":678},[291,868,349],{"class":335},[291,870,352],{"class":335},[291,872,698],{"class":536},[291,874,365],{"class":335},[291,876,368],{"class":335},[291,878,705],{"class":678},[291,880,349],{"class":335},[291,882,352],{"class":335},[291,884,698],{"class":536},[291,886,714],{"class":335},[291,888,890,892,894,896,898,900,902,904,906,908,910,912,914,916,918,920,922,924,926,928,930,932,935],{"class":293,"line":889},23,[291,891,609],{"class":335},[291,893,722],{"class":536},[291,895,349],{"class":335},[291,897,352],{"class":335},[291,899,673],{"class":335},[291,901,368],{"class":335},[291,903,293],{"class":678},[291,905,349],{"class":335},[291,907,352],{"class":335},[291,909,835],{"class":536},[291,911,365],{"class":335},[291,913,368],{"class":335},[291,915,691],{"class":678},[291,917,349],{"class":335},[291,919,352],{"class":335},[291,921,640],{"class":536},[291,923,365],{"class":335},[291,925,368],{"class":335},[291,927,705],{"class":678},[291,929,349],{"class":335},[291,931,352],{"class":335},[291,933,934],{"class":536}," 844",[291,936,766],{"class":335},[291,938,940],{"class":293,"line":939},24,[291,941,772],{"class":335},[291,943,945,947,950,952,954,956,959,963,966],{"class":293,"line":944},25,[291,946,462],{"class":335},[291,948,949],{"class":297},"fragment",[291,951,349],{"class":335},[291,953,352],{"class":335},[291,955,368],{"class":335},[291,957,958],{"class":301},"export function renderInvoice(invoice, customer) {",[291,960,962],{"class":961},"sTEyZ","\\n",[291,964,965],{"class":301},"  const lines = ...",[291,967,395],{"class":335},[291,969,971],{"class":293,"line":970},26,[291,972,973],{"class":335},"    }\n",[291,975,977],{"class":293,"line":976},27,[291,978,979],{"class":335},"  ],\n",[291,981,983,985,987,989,991],{"class":293,"line":982},28,[291,984,342],{"class":335},[291,986,414],{"class":345},[291,988,349],{"class":335},[291,990,352],{"class":335},[291,992,603],{"class":335},[291,994,996,999,1002,1004,1006,1008,1011,1013],{"class":293,"line":995},29,[291,997,998],{"class":335},"    \"",[291,1000,1001],{"class":297},"detectionDate",[291,1003,349],{"class":335},[291,1005,352],{"class":335},[291,1007,368],{"class":335},[291,1009,1010],{"class":301},"2026-10-06T14:48:00.475Z",[291,1012,349],{"class":335},[291,1014,479],{"class":335},[291,1016,1018,1020,1023,1025,1027],{"class":293,"line":1017},30,[291,1019,998],{"class":335},[291,1021,1022],{"class":297},"formats",[291,1024,349],{"class":335},[291,1026,352],{"class":335},[291,1028,603],{"class":335},[291,1030,1032,1034,1036,1038,1040],{"class":293,"line":1031},31,[291,1033,462],{"class":335},[291,1035,474],{"class":536},[291,1037,349],{"class":335},[291,1039,352],{"class":335},[291,1041,603],{"class":335},[291,1043,1045,1047,1050,1052,1054,1057],{"class":293,"line":1044},32,[291,1046,609],{"class":335},[291,1048,1049],{"class":678},"sources",[291,1051,349],{"class":335},[291,1053,352],{"class":335},[291,1055,1056],{"class":536}," 6",[291,1058,479],{"class":335},[291,1060,1062,1064,1066,1068,1070,1073],{"class":293,"line":1061},33,[291,1063,609],{"class":335},[291,1065,562],{"class":678},[291,1067,349],{"class":335},[291,1069,352],{"class":335},[291,1071,1072],{"class":536}," 69",[291,1074,479],{"class":335},[291,1076,1078,1080,1082,1084,1086,1089],{"class":293,"line":1077},34,[291,1079,609],{"class":335},[291,1081,579],{"class":678},[291,1083,349],{"class":335},[291,1085,352],{"class":335},[291,1087,1088],{"class":536}," 861",[291,1090,479],{"class":335},[291,1092,1094,1096,1099,1101,1103,1106],{"class":293,"line":1093},35,[291,1095,609],{"class":335},[291,1097,1098],{"class":678},"clones",[291,1100,349],{"class":335},[291,1102,352],{"class":335},[291,1104,1105],{"class":536}," 3",[291,1107,479],{"class":335},[291,1109,1111,1113,1116,1118,1120,1123],{"class":293,"line":1110},36,[291,1112,609],{"class":335},[291,1114,1115],{"class":678},"duplicatedLines",[291,1117,349],{"class":335},[291,1119,352],{"class":335},[291,1121,1122],{"class":536}," 34",[291,1124,479],{"class":335},[291,1126,1128,1130,1133,1135,1137,1140],{"class":293,"line":1127},37,[291,1129,609],{"class":335},[291,1131,1132],{"class":678},"duplicatedTokens",[291,1134,349],{"class":335},[291,1136,352],{"class":335},[291,1138,1139],{"class":536}," 425",[291,1141,479],{"class":335},[291,1143,1145,1147,1150,1152,1154,1157],{"class":293,"line":1144},38,[291,1146,609],{"class":335},[291,1148,1149],{"class":678},"percentage",[291,1151,349],{"class":335},[291,1153,352],{"class":335},[291,1155,1156],{"class":536}," 49.275362318840585",[291,1158,479],{"class":335},[291,1160,1162,1164,1167,1169,1171,1174],{"class":293,"line":1161},39,[291,1163,609],{"class":335},[291,1165,1166],{"class":678},"percentageTokens",[291,1168,349],{"class":335},[291,1170,352],{"class":335},[291,1172,1173],{"class":536}," 49.361207897793264",[291,1175,479],{"class":335},[291,1177,1179,1181,1184,1186,1188,1190],{"class":293,"line":1178},40,[291,1180,609],{"class":335},[291,1182,1183],{"class":678},"newClones",[291,1185,349],{"class":335},[291,1187,352],{"class":335},[291,1189,698],{"class":536},[291,1191,479],{"class":335},[291,1193,1195,1197,1200,1202,1204],{"class":293,"line":1194},41,[291,1196,609],{"class":335},[291,1198,1199],{"class":678},"newDuplicatedLines",[291,1201,349],{"class":335},[291,1203,352],{"class":335},[291,1205,1206],{"class":536}," 0\n",[291,1208,1210],{"class":293,"line":1209},42,[291,1211,1212],{"class":335},"      }\n",[291,1214,1216],{"class":293,"line":1215},43,[291,1217,1218],{"class":335},"    },\n",[291,1220,1222,1224,1227,1229,1231],{"class":293,"line":1221},44,[291,1223,998],{"class":335},[291,1225,1226],{"class":297},"total",[291,1228,349],{"class":335},[291,1230,352],{"class":335},[291,1232,603],{"class":335},[291,1234,1236,1238,1240,1242,1244,1247],{"class":293,"line":1235},45,[291,1237,462],{"class":335},[291,1239,1049],{"class":536},[291,1241,349],{"class":335},[291,1243,352],{"class":335},[291,1245,1246],{"class":536}," 9",[291,1248,479],{"class":335},[291,1250,1252,1254,1256,1258,1260,1263],{"class":293,"line":1251},46,[291,1253,462],{"class":335},[291,1255,562],{"class":536},[291,1257,349],{"class":335},[291,1259,352],{"class":335},[291,1261,1262],{"class":536}," 192",[291,1264,479],{"class":335},[291,1266,1268,1270,1272,1274,1276,1279],{"class":293,"line":1267},47,[291,1269,462],{"class":335},[291,1271,579],{"class":536},[291,1273,349],{"class":335},[291,1275,352],{"class":335},[291,1277,1278],{"class":536}," 1813",[291,1280,479],{"class":335},[291,1282,1284,1286,1288,1290,1292,1294],{"class":293,"line":1283},48,[291,1285,462],{"class":335},[291,1287,1098],{"class":536},[291,1289,349],{"class":335},[291,1291,352],{"class":335},[291,1293,1105],{"class":536},[291,1295,479],{"class":335},[291,1297,1299,1301,1303,1305,1307,1309],{"class":293,"line":1298},49,[291,1300,462],{"class":335},[291,1302,1115],{"class":536},[291,1304,349],{"class":335},[291,1306,352],{"class":335},[291,1308,1122],{"class":536},[291,1310,479],{"class":335},[291,1312,1314,1316,1318,1320,1322,1324],{"class":293,"line":1313},50,[291,1315,462],{"class":335},[291,1317,1132],{"class":536},[291,1319,349],{"class":335},[291,1321,352],{"class":335},[291,1323,1139],{"class":536},[291,1325,479],{"class":335},[291,1327,1329,1331,1333,1335,1337,1340],{"class":293,"line":1328},51,[291,1330,462],{"class":335},[291,1332,1149],{"class":536},[291,1334,349],{"class":335},[291,1336,352],{"class":335},[291,1338,1339],{"class":536}," 17.708333333333336",[291,1341,479],{"class":335},[291,1343,1345,1347,1349,1351,1353,1356],{"class":293,"line":1344},52,[291,1346,462],{"class":335},[291,1348,1166],{"class":536},[291,1350,349],{"class":335},[291,1352,352],{"class":335},[291,1354,1355],{"class":536}," 23.44180915609487",[291,1357,479],{"class":335},[291,1359,1361,1363,1365,1367,1369,1371],{"class":293,"line":1360},53,[291,1362,462],{"class":335},[291,1364,1183],{"class":536},[291,1366,349],{"class":335},[291,1368,352],{"class":335},[291,1370,698],{"class":536},[291,1372,479],{"class":335},[291,1374,1376,1378,1380,1382,1384],{"class":293,"line":1375},54,[291,1377,462],{"class":335},[291,1379,1199],{"class":536},[291,1381,349],{"class":335},[291,1383,352],{"class":335},[291,1385,1206],{"class":536},[291,1387,1389],{"class":293,"line":1388},55,[291,1390,973],{"class":335},[291,1392,1394],{"class":293,"line":1393},56,[291,1395,1396],{"class":335},"  }\n",[291,1398,1400],{"class":293,"line":1399},57,[291,1401,401],{"class":335},[255,1403,1404,1405,1407],{},"jscpd writes the keys in alphabetical order; they are grouped here for reading, and ",[258,1406,1022],{}," has one entry per format in the scan.",[1409,1410,1411,1424],"table",{},[1412,1413,1414],"thead",{},[1415,1416,1417,1421],"tr",{},[1418,1419,1420],"th",{},"Key",[1418,1422,1423],{},"Meaning",[1425,1426,1427,1441,1466,1491,1516,1539,1550,1609,1618,1651,1661,1675],"tbody",{},[1415,1428,1429,1434],{},[1430,1431,1432],"td",{},[258,1433,465],{},[1430,1435,1436,1437,1440],{},"The format of both fragments, named as ",[258,1438,1439],{},"jscpd --list"," names it",[1415,1442,1443,1447],{},[1430,1444,1445],{},[258,1446,487],{},[1430,1448,1449,1452,1453,1452,1456,1458,1459,1462,1463,1465],{},[258,1450,1451],{},"exact",", ",[258,1454,1455],{},"renamed",[258,1457,496],{}," or ",[258,1460,1461],{},"semantic"," (5.2.0+; ",[258,1464,1461],{}," 5.3.3+)",[1415,1467,1468,1472],{},[1430,1469,1470],{},[258,1471,508],{},[1430,1473,1474,1475,1477,1478,1480,1481,1452,1484,1480,1487,1490],{},"Which mechanism found a ",[258,1476,496],{}," clone: ",[258,1479,517],{}," for ",[258,1482,1483],{},"--max-gap-lines",[258,1485,1486],{},"ast",[258,1488,1489],{},"--similarity","; absent for the other kinds (5.2.0+)",[1415,1492,1493,1497],{},[1430,1494,1495],{},[258,1496,529],{},[1430,1498,1499,1500,1502,1503,1505,1506,1508,1509,1511,1512,270,1514],{},"For ",[258,1501,517],{},", the matched tokens over the merged span; for ",[258,1504,1486],{},", the Jaccard index of the two functions' subtree fingerprints, see ",[267,1507,95],{"href":96},"; for ",[258,1510,1461],{},", the cosine similarity of the embeddings; absent for ",[258,1513,1451],{},[258,1515,1455],{},[1415,1517,1518,1522],{},[1430,1519,1520],{},[258,1521,547],{},[1430,1523,1524,1527,1528,1458,1531,1534,1535,1538],{},[258,1525,1526],{},"true"," when the clone's fingerprint is missing from ",[258,1529,1530],{},"--baseline",[258,1532,1533],{},"--baseline-from-ref","; ",[258,1536,1537],{},"false"," in a run without a baseline (5.1.0+)",[1415,1540,1541,1547],{},[1430,1542,1543,1452,1545],{},[258,1544,562],{},[258,1546,579],{},[1430,1548,1549],{},"The line span of the first fragment and the number of matched tokens",[1415,1551,1552,1558],{},[1430,1553,1554,1452,1556],{},[258,1555,596],{},[258,1557,780],{},[1430,1559,1560,1562,1563,1566,1567,270,1569,1571,1572,1574,1575,1577,1578,1580,1581,1583,1584,1586,1587,1590,1591,1594,1595,270,1598,1601,1602,1604,1605,1608],{},[258,1561,612],{}," relative to the scanned directory (",[258,1564,1565],{},"path:format"," for a block embedded in a Markdown, Vue, Svelte or Astro file), the ",[258,1568,633],{},[258,1570,650],{}," lines, and ",[258,1573,666],{},"\u002F",[258,1576,722],{}," with a 1-based ",[258,1579,293],{},", a 0-based ",[258,1582,691],{}," and the byte ",[258,1585,705],{},"; with ",[258,1588,1589],{},"--blame",", a ",[258,1592,1593],{},"blame"," object with ",[258,1596,1597],{},"commitSha",[258,1599,1600],{},"author","; for an ",[258,1603,1486],{}," pair also ",[258,1606,1607],{},"nodes",", the size of the function's normalized syntax tree",[1415,1610,1611,1615],{},[1430,1612,1613],{},[258,1614,949],{},[1430,1616,1617],{},"The source of the first fragment",[1415,1619,1620,1628],{},[1430,1621,1622,1452,1625],{},[258,1623,1624],{},"statistics.total",[258,1626,1627],{},"statistics.formats.\u003Cformat>",[1430,1629,1630,1452,1632,1452,1634,1452,1636,1452,1638,1452,1640,1452,1642,1644,1645,1452,1647,1452,1649],{},[258,1631,1049],{},[258,1633,562],{},[258,1635,579],{},[258,1637,1098],{},[258,1639,1115],{},[258,1641,1132],{},[258,1643,1149],{}," (by lines), ",[258,1646,1166],{},[258,1648,1183],{},[258,1650,1199],{},[1415,1652,1653,1658],{},[1430,1654,1655],{},[258,1656,1657],{},"statistics.detectionDate",[1430,1659,1660],{},"When the run finished, in ISO 8601",[1415,1662,1663,1668],{},[1430,1664,1665],{},[258,1666,1667],{},"summary",[1430,1669,1670,1671,1674],{},"Present only with ",[258,1672,1673],{},"--summary"," (5.0.16+)",[1415,1676,1677,1682],{},[1430,1678,1679],{},[258,1680,1681],{},"history",[1430,1683,1670,1684,1687],{},[258,1685,1686],{},"--history"," (5.2.1+)",[255,1689,1690,1691,1694,1695,1698,1699,1702],{},"The language server (",[258,1692,1693],{},"--lsp",") answers its ",[258,1696,1697],{},"jscpd\u002Fclones"," request with the same clone entries, so an ",[267,1700,1701],{"href":66},"editor integration"," and a script read one shape.",[276,1704,100],{"id":421},[255,1706,1707,1708,1711,1712,1714,1715,1717,1718,1721,1722,352],{},"A config file with ",[267,1709,1710],{"href":101},"boundary rules"," adds the ",[258,1713,421],{}," key: one entry per rule, in the order of the file, with the rule's ",[258,1716,612],{}," and its ",[258,1719,1720],{},"violations",", an empty array when the rule found no copy. One violation from ",[258,1723,1724],{},"fixtures\u002Fboundaries-demo",[281,1726,1728],{"className":325,"code":1727,"filename":433,"language":328,"meta":287,"style":287},"{\n  \"boundaries\": [\n    {\n      \"name\": \"money\",\n      \"violations\": [\n        {\n          \"kind\": \"similar\",\n          \"method\": \"ast\",\n          \"similarity\": 0.841,\n          \"lines\": 10,\n          \"tokens\": 68,\n          \"copy\": {\n            \"name\": \"web\u002Fsrc\u002Fcheckout\u002Ftax.ts\",\n            \"start\": 6,\n            \"end\": 15,\n            \"startLoc\": { \"line\": 6, \"column\": 7, \"position\": 200 },\n            \"endLoc\": { \"line\": 15, \"column\": 1, \"position\": 513 },\n            \"function\": \"estimateTax\"\n          },\n          \"protected\": {\n            \"name\": \"backend\u002Fpricing\u002Ftax.ts\",\n            \"start\": 5,\n            \"end\": 13,\n            \"startLoc\": { \"line\": 5, \"column\": 7, \"position\": 174 },\n            \"endLoc\": { \"line\": 13, \"column\": 1, \"position\": 449 },\n            \"function\": \"salesTax\"\n          }\n        }\n      ]\n    }\n  ]\n}\n",[258,1729,1730,1734,1746,1750,1769,1781,1786,1805,1823,1838,1853,1868,1881,1901,1915,1930,1981,2030,2048,2053,2066,2085,2100,2114,2163,2212,2229,2234,2239,2244,2248,2253],{"__ignoreMap":287},[291,1731,1732],{"class":293,"line":294},[291,1733,336],{"class":335},[291,1735,1736,1738,1740,1742,1744],{"class":293,"line":339},[291,1737,342],{"class":335},[291,1739,421],{"class":345},[291,1741,349],{"class":335},[291,1743,352],{"class":335},[291,1745,452],{"class":335},[291,1747,1748],{"class":293,"line":378},[291,1749,457],{"class":335},[291,1751,1752,1754,1756,1758,1760,1762,1765,1767],{"class":293,"line":398},[291,1753,462],{"class":335},[291,1755,612],{"class":297},[291,1757,349],{"class":335},[291,1759,352],{"class":335},[291,1761,368],{"class":335},[291,1763,1764],{"class":301},"money",[291,1766,349],{"class":335},[291,1768,479],{"class":335},[291,1770,1771,1773,1775,1777,1779],{"class":293,"line":482},[291,1772,462],{"class":335},[291,1774,1720],{"class":297},[291,1776,349],{"class":335},[291,1778,352],{"class":335},[291,1780,452],{"class":335},[291,1782,1783],{"class":293,"line":503},[291,1784,1785],{"class":335},"        {\n",[291,1787,1788,1791,1793,1795,1797,1799,1801,1803],{"class":293,"line":524},[291,1789,1790],{"class":335},"          \"",[291,1792,487],{"class":536},[291,1794,349],{"class":335},[291,1796,352],{"class":335},[291,1798,368],{"class":335},[291,1800,496],{"class":301},[291,1802,349],{"class":335},[291,1804,479],{"class":335},[291,1806,1807,1809,1811,1813,1815,1817,1819,1821],{"class":293,"line":542},[291,1808,1790],{"class":335},[291,1810,508],{"class":536},[291,1812,349],{"class":335},[291,1814,352],{"class":335},[291,1816,368],{"class":335},[291,1818,1486],{"class":301},[291,1820,349],{"class":335},[291,1822,479],{"class":335},[291,1824,1825,1827,1829,1831,1833,1836],{"class":293,"line":557},[291,1826,1790],{"class":335},[291,1828,529],{"class":536},[291,1830,349],{"class":335},[291,1832,352],{"class":335},[291,1834,1835],{"class":536}," 0.841",[291,1837,479],{"class":335},[291,1839,1840,1842,1844,1846,1848,1851],{"class":293,"line":574},[291,1841,1790],{"class":335},[291,1843,562],{"class":536},[291,1845,349],{"class":335},[291,1847,352],{"class":335},[291,1849,1850],{"class":536}," 10",[291,1852,479],{"class":335},[291,1854,1855,1857,1859,1861,1863,1866],{"class":293,"line":591},[291,1856,1790],{"class":335},[291,1858,579],{"class":536},[291,1860,349],{"class":335},[291,1862,352],{"class":335},[291,1864,1865],{"class":536}," 68",[291,1867,479],{"class":335},[291,1869,1870,1872,1875,1877,1879],{"class":293,"line":606},[291,1871,1790],{"class":335},[291,1873,1874],{"class":536},"copy",[291,1876,349],{"class":335},[291,1878,352],{"class":335},[291,1880,603],{"class":335},[291,1882,1883,1886,1888,1890,1892,1894,1897,1899],{"class":293,"line":628},[291,1884,1885],{"class":335},"            \"",[291,1887,612],{"class":678},[291,1889,349],{"class":335},[291,1891,352],{"class":335},[291,1893,368],{"class":335},[291,1895,1896],{"class":301},"web\u002Fsrc\u002Fcheckout\u002Ftax.ts",[291,1898,349],{"class":335},[291,1900,479],{"class":335},[291,1902,1903,1905,1907,1909,1911,1913],{"class":293,"line":645},[291,1904,1885],{"class":335},[291,1906,633],{"class":678},[291,1908,349],{"class":335},[291,1910,352],{"class":335},[291,1912,1056],{"class":536},[291,1914,479],{"class":335},[291,1916,1917,1919,1921,1923,1925,1928],{"class":293,"line":661},[291,1918,1885],{"class":335},[291,1920,650],{"class":678},[291,1922,349],{"class":335},[291,1924,352],{"class":335},[291,1926,1927],{"class":536}," 15",[291,1929,479],{"class":335},[291,1931,1932,1934,1936,1938,1940,1942,1944,1947,1949,1951,1953,1955,1957,1959,1961,1963,1966,1968,1970,1972,1974,1976,1979],{"class":293,"line":717},[291,1933,1885],{"class":335},[291,1935,666],{"class":678},[291,1937,349],{"class":335},[291,1939,352],{"class":335},[291,1941,673],{"class":335},[291,1943,368],{"class":335},[291,1945,293],{"class":1946},"su27w",[291,1948,349],{"class":335},[291,1950,352],{"class":335},[291,1952,1056],{"class":536},[291,1954,365],{"class":335},[291,1956,368],{"class":335},[291,1958,691],{"class":1946},[291,1960,349],{"class":335},[291,1962,352],{"class":335},[291,1964,1965],{"class":536}," 7",[291,1967,365],{"class":335},[291,1969,368],{"class":335},[291,1971,705],{"class":1946},[291,1973,349],{"class":335},[291,1975,352],{"class":335},[291,1977,1978],{"class":536}," 200",[291,1980,714],{"class":335},[291,1982,1983,1985,1987,1989,1991,1993,1995,1997,1999,2001,2003,2005,2007,2009,2011,2013,2015,2017,2019,2021,2023,2025,2028],{"class":293,"line":769},[291,1984,1885],{"class":335},[291,1986,722],{"class":678},[291,1988,349],{"class":335},[291,1990,352],{"class":335},[291,1992,673],{"class":335},[291,1994,368],{"class":335},[291,1996,293],{"class":1946},[291,1998,349],{"class":335},[291,2000,352],{"class":335},[291,2002,1927],{"class":536},[291,2004,365],{"class":335},[291,2006,368],{"class":335},[291,2008,691],{"class":1946},[291,2010,349],{"class":335},[291,2012,352],{"class":335},[291,2014,640],{"class":536},[291,2016,365],{"class":335},[291,2018,368],{"class":335},[291,2020,705],{"class":1946},[291,2022,349],{"class":335},[291,2024,352],{"class":335},[291,2026,2027],{"class":536}," 513",[291,2029,714],{"class":335},[291,2031,2032,2034,2037,2039,2041,2043,2046],{"class":293,"line":775},[291,2033,1885],{"class":335},[291,2035,2036],{"class":678},"function",[291,2038,349],{"class":335},[291,2040,352],{"class":335},[291,2042,368],{"class":335},[291,2044,2045],{"class":301},"estimateTax",[291,2047,395],{"class":335},[291,2049,2050],{"class":293,"line":789},[291,2051,2052],{"class":335},"          },\n",[291,2054,2055,2057,2060,2062,2064],{"class":293,"line":809},[291,2056,1790],{"class":335},[291,2058,2059],{"class":536},"protected",[291,2061,349],{"class":335},[291,2063,352],{"class":335},[291,2065,603],{"class":335},[291,2067,2068,2070,2072,2074,2076,2078,2081,2083],{"class":293,"line":824},[291,2069,1885],{"class":335},[291,2071,612],{"class":678},[291,2073,349],{"class":335},[291,2075,352],{"class":335},[291,2077,368],{"class":335},[291,2079,2080],{"class":301},"backend\u002Fpricing\u002Ftax.ts",[291,2082,349],{"class":335},[291,2084,479],{"class":335},[291,2086,2087,2089,2091,2093,2095,2098],{"class":293,"line":840},[291,2088,1885],{"class":335},[291,2090,633],{"class":678},[291,2092,349],{"class":335},[291,2094,352],{"class":335},[291,2096,2097],{"class":536}," 5",[291,2099,479],{"class":335},[291,2101,2102,2104,2106,2108,2110,2112],{"class":293,"line":889},[291,2103,1885],{"class":335},[291,2105,650],{"class":678},[291,2107,349],{"class":335},[291,2109,352],{"class":335},[291,2111,835],{"class":536},[291,2113,479],{"class":335},[291,2115,2116,2118,2120,2122,2124,2126,2128,2130,2132,2134,2136,2138,2140,2142,2144,2146,2148,2150,2152,2154,2156,2158,2161],{"class":293,"line":939},[291,2117,1885],{"class":335},[291,2119,666],{"class":678},[291,2121,349],{"class":335},[291,2123,352],{"class":335},[291,2125,673],{"class":335},[291,2127,368],{"class":335},[291,2129,293],{"class":1946},[291,2131,349],{"class":335},[291,2133,352],{"class":335},[291,2135,2097],{"class":536},[291,2137,365],{"class":335},[291,2139,368],{"class":335},[291,2141,691],{"class":1946},[291,2143,349],{"class":335},[291,2145,352],{"class":335},[291,2147,1965],{"class":536},[291,2149,365],{"class":335},[291,2151,368],{"class":335},[291,2153,705],{"class":1946},[291,2155,349],{"class":335},[291,2157,352],{"class":335},[291,2159,2160],{"class":536}," 174",[291,2162,714],{"class":335},[291,2164,2165,2167,2169,2171,2173,2175,2177,2179,2181,2183,2185,2187,2189,2191,2193,2195,2197,2199,2201,2203,2205,2207,2210],{"class":293,"line":944},[291,2166,1885],{"class":335},[291,2168,722],{"class":678},[291,2170,349],{"class":335},[291,2172,352],{"class":335},[291,2174,673],{"class":335},[291,2176,368],{"class":335},[291,2178,293],{"class":1946},[291,2180,349],{"class":335},[291,2182,352],{"class":335},[291,2184,835],{"class":536},[291,2186,365],{"class":335},[291,2188,368],{"class":335},[291,2190,691],{"class":1946},[291,2192,349],{"class":335},[291,2194,352],{"class":335},[291,2196,640],{"class":536},[291,2198,365],{"class":335},[291,2200,368],{"class":335},[291,2202,705],{"class":1946},[291,2204,349],{"class":335},[291,2206,352],{"class":335},[291,2208,2209],{"class":536}," 449",[291,2211,714],{"class":335},[291,2213,2214,2216,2218,2220,2222,2224,2227],{"class":293,"line":970},[291,2215,1885],{"class":335},[291,2217,2036],{"class":678},[291,2219,349],{"class":335},[291,2221,352],{"class":335},[291,2223,368],{"class":335},[291,2225,2226],{"class":301},"salesTax",[291,2228,395],{"class":335},[291,2230,2231],{"class":293,"line":976},[291,2232,2233],{"class":335},"          }\n",[291,2235,2236],{"class":293,"line":982},[291,2237,2238],{"class":335},"        }\n",[291,2240,2241],{"class":293,"line":995},[291,2242,2243],{"class":335},"      ]\n",[291,2245,2246],{"class":293,"line":1017},[291,2247,973],{"class":335},[291,2249,2250],{"class":293,"line":1031},[291,2251,2252],{"class":335},"  ]\n",[291,2254,2255],{"class":293,"line":1044},[291,2256,401],{"class":335},[1409,2258,2259,2267],{},[1412,2260,2261],{},[1415,2262,2263,2265],{},[1418,2264,1420],{},[1418,2266,1423],{},[1425,2268,2269,2286,2302,2320,2329,2341],{},[1415,2270,2271,2275],{},[1430,2272,2273],{},[258,2274,487],{},[1430,2276,2277,1452,2279,1452,2281,1458,2283,2285],{},[258,2278,1451],{},[258,2280,1455],{},[258,2282,496],{},[258,2284,1461],{},", as for a clone",[1415,2287,2288,2292],{},[1430,2289,2290],{},[258,2291,508],{},[1430,2293,2294,1458,2296,2298,2299,2301],{},[258,2295,517],{},[258,2297,1486],{}," for a ",[258,2300,496],{}," copy; absent for the other kinds",[1415,2303,2304,2308],{},[1430,2305,2306],{},[258,2307,529],{},[1430,2309,2310,2311,1458,2313,2315,2316,270,2318],{},"The score of a ",[258,2312,496],{},[258,2314,1461],{}," copy, as for a clone; absent for ",[258,2317,1451],{},[258,2319,1455],{},[1415,2321,2322,2326],{},[1430,2323,2324],{},[258,2325,562],{},[1430,2327,2328],{},"The line span of the copy",[1415,2330,2331,2335],{},[1430,2332,2333],{},[258,2334,579],{},[1430,2336,2337,2338,2340],{},"The matched tokens, as for a clone; for a ",[258,2339,1461],{}," copy, the tokens of the smaller of the two functions",[1415,2342,2343,2349],{},[1430,2344,2345,1452,2347],{},[258,2346,1874],{},[258,2348,2059],{},[1430,2350,2351,2352,1452,2354,1452,2356,1452,2358,270,2360,2362,2363,2365,2366,2368],{},"The copy and the protected code it copies, each with ",[258,2353,612],{},[258,2355,633],{},[258,2357,650],{},[258,2359,666],{},[258,2361,722],{}," as in ",[258,2364,596],{},", and ",[258,2367,2036],{},", the function the side lies in, when it has a name",[276,2370,2372],{"id":2371},"where-it-shows-up","Where it shows up",[255,2374,2375,2377],{},[258,2376,264],{}," gets at the numbers directly. The duplication of the run, then the clones that are new against a baseline:",[281,2379,2381],{"className":283,"code":2380,"filename":285,"language":286,"meta":287,"style":287},"jq '.statistics.total.percentage' report\u002Fjscpd-report.json\n",[258,2382,2383],{"__ignoreMap":287},[291,2384,2385,2387,2390,2393,2396],{"class":293,"line":294},[291,2386,264],{"class":297},[291,2388,2389],{"class":335}," '",[291,2391,2392],{"class":301},".statistics.total.percentage",[291,2394,2395],{"class":335},"'",[291,2397,2398],{"class":301}," report\u002Fjscpd-report.json\n",[281,2400,2403],{"className":2401,"code":2402,"language":320,"meta":287},[318],"17.708333333333336\n",[258,2404,2402],{"__ignoreMap":287},[281,2406,2408],{"className":283,"code":2407,"filename":285,"language":286,"meta":287,"style":287},"jq -r '.duplicates[] | select(.isNew) | \"\\(.firstFile.name):\\(.firstFile.start) ~ \\(.secondFile.name):\\(.secondFile.start) (\\(.kind))\"' report\u002Fjscpd-report.json\n",[258,2409,2410],{"__ignoreMap":287},[291,2411,2412,2414,2416,2418,2421,2423],{"class":293,"line":294},[291,2413,264],{"class":297},[291,2415,305],{"class":301},[291,2417,2389],{"class":335},[291,2419,2420],{"class":301},".duplicates[] | select(.isNew) | \"\\(.firstFile.name):\\(.firstFile.start) ~ \\(.secondFile.name):\\(.secondFile.start) (\\(.kind))\"",[291,2422,2395],{"class":335},[291,2424,2398],{"class":301},[281,2426,2429],{"className":2427,"code":2428,"language":320,"meta":287},[318],"src\u002Finvoice.js:1 ~ src\u002Fprint\u002Finvoice.js:1 (similar)\nsrc\u002Freturns.js:1 ~ src\u002Fshipping.js:1 (renamed)\n",[258,2430,2428],{"__ignoreMap":287},[255,2432,2433,2434,2437],{},"In GitHub Actions, keep the file as an artifact; ",[258,2435,2436],{},"if: always()"," keeps it when a gate fails the step:",[281,2439,2444],{"className":2440,"code":2441,"filename":2442,"language":2443,"meta":287,"style":287},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","- run: jscpd . -r console,json --output report --threshold 5\n- uses: actions\u002Fupload-artifact@v4\n  if: always()\n  with:\n    name: jscpd-report\n    path: report\u002Fjscpd-report.json\n",".github\u002Fworkflows\u002Fjscpd.yml","yaml",[258,2445,2446,2459,2471,2481,2489,2499],{"__ignoreMap":287},[291,2447,2448,2451,2454,2456],{"class":293,"line":294},[291,2449,2450],{"class":335},"-",[291,2452,2453],{"class":678}," run",[291,2455,352],{"class":335},[291,2457,2458],{"class":301}," jscpd . -r console,json --output report --threshold 5\n",[291,2460,2461,2463,2466,2468],{"class":293,"line":339},[291,2462,2450],{"class":335},[291,2464,2465],{"class":678}," uses",[291,2467,352],{"class":335},[291,2469,2470],{"class":301}," actions\u002Fupload-artifact@v4\n",[291,2472,2473,2476,2478],{"class":293,"line":378},[291,2474,2475],{"class":678},"  if",[291,2477,352],{"class":335},[291,2479,2480],{"class":301}," always()\n",[291,2482,2483,2486],{"class":293,"line":398},[291,2484,2485],{"class":678},"  with",[291,2487,2488],{"class":335},":\n",[291,2490,2491,2494,2496],{"class":293,"line":482},[291,2492,2493],{"class":678},"    name",[291,2495,352],{"class":335},[291,2497,2498],{"class":301}," jscpd-report\n",[291,2500,2501,2504,2506],{"class":293,"line":503},[291,2502,2503],{"class":678},"    path",[291,2505,352],{"class":335},[291,2507,2398],{"class":301},[276,2509,2511],{"id":2510},"with-gates","With gates",[255,2513,2514,2517,2518,2521,2522,2525,2526,2528,2529,270,2531,1534,2533,2536,2537,2540],{},[258,2515,2516],{},"--threshold"," leaves the file as it is: jscpd writes the report, then compares ",[258,2519,2520],{},"statistics.total.percentage"," with the threshold and exits 1 when it is above. A ",[267,2523,2524],{"href":46},"baseline"," marks each clone with ",[258,2527,547],{}," and counts them in ",[258,2530,1183],{},[258,2532,1199],{},[258,2534,2535],{},"--fail-on-new-clones"," turns that count into the exit code. ",[258,2538,2539],{},"--kind"," keeps only the kinds you name, in the clones and in the statistics.",[276,2542,2544],{"id":2543},"options","Options",[1409,2546,2547,2557],{},[1412,2548,2549],{},[1415,2550,2551,2554],{},[1418,2552,2553],{},"Flag",[1418,2555,2556],{},"Effect on the file",[1425,2558,2559,2575,2594,2611,2627],{},[1415,2560,2561,2569],{},[1430,2562,2563,1452,2566],{},[258,2564,2565],{},"-o",[258,2567,2568],{},"--output",[1430,2570,2571,2572],{},"The directory of ",[258,2573,2574],{},"jscpd-report.json",[1415,2576,2577,2584],{},[1430,2578,2579,1452,2582],{},[258,2580,2581],{},"-b",[258,2583,1589],{},[1430,2585,2586,2587,2589,2590,270,2592],{},"Adds ",[258,2588,1593],{}," to ",[258,2591,596],{},[258,2593,780],{},[1415,2595,2596,2602],{},[1430,2597,2598,1452,2600],{},[258,2599,1530],{},[258,2601,1533],{},[1430,2603,2604,2605,1452,2607,270,2609],{},"Sets ",[258,2606,547],{},[258,2608,1183],{},[258,2610,1199],{},[1415,2612,2613,2619],{},[1430,2614,2615,1452,2617],{},[258,2616,1673],{},[258,2618,1686],{},[1430,2620,2621,2622,270,2624,2626],{},"Add the ",[258,2623,1667],{},[258,2625,1681],{}," keys",[1415,2628,2629,2637],{},[1430,2630,2631,1452,2634],{},[258,2632,2633],{},"-a",[258,2635,2636],{},"--absolute",[1430,2638,2639],{},"Absolute paths in reports",[276,2641,2643],{"id":2642},"other-modes","Other modes",[255,2645,2646,2649,2650,2653,2654,2656,2657,2649,2660,1452,2663,2649,2666,270,2669,2649,2672,2675],{},[258,2647,2648],{},"--compare"," writes ",[258,2651,2652],{},"jscpd-compare.json"," (",[267,2655,85],{"href":86}," documents it), ",[258,2658,2659],{},"--dashboard",[258,2661,2662],{},"jscpd-dashboard.json",[258,2664,2665],{},"--health",[258,2667,2668],{},"jscpd-health.json",[258,2670,2671],{},"--complexity",[258,2673,2674],{},"jscpd-complexity.json",", each with a shape of its own.",[276,2677,2679],{"id":2678},"related","Related",[2681,2682,2683,2697,2705],"ul",{},[2684,2685,2686,2689,2690,1452,2692,270,2694,2696],"li",{},[267,2687,2688],{"href":111},"Clone types"," for what ",[258,2691,487],{},[258,2693,508],{},[258,2695,529],{}," mean.",[2684,2698,2699,1480,2702,2704],{},[267,2700,2701],{"href":46},"Baseline",[258,2703,547],{},".",[2684,2706,2707,2709],{},[267,2708,145],{"href":146}," for the other formats.",[2711,2712,2713],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .su27w, html code.shiki .su27w{--shiki-light:#916B53;--shiki-default:#916B53;--shiki-dark:#916B53}",{"title":287,"searchDepth":339,"depth":339,"links":2715},[2716,2717,2718,2719,2720,2721,2722,2723],{"id":278,"depth":339,"text":279},{"id":404,"depth":339,"text":405},{"id":421,"depth":339,"text":100},{"id":2371,"depth":339,"text":2372},{"id":2510,"depth":339,"text":2511},{"id":2543,"depth":339,"text":2544},{"id":2642,"depth":339,"text":2643},{"id":2678,"depth":339,"text":2679},"Every clone with its locations, kind and source, plus the statistics per format, in one file for scripts and pipelines.","md",null,{},{"icon":160},{"title":157,"description":2724},"LdXyL2N4eQlQ0LASHHHgJ26YiuiW8uPzg45F8AEuK_0",[2732,2734],{"title":152,"path":153,"stem":154,"description":2733,"icon":155,"children":-1},"One self-contained page with the statistics per format and the code of every clone, for reading a report in a browser.",{"title":162,"path":163,"stem":164,"description":2735,"icon":165,"children":-1},"Two SVG badges with the duplication and the duplicated lines of a run, for a README.",{"\u002Freference\u002Freporters\u002Fjson":2737},{"views":1393,"visits":1077},1795510272856]