[{"data":1,"prerenderedAt":952},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-headroomlabs-ai\u002Fheadroom":249,"page-views-\u002Ftrending\u002Fheadroomlabs-ai\u002Fheadroom":950},[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":288},"headroomlabs-ai\u002Fheadroom","https:\u002F\u002Fgithub.com\u002Fheadroomlabs-ai\u002Fheadroom",[253,268,279],{"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-10-20",3,76359,310,"fbf7bc3278c11975299b9bd0a2ecf200dfd25a05",2476,805989,2922,39058,4.85,2.78,830,65.2,"C",{"date":269,"rank":270,"stars":271,"starsToday":272,"headSha":273,"sources":274,"lines":275,"clones":276,"duplicatedLines":277,"percentage":263,"codePercentage":264,"codeSources":278,"healthScore":266,"healthGrade":267},"2026-10-21",4,76857,549,"4c7acba5937115b32ae51b67208251878e201b7a",2475,807580,2929,39136,820,{"date":280,"rank":281,"stars":282,"starsToday":283,"headSha":284,"sources":285,"lines":286,"clones":276,"duplicatedLines":277,"percentage":287,"codePercentage":264,"codeSources":278,"healthScore":266,"healthGrade":267},"2026-10-22",2,77360,474,"e995eb9f1dacac7ed548758406de6c1508caef95",2483,808308,4.84,{"date":280,"generatedAt":289,"name":250,"url":251,"description":290,"language":291,"stars":282,"starsToday":283,"defaultBranch":292,"headSha":284,"durationMs":293,"total":294,"formats":297,"topClones":366,"code":657,"health":820,"complexity":854,"deadCode":905},"2026-10-22T05:29:30.811Z","Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.","Python","main",4894,{"sources":285,"lines":286,"tokens":295,"clones":276,"duplicatedLines":277,"duplicatedTokens":296,"percentage":287,"percentageTokens":287},4452971,215505,[298,305,312,319,326,333,340,347,353,360],{"format":299,"sources":300,"lines":301,"clones":302,"duplicatedLines":303,"percentage":304},"python",1683,622725,1909,25486,4.09,{"format":306,"sources":307,"lines":308,"clones":309,"duplicatedLines":310,"percentage":311},"rust",216,89993,593,6913,7.68,{"format":313,"sources":314,"lines":315,"clones":316,"duplicatedLines":317,"percentage":318},"json",212,11270,128,2732,24.24,{"format":320,"sources":321,"lines":322,"clones":323,"duplicatedLines":324,"percentage":325},"javascript",7,14779,126,1991,13.47,{"format":327,"sources":328,"lines":329,"clones":330,"duplicatedLines":331,"percentage":332},"typescript",95,18998,98,1095,5.76,{"format":334,"sources":335,"lines":336,"clones":337,"duplicatedLines":338,"percentage":339},"yaml",39,5561,26,290,5.21,{"format":341,"sources":342,"lines":343,"clones":344,"duplicatedLines":345,"percentage":346},"markdown",100,27415,18,208,0.76,{"format":348,"sources":321,"lines":349,"clones":350,"duplicatedLines":351,"percentage":352},"powershell",2062,8,88,4.27,{"format":354,"sources":355,"lines":356,"clones":357,"duplicatedLines":358,"percentage":359},"text",22,913,6,20,2.19,{"format":361,"sources":321,"lines":362,"clones":363,"duplicatedLines":364,"percentage":365},"markup",4399,5,62,1.41,[367,403,453,495,506,527,549,572,603,631],{"format":313,"lines":344,"tokens":368,"first":369,"others":372,"copies":389,"excerpt":390,"kind":402},63,{"name":370,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F07dd1a61089c1e53.json",1,[373,375,377,379,381,383,385,387],{"name":374,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F095be1adad76b588.json",{"name":376,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F1e319c5e33af4af1.json",{"name":378,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F2c239d4af41282c2.json",{"name":380,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F2d214f401618d639.json",{"name":382,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F36e5ff5093790e6f.json",{"name":384,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F3e706cfb03aa3c8e.json",{"name":386,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F411d5549bcd5f50d.json",{"name":388,"start":371,"end":344},"tests\u002Fparity\u002Ffixtures\u002Fcode_aware_compressor\u002F420dd19a087526ca.json",24,{"lines":391,"total":344},[392,393,394,395,396,397,398,399,400,401],"{","  \"config\": {","    \"ccr_ttl\": 300,","    \"compress_comments\": true,","    \"docstring_mode\": \"first_line\",","    \"enable_ccr\": false,","    \"fallback_to_kompress\": false,","    \"language_hint\": null,","    \"max_body_lines\": 5,","    \"min_tokens_for_compression\": 100,","tests",{"format":320,"lines":404,"tokens":405,"first":406,"others":410,"copies":435,"excerpt":436,"excerptSecond":448,"kind":452},10,51,{"name":407,"start":408,"end":409},"headroom\u002Fproviders\u002Fopencode\u002F_dist\u002Findex.js",4057,4066,[411,414,417,420,423,426,429,432],{"name":407,"start":412,"end":413},4333,4342,{"name":407,"start":415,"end":416},4575,4584,{"name":407,"start":418,"end":419},4843,4852,{"name":407,"start":421,"end":422},5345,5354,{"name":407,"start":424,"end":425},5591,5600,{"name":407,"start":427,"end":428},5944,5953,{"name":407,"start":430,"end":431},6297,6306,{"name":407,"start":433,"end":434},6415,6424,23,{"lines":437,"total":404},[438,439,440,441,442,443,444,445,446,447],"  set: { unit: \"\\u0639\\u0646\\u0635\\u0631\", verb: \"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A\" }","};","function getSizing(origin) {","  return Sizable[origin] ?? null;","}","const parsedType7 = (data) => {","  const t = typeof data;","  switch (t) {","    case \"number\": {","      return Number.isNaN(data) ? \"NaN\" : \"number\";",{"lines":449,"total":404},[450,439,440,441,442,443,444,445,446,451],"  }","      return Number.isNaN(data) ? \"NaN\" : \"\\u043B\\u0456\\u043A\";","code",{"format":320,"lines":454,"tokens":405,"first":455,"others":458,"copies":435,"excerpt":483,"kind":452},14,{"name":407,"start":456,"end":457},4201,4214,[459,462,465,468,471,474,477,480],{"name":407,"start":460,"end":461},4482,4495,{"name":407,"start":463,"end":464},4620,4633,{"name":407,"start":466,"end":467},4751,4764,{"name":407,"start":469,"end":470},5252,5265,{"name":407,"start":472,"end":473},5618,5631,{"name":407,"start":475,"end":476},5735,5748,{"name":407,"start":478,"end":479},5971,5984,{"name":407,"start":481,"end":482},6089,6102,{"lines":484,"total":454},[485,486,487,488,489,490,491,492,493,494],"email: \"email address\",","url: \"URL\",","emoji: \"emoji\",","uuid: \"UUID\",","uuidv4: \"UUIDv4\",","uuidv6: \"UUIDv6\",","nanoid: \"nanoid\",","guid: \"GUID\",","cuid: \"cuid\",","cuid2: \"cuid2\",",{"format":320,"lines":496,"tokens":497,"first":498,"others":501,"copies":281,"kind":452},166,1111,{"name":407,"start":499,"end":500},12757,12922,[502],{"name":503,"start":504,"end":505},"headroom\u002Fproviders\u002Fopencode\u002Fhook-shim\u002Fhandler.js",266,431,{"format":313,"lines":355,"tokens":507,"first":508,"others":510,"copies":358,"kind":402},58,{"name":509,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F0225460359a992d9.json",[511,513,515,517,519,521,523,525],{"name":512,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F231ab237501e106b.json",{"name":514,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F25683f67cbb74ece.json",{"name":516,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F31eb80356eeeb30d.json",{"name":518,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F336311b995b063d5.json",{"name":520,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F475e76a9f99c29ab.json",{"name":522,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F4b171a7f9af6e2d5.json",{"name":524,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F541daf83f5a1fda9.json",{"name":526,"start":371,"end":355},"tests\u002Fparity\u002Ffixtures\u002Fcache_aligner\u002F6502f683439de052.json",{"format":313,"lines":528,"tokens":529,"first":530,"others":532,"copies":358,"kind":402},16,55,{"name":531,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F012c7bbeb96d95e9.json",[533,535,537,539,541,543,545,547],{"name":534,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F1fbaf88e12686704.json",{"name":536,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F23112ae8ae41ba59.json",{"name":538,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F305987ea77c385e6.json",{"name":540,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F349121068ecbb26e.json",{"name":542,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F3bc015edc0a36387.json",{"name":544,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F3bf3f8bd70c80dad.json",{"name":546,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F5533a8264a04dd61.json",{"name":548,"start":371,"end":528},"tests\u002Fparity\u002Ffixtures\u002Flog_compressor\u002F566491aacda8af92.json",{"format":313,"lines":550,"tokens":551,"first":552,"others":554,"copies":571,"kind":402},21,74,{"name":553,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fdict_array_100_sequential_b91d1fff5ba3.json",[555,557,559,561,563,565,567,569],{"name":556,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fdict_array_30_b0ba1d26fd03.json",{"name":558,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fduplicate_dicts_40_40a0670dec17.json",{"name":560,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fempty_array_41ecf20098c5.json",{"name":562,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fmixed_array_3f929019b62f.json",{"name":564,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fnested_3deep_with_array_bb5036c153aa.json",{"name":566,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fnested_object_with_array_b66d43299ea1.json",{"name":568,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fnon_json_passthrough_4322abf677f3.json",{"name":570,"start":371,"end":550},"tests\u002Fparity\u002Ffixtures\u002Fsmart_crusher\u002Fnulls_and_bools_06d6fd6adcab.json",15,{"format":320,"lines":454,"tokens":573,"first":574,"others":577,"copies":602,"kind":452},52,{"name":407,"start":575,"end":576},4070,4083,[578,581,584,587,590,593,596,599],{"name":407,"start":579,"end":580},4346,4359,{"name":407,"start":582,"end":583},4606,4619,{"name":407,"start":585,"end":586},4856,4869,{"name":407,"start":588,"end":589},5358,5371,{"name":407,"start":591,"end":592},5604,5617,{"name":407,"start":594,"end":595},5957,5970,{"name":407,"start":597,"end":598},6310,6323,{"name":407,"start":600,"end":601},6428,6441,19,{"format":306,"lines":358,"tokens":604,"first":605,"others":609,"copies":350,"kind":402},124,{"name":606,"start":607,"end":608},"crates\u002Fheadroom-proxy\u002Ftests\u002Fintegration_responses.rs",102,121,[610,613,616,619,622,625,628],{"name":606,"start":611,"end":612},154,173,{"name":606,"start":614,"end":615},205,224,{"name":606,"start":617,"end":618},295,314,{"name":606,"start":620,"end":621},383,402,{"name":606,"start":623,"end":624},441,460,{"name":606,"start":626,"end":627},494,513,{"name":606,"start":629,"end":630},887,906,{"format":320,"lines":632,"tokens":633,"first":634,"others":635,"copies":350,"kind":452},27,122,{"name":407,"start":408,"end":576},[636,639,642,645,648,651,654],{"name":407,"start":637,"end":638},4174,4200,{"name":407,"start":640,"end":641},4455,4481,{"name":407,"start":643,"end":644},5472,5498,{"name":407,"start":646,"end":647},5826,5852,{"name":407,"start":649,"end":650},6062,6088,{"name":407,"start":652,"end":653},6780,6806,{"name":407,"start":655,"end":656},9309,9335,{"sources":278,"lines":658,"tokens":659,"clones":660,"duplicatedLines":661,"duplicatedTokens":662,"percentage":264,"percentageTokens":663,"formats":664,"topClones":701,"generated":814},366111,1884068,764,10188,58285,3.09,[665,671,676,677,682,685,690,695,698],{"format":299,"sources":666,"lines":667,"clones":668,"duplicatedLines":669,"percentage":670},604,266829,393,5273,1.98,{"format":306,"sources":611,"lines":672,"clones":673,"duplicatedLines":674,"percentage":675},72268,226,2538,3.51,{"format":320,"sources":321,"lines":322,"clones":323,"duplicatedLines":324,"percentage":325},{"format":327,"sources":678,"lines":679,"clones":404,"duplicatedLines":680,"percentage":681},36,6783,140,2.06,{"format":348,"sources":281,"lines":683,"clones":350,"duplicatedLines":351,"percentage":684},2000,4.4,{"format":686,"sources":270,"lines":687,"clones":371,"duplicatedLines":688,"percentage":689},"sql",461,158,34.27,{"format":691,"sources":692,"lines":693,"clones":694,"duplicatedLines":694,"percentage":694},"bash",11,2485,0,{"format":696,"sources":371,"lines":697,"clones":694,"duplicatedLines":694,"percentage":694},"tsx",336,{"format":699,"sources":371,"lines":700,"clones":694,"duplicatedLines":694,"percentage":694},"c",170,[702,717,730,744,755,765,774,784,793,802],{"format":320,"lines":404,"tokens":405,"first":703,"others":704,"copies":435,"excerpt":713,"excerptSecond":715,"kind":452},{"name":407,"start":408,"end":409},[705,706,707,708,709,710,711,712],{"name":407,"start":412,"end":413},{"name":407,"start":415,"end":416},{"name":407,"start":418,"end":419},{"name":407,"start":421,"end":422},{"name":407,"start":424,"end":425},{"name":407,"start":427,"end":428},{"name":407,"start":430,"end":431},{"name":407,"start":433,"end":434},{"lines":714,"total":404},[438,439,440,441,442,443,444,445,446,447],{"lines":716,"total":404},[450,439,440,441,442,443,444,445,446,451],{"format":320,"lines":454,"tokens":405,"first":718,"others":719,"copies":435,"excerpt":728,"kind":452},{"name":407,"start":456,"end":457},[720,721,722,723,724,725,726,727],{"name":407,"start":460,"end":461},{"name":407,"start":463,"end":464},{"name":407,"start":466,"end":467},{"name":407,"start":469,"end":470},{"name":407,"start":472,"end":473},{"name":407,"start":475,"end":476},{"name":407,"start":478,"end":479},{"name":407,"start":481,"end":482},{"lines":729,"total":454},[485,486,487,488,489,490,491,492,493,494],{"format":320,"lines":496,"tokens":497,"first":731,"others":732,"copies":281,"excerpt":734,"kind":452},{"name":407,"start":499,"end":500},[733],{"name":503,"start":504,"end":505},{"lines":735,"total":496},[736,737,738,450,442,739,740,741,742,743],"    return new URL(`${protocol}\u002F\u002F${hostname3}${port}${path}`);","  } catch {","    return void 0;","function headersForNodeRequest(options, upstream, originalPath, project, sessionToken) {","  const headers = new Headers(options.headers);","  headers.set(BASE_URL_HEADER, upstream.origin);","  if (originalPath) {","    headers.set(ORIGINAL_PATH_HEADER, originalPath);",{"format":320,"lines":454,"tokens":573,"first":745,"others":746,"copies":602,"kind":452},{"name":407,"start":575,"end":576},[747,748,749,750,751,752,753,754],{"name":407,"start":579,"end":580},{"name":407,"start":582,"end":583},{"name":407,"start":585,"end":586},{"name":407,"start":588,"end":589},{"name":407,"start":591,"end":592},{"name":407,"start":594,"end":595},{"name":407,"start":597,"end":598},{"name":407,"start":600,"end":601},{"format":320,"lines":632,"tokens":633,"first":756,"others":757,"copies":350,"kind":452},{"name":407,"start":408,"end":576},[758,759,760,761,762,763,764],{"name":407,"start":637,"end":638},{"name":407,"start":640,"end":641},{"name":407,"start":643,"end":644},{"name":407,"start":646,"end":647},{"name":407,"start":649,"end":650},{"name":407,"start":652,"end":653},{"name":407,"start":655,"end":656},{"format":686,"lines":688,"tokens":766,"first":767,"others":770,"copies":281,"kind":452},832,{"name":768,"start":632,"end":769},"sql\u002Fcreate_dashboard_summary.sql",184,[771],{"name":772,"start":773,"end":496},"sql\u002Fupgrade_dashboard_v2.sql",9,{"format":320,"lines":775,"tokens":776,"first":777,"others":780,"copies":281,"kind":452},101,686,{"name":407,"start":778,"end":779},12653,12753,[781],{"name":503,"start":782,"end":783},162,262,{"format":320,"lines":785,"tokens":786,"first":787,"others":790,"copies":281,"kind":452},68,531,{"name":407,"start":788,"end":789},12538,12605,[791],{"name":503,"start":792,"end":608},54,{"format":320,"lines":794,"tokens":795,"first":796,"others":799,"copies":281,"kind":452},42,301,{"name":407,"start":797,"end":798},12486,12527,[800],{"name":503,"start":281,"end":801},43,{"format":299,"lines":803,"tokens":804,"first":805,"others":809,"copies":281,"kind":452},48,284,{"name":806,"start":807,"end":808},"benchmarks\u002Fclaude_session_mode_benchmark.py",712,759,[810],{"name":811,"start":812,"end":813},"headroom\u002Fproxy\u002Fhandlers\u002Fanthropic.py",915,962,{"files":270,"minified":281,"sample":815},[816,817,818,819],"headroom\u002Fdashboard\u002Fstatic\u002Falpine.min.js","headroom\u002Fdashboard\u002Fstatic\u002Ftailwind.min.js","headroom\u002Ftransforms\u002Fdense_line_elider.py","tests\u002Ftest_content_router_compact_json.py",{"score":266,"grade":267,"size":821,"dimensions":825},{"lines":822,"files":823,"class":824},751069,2014,"L",[826,839,847],{"id":827,"source":828,"value":829,"adjusted":829,"lines":830,"halfLife":831,"formats":832,"excluded":836,"weight":371,"score":838},"duplication","jscpd",4.8,35756,8.5,[299,306,327,320,691,348,696,833,686,699,834,835],"docker","makefile","hcl",[361,354,837],"data",67.8,{"id":840,"source":828,"value":841,"adjusted":841,"lines":842,"halfLife":843,"coverage":844,"weight":845,"score":846},"dead-code",0.7,4636,7.5,87.2,0.872,93.6,{"id":848,"source":828,"value":849,"adjusted":850,"lines":851,"halfLife":852,"weight":371,"score":853},"complexity",56.6,56.5,424802,50,45.7,{"total":855,"mean":856,"files":857},82518,41,[858,862,867,872,877,882,886,891,895,900],{"path":407,"complexity":859,"lines":860,"bytes":861},3719,13057,469306,{"path":863,"complexity":864,"lines":865,"bytes":866},"headroom\u002Fproxy\u002Fhandlers\u002Fopenai.py",1649,11766,584077,{"path":868,"complexity":869,"lines":870,"bytes":871},"headroom\u002Fcli\u002Fwrap.py",1270,9414,395991,{"path":873,"complexity":874,"lines":875,"bytes":876},"headroom\u002Ftransforms\u002Fcontent_router.py",1019,7924,393917,{"path":878,"complexity":879,"lines":880,"bytes":881},"headroom\u002Fproxy\u002Fserver.py",923,7310,340492,{"path":811,"complexity":883,"lines":884,"bytes":885},757,6405,339193,{"path":887,"complexity":888,"lines":889,"bytes":890},"headroom\u002Fproxy\u002Fhelpers.py",732,4868,208292,{"path":892,"complexity":505,"lines":893,"bytes":894},"headroom\u002Fproxy\u002Fhandlers\u002Fstreaming.py",2599,127765,{"path":896,"complexity":897,"lines":898,"bytes":899},"headroom\u002Fmemory\u002Ftraffic_learner.py",419,2033,82609,{"path":901,"complexity":902,"lines":903,"bytes":904},"crates\u002Fheadroom-core\u002Fsrc\u002Ftransforms\u002Flog_compressor.rs",410,2692,105216,{"percentage":906,"findings":351,"files":907,"byCategory":908,"largest":919},0.71,1835,[909,912,914,916],{"category":910,"count":911},"unused-file",17,{"category":913,"count":571},"unused-export",{"category":915,"count":602},"unused-symbol",{"category":917,"count":918},"unused-import",37,[920,924,927,930,932,935,938,941,944,947],{"category":910,"path":921,"name":922,"line":371,"lines":923},"headroom\u002Fevals\u002Fhtml_extraction.py","",655,{"category":910,"path":925,"name":922,"line":371,"lines":926},"deploy\u002Fbeacon\u002Fworker.js",506,{"category":910,"path":928,"name":922,"line":371,"lines":929},"headroom\u002Fevals\u002Fhtml_oss_benchmarks.py",501,{"category":910,"path":931,"name":922,"line":371,"lines":697},"plugins\u002Fheadroom-snip\u002Fhooks\u002Fregister.tsx",{"category":910,"path":933,"name":922,"line":371,"lines":934},"headroom\u002Ftransforms\u002Fadaptive_sizer.py",334,{"category":910,"path":936,"name":922,"line":371,"lines":937},"headroom\u002Flearn\u002Fplugins\u002Fopencode.py",306,{"category":910,"path":939,"name":922,"line":371,"lines":940},"deploy\u002Fbeacon\u002Ftest-rollup.mjs",292,{"category":910,"path":942,"name":922,"line":371,"lines":943},"headroom\u002Fshared_context.py",228,{"category":910,"path":945,"name":922,"line":371,"lines":946},"headroom\u002Flearn\u002Fplugins\u002Fgrok.py",211,{"category":910,"path":948,"name":922,"line":371,"lines":949},"headroom\u002Fintegrations\u002Flitellm_callback.py",177,{"\u002Ftrending\u002Fheadroomlabs-ai\u002Fheadroom":951},{"views":363,"visits":270},1795510258833]