[{"data":1,"prerenderedAt":968},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-xerj-org\u002Fxerj":249,"page-views-\u002Ftrending\u002Fxerj-org\u002Fxerj":966},[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":294},"xerj-org\u002Fxerj","https:\u002F\u002Fgithub.com\u002Fxerj-org\u002Fxerj",[253,268,281],{"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-16",3,5902,715,"45565571ec2a381c0faf0ddd631b32c44c48e028",3046,964097,6781,146303,15.18,4.7,570,40.2,"D",{"date":269,"rank":270,"stars":271,"starsToday":272,"headSha":273,"sources":274,"lines":275,"clones":276,"duplicatedLines":277,"percentage":278,"codePercentage":279,"codeSources":280,"healthScore":266,"healthGrade":267},"2026-10-17",6,7096,1648,"928e00426c48abc2a7ef02abb31a59181c7fc933",3066,968656,6803,146494,15.12,4.68,575,{"date":282,"rank":270,"stars":283,"starsToday":284,"headSha":285,"sources":286,"lines":287,"clones":288,"duplicatedLines":289,"percentage":290,"codePercentage":291,"codeSources":292,"healthScore":293,"healthGrade":267},"2026-10-18",7956,1160,"f37328bf35678270484bdb8b6e1c022513d298fc",3096,977872,6855,147088,15.04,4.63,577,40.3,{"date":282,"generatedAt":295,"name":250,"url":251,"description":296,"language":297,"stars":283,"starsToday":284,"defaultBranch":298,"headSha":285,"durationMs":299,"total":300,"formats":304,"topClones":374,"code":627,"health":843,"complexity":879,"deadCode":930},"2026-10-18T05:26:35.381Z","XERJ is the new way for AI to search data. Its autoindex capability activates agents to know your data without the token waste of grep (1974 tool). One command indexes code, docs, logs and PDFs for search, RAG, security audits and agent memory, using 40x fewer tokens than grep. It’s durable and can replace ElasticSearch saving you x10 infra costs.","Rust","main",5573,{"sources":286,"lines":287,"tokens":301,"clones":288,"duplicatedLines":289,"duplicatedTokens":302,"percentage":290,"percentageTokens":303},8653452,1530643,17.69,[305,312,319,326,333,340,347,354,360,367],{"format":306,"sources":307,"lines":308,"clones":309,"duplicatedLines":310,"percentage":311},"markup",202,86387,2546,60336,69.84,{"format":313,"sources":314,"lines":315,"clones":316,"duplicatedLines":317,"percentage":318},"rust",562,440785,2241,24150,5.48,{"format":320,"sources":321,"lines":322,"clones":323,"duplicatedLines":324,"percentage":325},"yaml",332,60704,603,12435,20.48,{"format":327,"sources":328,"lines":329,"clones":330,"duplicatedLines":331,"percentage":332},"log",34,9522,320,6140,64.48,{"format":334,"sources":335,"lines":336,"clones":337,"duplicatedLines":338,"percentage":339},"markdown",719,133916,295,13481,10.07,{"format":341,"sources":342,"lines":343,"clones":344,"duplicatedLines":345,"percentage":346},"javascript",156,49128,288,8104,16.5,{"format":348,"sources":349,"lines":350,"clones":351,"duplicatedLines":352,"percentage":353},"json",271,108980,219,14663,13.45,{"format":355,"sources":351,"lines":356,"clones":357,"duplicatedLines":358,"percentage":359},"text",10551,128,3824,36.24,{"format":361,"sources":362,"lines":363,"clones":364,"duplicatedLines":365,"percentage":366},"python",188,38066,76,1297,3.41,{"format":368,"sources":369,"lines":370,"clones":371,"duplicatedLines":372,"percentage":373},"css",7,7310,67,1978,27.06,[375,427,463,486,498,513,536,565,594,618],{"format":306,"lines":376,"tokens":377,"first":378,"others":382,"copies":414,"excerpt":415,"kind":426},80,2353,{"name":379,"start":380,"end":381},"landing\u002Fdocs\u002Faggregations.html",392,471,[383,387,391,394,398,402,406,410],{"name":384,"start":385,"end":386},"landing\u002Fdocs\u002Fanalyzers.html",318,397,{"name":388,"start":389,"end":390},"landing\u002Fdocs\u002Fapi-es-compat.html",421,500,{"name":392,"start":386,"end":393},"landing\u002Fdocs\u002Fcli.html",476,{"name":395,"start":396,"end":397},"landing\u002Fdocs\u002Fclustering.html",391,470,{"name":399,"start":400,"end":401},"landing\u002Fdocs\u002Fcompression.html",322,401,{"name":403,"start":404,"end":405},"landing\u002Fdocs\u002Fcorpus-hub.html",438,517,{"name":407,"start":408,"end":409},"landing\u002Fdocs\u002Fenv.html",430,509,{"name":411,"start":412,"end":413},"landing\u002Fdocs\u002Fingest.html",324,403,25,{"lines":416,"total":376},[417,418,419,420,419,421,422,423,424,425],"  \u003Cspan>\u003Ca href=\"\u002F\">HOME\u003C\u002Fa> · \u003Ca href=\"\u002Fproduct\">PRODUCT\u003C\u002Fa> · \u003Ca href=\"\u002Fbrand\">BRAND\u003C\u002Fa> · \u003Ca href=\"\u002Fplayground\">DASHBOARDS\u003C\u002Fa> &middot; \u003Ca href=\"\u002Fllms.txt\">…","\u003C\u002Ffooter>","","\u003Cscript type=\"application\u002Fjson\" id=\"docs-index\">[{\"title\":\"Corpus Hub\",\"slug\":\"\u002Fdocs\u002Fcorpus-hub\",\"kicker\":\"CORPUS HUB\",\"snip\":\"Registry of corpora for agents —…","\u003Cscript>","  \u002F\u002F IIFE — js-auth navigates between decrypted pages in the same","  \u002F\u002F JS realm, so const bindings must be lexically scoped.","  (function () {","    const root = document.documentElement;","docs",{"format":306,"lines":428,"tokens":429,"first":430,"others":433,"copies":450,"excerpt":451,"kind":306},33,675,{"name":431,"start":432,"end":342},"landing\u002Fanswers\u002Fagent-memory-without-postgres-qdrant.html",124,[434,436,438,440,442,444,446,448],{"name":435,"start":432,"end":342},"landing\u002Fanswers\u002Faudit-php-codebase-with-an-index.html",{"name":437,"start":432,"end":342},"landing\u002Fanswers\u002Fautoindex-dataset-refused-by-server.html",{"name":439,"start":432,"end":342},"landing\u002Fanswers\u002Fautoindex-exit-codes.html",{"name":441,"start":432,"end":342},"landing\u002Fanswers\u002Fautoindex-says-extract-the-archive-first.html",{"name":443,"start":432,"end":342},"landing\u002Fanswers\u002Fautoindex-server-back-pressure-429.html",{"name":445,"start":432,"end":342},"landing\u002Fanswers\u002Fcatalog-files-with-autoindex-map.html",{"name":447,"start":432,"end":342},"landing\u002Fanswers\u002Fcheap-low-volume-log-search.html",{"name":449,"start":432,"end":342},"landing\u002Fanswers\u002Fcheck-codebase-index-is-complete.html",83,{"lines":452,"total":428},[453,454,455,456,457,458,459,460,461,462],"\u003Ca href=\"\u002Fcase-studies\">CASE STUDIES\u003C\u002Fa>","\u003Ca href=\"\u002Fbenchmarks\u002F\">BENCHMARKS\u003C\u002Fa>","\u003Cspan class=\"spacer\">\u003C\u002Fspan>","\u003Ca href=\"\u002Ffor-agents\">FOR AGENTS\u003C\u002Fa>","\u003Ca href=\"\u002Fdocs\u002F\" class=\"active\">DOCS\u003C\u002Fa>","\u003Ca href=\"\u002Fdocs\u002Frecipes\u002F\">RECIPES\u003C\u002Fa>","\u003Ca href=\"\u002Fplayground\">DASHBOARDS\u003C\u002Fa>","\u003Ca href=\"https:\u002F\u002Fhub.xerj.org\" rel=\"external\">HUB\u003C\u002Fa>","\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fxerj-org\u002Fxerj\" rel=\"external\">GITHUB\u003C\u002Fa>","\u003Ca href=\"https:\u002F\u002Fx.com\u002Fxerj_org\" rel=\"external\" title=\"XERJ on X\" style=\"display:inline-flex;align-items:center\">\u003Csvg width=\"15\" height=\"15\" viewBox=\"0 0 24 24…",{"format":348,"lines":464,"tokens":465,"first":466,"others":469,"copies":472,"excerpt":473,"kind":485},8893,35383,{"name":467,"start":468,"end":464},"benchmarks\u002Fdecide-model\u002Fpinned\u002Ftokenizer.json",1,[470],{"name":471,"start":468,"end":464},"benchmarks\u002Fdecide-model\u002Fpublished\u002Fxerj-decide-v1\u002Ftokenizer.json",2,{"lines":474,"total":464},[475,476,477,478,479,480,481,482,483,484],"{","  \"version\": \"1.0\",","  \"truncation\": {","    \"direction\": \"Right\",","    \"max_length\": 512,","    \"strategy\": \"LongestFirst\",","    \"stride\": 0","  },","  \"padding\": null,","  \"added_tokens\": [","data",{"format":306,"lines":487,"tokens":488,"first":489,"others":493,"copies":472,"kind":306},15,33689,{"name":490,"start":491,"end":492},"landing\u002Fproduct.html",228,242,[494],{"name":495,"start":496,"end":497},"landing\u002Fuse-cases\u002Fai-search-retrieval.html",153,167,{"format":306,"lines":499,"tokens":500,"first":501,"others":505,"copies":255,"kind":426},138,16579,{"name":502,"start":503,"end":504},"landing\u002Fdocs\u002Fbackup-restore.html",298,435,[506,509],{"name":507,"start":508,"end":409},"landing\u002Fdocs\u002Fconfig.html",372,{"name":510,"start":511,"end":512},"landing\u002Fdocs\u002Findex.html",368,505,{"format":306,"lines":514,"tokens":515,"first":516,"others":518,"copies":535,"kind":306},91,3090,{"name":431,"start":342,"end":517},246,[519,521,523,525,527,529,531,533],{"name":520,"start":342,"end":517},"landing\u002Fanswers\u002Fcode-search-mcp-for-claude-code.html",{"name":522,"start":342,"end":517},"landing\u002Fanswers\u002Fcoding-agent-memory-across-sessions.html",{"name":524,"start":342,"end":517},"landing\u002Fanswers\u002Fevidence-for-agent-memory-links.html",{"name":526,"start":342,"end":517},"landing\u002Fanswers\u002Fgive-chatgpt-claude-local-file-access.html",{"name":528,"start":342,"end":517},"landing\u002Fanswers\u002Fknowledge-graphs-for-agent-memory.html",{"name":530,"start":342,"end":517},"landing\u002Fanswers\u002Fmcp-api-search-or-vector-search.html",{"name":532,"start":342,"end":517},"landing\u002Fanswers\u002Fprivate-agent-memory-namespaces.html",{"name":534,"start":342,"end":517},"landing\u002Fanswers\u002Fset-mcp-memory-storage-path.html",10,{"format":306,"lines":537,"tokens":538,"first":539,"others":542,"copies":328,"kind":306},62,681,{"name":431,"start":540,"end":541},323,384,[543,546,549,552,555,558,559,561],{"name":435,"start":544,"end":545},363,424,{"name":437,"start":547,"end":548},349,410,{"name":439,"start":550,"end":551},393,454,{"name":441,"start":553,"end":554},308,369,{"name":443,"start":556,"end":557},353,414,{"name":445,"start":547,"end":548},{"name":447,"start":560,"end":413},342,{"name":562,"start":563,"end":564},"landing\u002Fanswers\u002Fclassify-text-from-labelled-history-without-llm.html",341,402,{"format":306,"lines":566,"tokens":567,"first":568,"others":571,"copies":593,"kind":426},63,680,{"name":569,"start":389,"end":570},"landing\u002Fdocs\u002Fagents\u002Fendpoints.html",483,[572,575,578,579,582,585,588,591],{"name":379,"start":573,"end":574},334,395,{"name":384,"start":576,"end":577},260,321,{"name":388,"start":544,"end":545},{"name":392,"start":580,"end":581},339,400,{"name":395,"start":583,"end":584},333,394,{"name":399,"start":586,"end":587},264,325,{"name":403,"start":589,"end":590},380,441,{"name":407,"start":508,"end":592},433,30,{"format":306,"lines":428,"tokens":595,"first":596,"others":600,"copies":617,"kind":306},111,{"name":597,"start":598,"end":599},"landing\u002F404.html",28,60,[601,605,609,612,613,614,615,616],{"name":602,"start":603,"end":604},"landing\u002Fagent-search\u002Findex.html",126,158,{"name":606,"start":607,"end":608},"landing\u002Faise-demo.html",39,71,{"name":431,"start":610,"end":611},29,61,{"name":435,"start":610,"end":611},{"name":437,"start":610,"end":611},{"name":439,"start":610,"end":611},{"name":441,"start":610,"end":611},{"name":443,"start":610,"end":611},169,{"format":306,"lines":499,"tokens":619,"first":620,"others":624,"copies":472,"kind":306},17893,{"name":621,"start":622,"end":623},"landing\u002Fanswers\u002Findex.html",90,227,[625],{"name":626,"start":622,"end":623},"landing\u002Fcompare\u002Findex.html",{"sources":292,"lines":628,"tokens":629,"clones":630,"duplicatedLines":631,"duplicatedTokens":632,"percentage":291,"percentageTokens":633,"formats":634,"topClones":664,"generated":835},404286,2518842,1424,18732,144171,5.72,[635,640,646,652,658,662],{"format":313,"sources":577,"lines":636,"clones":637,"duplicatedLines":638,"percentage":639},344549,1276,12512,3.63,{"format":341,"sources":641,"lines":642,"clones":643,"duplicatedLines":644,"percentage":645},105,29137,107,5851,20.08,{"format":361,"sources":647,"lines":648,"clones":649,"duplicatedLines":650,"percentage":651},96,23192,32,273,1.18,{"format":653,"sources":654,"lines":655,"clones":656,"duplicatedLines":647,"percentage":657},"bash",53,7082,9,1.36,{"format":659,"sources":468,"lines":660,"clones":661,"duplicatedLines":661,"percentage":661},"perl",168,0,{"format":663,"sources":468,"lines":604,"clones":661,"duplicatedLines":661,"percentage":661},"powershell",[665,684,705,728,760,769,777,787,796,825],{"format":341,"lines":560,"tokens":666,"first":667,"others":670,"copies":472,"excerpt":673,"kind":683},3050,{"name":668,"start":535,"end":669},"landing\u002Fplayground\u002Fsrc\u002Fux\u002Fcharts-ai.js",351,[671],{"name":672,"start":535,"end":669},"xerj-ux\u002Fsrc\u002Fux\u002Fcharts-ai.js",{"lines":674,"total":560},[675,419,676,677,678,679,680,419,681,682],"import { esc, fmt } from '.\u002Ftext.js';","const minMax = (xs) => {","  let mn = Infinity, mx = -Infinity;","  for (const x of xs) { if (x \u003C mn) mn = x; if (x > mx) mx = x; }","  return [mn === Infinity ? 0 : mn, mx === -Infinity ? 0 : mx];","};","\u002F\u002F Andrew's monotone chain — O(n log n) convex hull.","function convexHull(points) {","code",{"format":341,"lines":685,"tokens":686,"first":687,"others":691,"copies":472,"excerpt":694,"kind":683},343,2597,{"name":688,"start":689,"end":690},"landing\u002Fplayground\u002Fsrc\u002Fux\u002Fchart-types.js",14,356,[692],{"name":693,"start":689,"end":690},"xerj-ux\u002Fsrc\u002Fux\u002Fchart-types.js",{"lines":695,"total":685},[696,697,698,699,700,701,419,702,703,704],"import { Num, fmt }               from '.\u002Ftext.js';","import { Spark, Series, Dist, Heatmap, Multiples } from '.\u002Fcharts.js';","import { VBar, Hist, Gauge, Scatter, Stacked, Treemap } from '.\u002Fcharts-ext.js';","import { EmbedSpace, Ribbon3D, ChordArcs, ParallelCoords, AttentionMap, FlowBand } from '.\u002Fcharts-ai.js';","import { Table, Markdown }        from '.\u002Ftables.js';","import { TopN, Events }           from '.\u002Flayout.js';","\u002F\u002F ---------- demo data (deterministic) ---------------------","const demoSeries = Array.from({ length: 48 }, (_, i) =>","  50 + Math.sin(i \u002F 5.5) * 22 + Math.cos(i \u002F 3.2) * 9 + ((i * 37) % 7)",{"format":341,"lines":321,"tokens":706,"first":707,"others":711,"copies":472,"excerpt":716,"kind":683},2317,{"name":708,"start":709,"end":710},"landing\u002Fplayground\u002Fsrc\u002Fapp.js",748,1079,[712],{"name":713,"start":714,"end":715},"xerj-ux\u002Fsrc\u002Fapp.js",1583,1914,{"lines":717,"total":321},[718,719,720,721,722,723,724,725,726,727],"const secA = e.target.closest('[data-section]');","if (secA) {","  e.preventDefault();","  const sid = secA.getAttribute('data-section');","  if (sid === 'dashboards') {","    location.hash = '#\u002Fdashboards';","  } else {","    location.hash = '#\u002F' + sid;","  }","  return;",{"format":313,"lines":535,"tokens":729,"first":730,"others":734,"copies":759,"kind":683},99,{"name":731,"start":732,"end":733},"engine\u002Fcrates\u002Fxerj-autoindex\u002Fsrc\u002Ffailure_resume_http_tests.rs",1174,1183,[735,738,741,744,747,750,753,756],{"name":731,"start":736,"end":737},1239,1248,{"name":731,"start":739,"end":740},1259,1268,{"name":731,"start":742,"end":743},1313,1322,{"name":731,"start":745,"end":746},1366,1375,{"name":731,"start":748,"end":749},1395,1404,{"name":731,"start":751,"end":752},1440,1449,{"name":731,"start":754,"end":755},1601,1610,{"name":731,"start":757,"end":758},1627,1636,20,{"format":341,"lines":761,"tokens":762,"first":763,"others":766,"copies":472,"kind":683},189,1856,{"name":764,"start":307,"end":765},"landing\u002Fplayground\u002Fsrc\u002Fdata\u002Fmock.js",390,[767],{"name":768,"start":307,"end":765},"xerj-ux\u002Fsrc\u002Fdata\u002Fmock.js",{"format":341,"lines":770,"tokens":771,"first":772,"others":774,"copies":472,"kind":683},179,1751,{"name":764,"start":765,"end":773},568,[775],{"name":768,"start":765,"end":776},581,{"format":341,"lines":778,"tokens":779,"first":780,"others":783,"copies":472,"kind":683},205,1616,{"name":708,"start":781,"end":782},1108,1312,[784],{"name":713,"start":785,"end":786},1949,2153,{"format":341,"lines":788,"tokens":789,"first":790,"others":793,"copies":472,"kind":683},143,1561,{"name":764,"start":791,"end":792},755,897,[794],{"name":768,"start":776,"end":795},723,{"format":313,"lines":369,"tokens":364,"first":797,"others":800,"copies":759,"kind":683},{"name":798,"start":799,"end":740},"engine\u002Fcrates\u002Fxerj-autoindex\u002Fsrc\u002Fincremental_reconcile_http_tests.rs",1262,[801,804,807,810,813,816,819,822],{"name":798,"start":802,"end":803},1319,1325,{"name":798,"start":805,"end":806},1347,1353,{"name":798,"start":808,"end":809},1385,1391,{"name":798,"start":811,"end":812},1474,1480,{"name":798,"start":814,"end":815},1530,1536,{"name":798,"start":817,"end":818},1686,1692,{"name":798,"start":820,"end":821},1732,1738,{"name":798,"start":823,"end":824},1997,2003,{"format":341,"lines":826,"tokens":827,"first":828,"others":831,"copies":472,"kind":683},171,1414,{"name":708,"start":829,"end":830},88,258,[832],{"name":713,"start":833,"end":834},132,302,{"files":836,"minified":468,"sample":837},5,[838,839,840,841,842],".github\u002Fscripts\u002Fprev_tag.sh","engine\u002Fcrates\u002Fxerj-engine\u002Fsrc\u002Fsecret_hash.rs","landing\u002Fchart-data.js","landing\u002Fplayground\u002Fsrc\u002Fdata\u002Ffeedback-citations.js","xerj-ux\u002Fsrc\u002Fdata\u002Ffeedback-citations.js",{"score":293,"grade":267,"size":844,"dimensions":848},{"lines":845,"files":846,"class":847},539090,982,"L",[849,863,872],{"id":850,"source":851,"value":852,"adjusted":852,"lines":853,"halfLife":854,"formats":855,"excluded":861,"weight":468,"score":862},"duplication","jscpd",6.2,33644,8.5,[313,341,361,653,856,659,663,857,858,859,860],"java","c","php","sql","c-header",[306,355,485],60.2,{"id":864,"source":851,"value":865,"adjusted":866,"lines":867,"halfLife":868,"coverage":869,"weight":870,"score":871},"dead-code",28.4,27.8,24728,7.5,16.1,0.161,7.6,{"id":873,"source":851,"value":874,"adjusted":875,"lines":876,"halfLife":877,"weight":468,"score":878},"complexity",75.3,75.1,405885,50,35.3,{"total":880,"mean":881,"files":882},68741,70,[883,888,893,897,902,907,912,916,921,926],{"path":884,"complexity":885,"lines":886,"bytes":887},"engine\u002Fcrates\u002Fxerj-engine\u002Fsrc\u002Faggs.rs",2821,15730,650416,{"path":889,"complexity":890,"lines":891,"bytes":892},"landing\u002Fplayground\u002Fapp.bundle.js",1501,6355,244713,{"path":894,"complexity":799,"lines":895,"bytes":896},"engine\u002Fcrates\u002Fxerj-engine\u002Fsrc\u002Ffast_aggs.rs",6724,291740,{"path":898,"complexity":899,"lines":900,"bytes":901},"engine\u002Fcrates\u002Fxerj-autoindex\u002Fsrc\u002Flib.rs",1214,12515,552476,{"path":903,"complexity":904,"lines":905,"bytes":906},"engine\u002Fcrates\u002Fxerj-query\u002Fsrc\u002Fparser.rs",1203,6854,261046,{"path":908,"complexity":909,"lines":910,"bytes":911},"engine\u002Fcrates\u002Fxerj-storage\u002Fsrc\u002Findex_store.rs",854,8050,360952,{"path":713,"complexity":913,"lines":914,"bytes":915},729,2188,88523,{"path":917,"complexity":918,"lines":919,"bytes":920},"engine\u002Fcrates\u002Fxerj-storage\u002Fsrc\u002Fstored_codec.rs",725,5198,214250,{"path":922,"complexity":923,"lines":924,"bytes":925},"engine\u002Fcrates\u002Fxerj-engine\u002Fsrc\u002Fpainless.rs",696,3994,168617,{"path":927,"complexity":429,"lines":928,"bytes":929},"engine\u002Fcrates\u002Fxerj-engine\u002Fsrc\u002Fmemtable.rs",6553,295211,{"percentage":931,"findings":514,"files":932,"byCategory":933,"largest":942},28.41,344,[934,937,939],{"category":935,"count":936},"unused-file",72,{"category":938,"count":468},"unused-symbol",{"category":940,"count":941},"unused-import",18,[943,944,945,946,948,951,954,957,960,963],{"category":935,"path":889,"name":419,"line":468,"lines":891},{"category":935,"path":713,"name":419,"line":468,"lines":914},{"category":935,"path":708,"name":419,"line":468,"lines":743},{"category":935,"path":764,"name":419,"line":468,"lines":947},1045,{"category":935,"path":949,"name":419,"line":468,"lines":950},"xerj-ux\u002Fshare\u002Fshare.js",820,{"category":935,"path":952,"name":419,"line":468,"lines":953},"demo\u002Fusecases\u002Fdoc-index\u002Fcompare.mjs",772,{"category":935,"path":955,"name":419,"line":468,"lines":956},"landing\u002Fcharts.js",529,{"category":935,"path":958,"name":419,"line":468,"lines":959},"docs\u002Fdesign\u002Fsecond_brain_graph_wf.js",453,{"category":935,"path":961,"name":419,"line":468,"lines":962},"docs\u002Fdesign\u002Fsecond_brain_finish_wf.js",418,{"category":935,"path":964,"name":419,"line":468,"lines":965},"demo\u002Fusecases\u002Fdoc-index\u002Fgrep-baseline.mjs",387,{"\u002Ftrending\u002Fxerj-org\u002Fxerj":967},{"views":535,"visits":656},1795510264687]