[{"data":1,"prerenderedAt":695},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-microsoft\u002FBitNet":244},[4,29,99,119,189],{"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],{"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,"icon":6,"path":101,"stem":102,"children":103,"page":6},"Concepts","\u002Fconcepts","3.concepts",[104,109,114],{"title":105,"path":106,"stem":107,"icon":108},"Types of code clones","\u002Fconcepts\u002Fclone-types","3.concepts\u002F1.clone-types","i-lucide-copy",{"title":110,"path":111,"stem":112,"icon":113},"How detection works","\u002Fconcepts\u002Fhow-detection-works","3.concepts\u002F2.how-detection-works","i-lucide-scan-search",{"title":115,"path":116,"stem":117,"icon":118},"The health score","\u002Fconcepts\u002Fhealth-score","3.concepts\u002F3.health-score","i-lucide-heart-pulse",{"title":120,"icon":6,"path":121,"stem":122,"children":123,"page":6},"Reference","\u002Freference","4.reference",[124,129,134,139,176,181,185],{"title":125,"path":126,"stem":127,"icon":128},"CLI options","\u002Freference\u002Fcli","4.reference\u002F1.cli","i-lucide-terminal",{"title":130,"path":131,"stem":132,"icon":133},"The config file","\u002Freference\u002Fconfig-file","4.reference\u002F2.config-file","i-lucide-settings",{"title":135,"path":136,"stem":137,"icon":138},"Exit codes","\u002Freference\u002Fexit-codes","4.reference\u002F3.exit-codes","i-lucide-log-out",{"title":140,"icon":6,"path":141,"stem":142,"children":143},"Reporters","\u002Freference\u002Freporters","4.reference\u002F4.reporters\u002Findex",[144,146,151,156,161,166,171],{"title":140,"path":141,"stem":142,"icon":145},"i-lucide-file-chart-column",{"title":147,"path":148,"stem":149,"icon":150},"HTML reporter","\u002Freference\u002Freporters\u002Fhtml","4.reference\u002F4.reporters\u002F2.html","i-lucide-file-code",{"title":152,"path":153,"stem":154,"icon":155},"JSON reporter","\u002Freference\u002Freporters\u002Fjson","4.reference\u002F4.reporters\u002F3.json","i-lucide-braces",{"title":157,"path":158,"stem":159,"icon":160},"Badge reporter","\u002Freference\u002Freporters\u002Fbadge","4.reference\u002F4.reporters\u002F4.badge","i-lucide-award",{"title":162,"path":163,"stem":164,"icon":165},"SARIF reporter","\u002Freference\u002Freporters\u002Fsarif","4.reference\u002F4.reporters\u002F5.sarif","i-lucide-shield-check",{"title":167,"path":168,"stem":169,"icon":170},"CodeClimate reporter","\u002Freference\u002Freporters\u002Fcodeclimate","4.reference\u002F4.reporters\u002F6.codeclimate","i-lucide-flag-triangle-right",{"title":172,"path":173,"stem":174,"icon":175},"OpenMetrics reporter","\u002Freference\u002Freporters\u002Fopenmetrics","4.reference\u002F4.reporters\u002F7.openmetrics","i-lucide-activity",{"title":177,"path":178,"stem":179,"icon":180},"Supported formats","\u002Freference\u002Fsupported-formats","4.reference\u002F5.supported-formats","i-lucide-languages",{"title":182,"path":183,"stem":184,"icon":38},"GitHub Action","\u002Freference\u002Fgithub-action","4.reference\u002F6.github-action",{"title":186,"path":187,"stem":188,"icon":68},"Rust crates","\u002Freference\u002Frust-crates","4.reference\u002F7.rust-crates",{"title":190,"icon":6,"path":191,"stem":192,"children":193,"page":6},"Project","\u002Fproject","5.project",[194,199,204,209,234,239],{"title":195,"path":196,"stem":197,"icon":198},"Changelog","\u002Fproject\u002Fchangelog","5.project\u002F1.changelog","i-lucide-scroll-text",{"title":200,"path":201,"stem":202,"icon":203},"Migrating from v4 to v5","\u002Fproject\u002Fmigration","5.project\u002F2.migration","i-lucide-arrow-right-left",{"title":205,"path":206,"stem":207,"icon":208},"jscpd v4 (TypeScript)","\u002Fproject\u002Fv4","5.project\u002F3.v4","i-simple-icons-typescript",{"title":210,"icon":6,"path":211,"stem":212,"children":213},"Benchmarks","\u002Fproject\u002Fbenchmarks","5.project\u002F4.benchmarks\u002Findex",[214,216,221,225,230],{"title":210,"path":211,"stem":212,"icon":215},"i-lucide-gauge",{"title":217,"path":218,"stem":219,"icon":220},"Detection Speed","\u002Fproject\u002Fbenchmarks\u002Fdetection-speed","5.project\u002F4.benchmarks\u002F2.detection-speed","i-lucide-zap",{"title":222,"path":223,"stem":224,"icon":58},"Multi-Format Detection","\u002Fproject\u002Fbenchmarks\u002Fcross-format","5.project\u002F4.benchmarks\u002F3.cross-format",{"title":226,"path":227,"stem":228,"icon":229},"AI Token Efficiency","\u002Fproject\u002Fbenchmarks\u002Fai-token-efficiency","5.project\u002F4.benchmarks\u002F4.ai-token-efficiency","i-lucide-sparkles",{"title":231,"path":232,"stem":233,"icon":93},"Embedding Models","\u002Fproject\u002Fbenchmarks\u002Fembedding-models","5.project\u002F4.benchmarks\u002F5.embedding-models",{"title":235,"path":236,"stem":237,"icon":238},"Research","\u002Fproject\u002Fresearch","5.project\u002F5.research","i-lucide-graduation-cap",{"title":240,"path":241,"stem":242,"icon":243},"Articles","\u002Fproject\u002Farticles","5.project\u002F6.articles","i-lucide-newspaper",{"name":245,"url":246,"appearances":247,"latest":263},"microsoft\u002FBitNet","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBitNet",[248],{"date":249,"rank":250,"stars":251,"starsToday":252,"headSha":253,"sources":254,"lines":255,"clones":256,"duplicatedLines":257,"percentage":258,"codePercentage":259,"codeSources":260,"healthScore":261,"healthGrade":262},"2026-10-13",3,40991,97,"0b341e582afbf9e1011f24744b554c96a3477eb5",73,22884,256,8577,37.48,41.42,48,19.9,"E",{"date":249,"generatedAt":264,"name":245,"url":246,"description":265,"language":266,"stars":251,"starsToday":252,"defaultBranch":267,"headSha":253,"durationMs":268,"total":269,"formats":273,"topClones":321,"code":502,"health":593,"complexity":626,"deadCode":667},"2026-10-13T05:34:37.613Z","Official inference framework for 1-bit LLMs","C++","main",960,{"sources":254,"lines":255,"tokens":270,"clones":256,"duplicatedLines":257,"duplicatedTokens":271,"percentage":258,"percentageTokens":272},202740,91787,45.27,[274,281,288,295,301,307,312,315,318],{"format":275,"sources":276,"lines":277,"clones":278,"duplicatedLines":279,"percentage":280},"c-header",10,7153,142,5374,75.13,{"format":282,"sources":283,"lines":284,"clones":285,"duplicatedLines":286,"percentage":287},"python",25,11090,69,2645,23.85,{"format":289,"sources":290,"lines":291,"clones":292,"duplicatedLines":293,"percentage":294},"cpp",2,1248,39,469,37.58,{"format":296,"sources":297,"lines":298,"clones":299,"duplicatedLines":285,"percentage":300},"markdown",7,1373,5,5.03,{"format":302,"sources":297,"lines":303,"clones":304,"duplicatedLines":305,"percentage":306},"ini",154,1,20,12.99,{"format":308,"sources":309,"lines":310,"clones":311,"duplicatedLines":311,"percentage":311},"bash",16,1561,0,{"format":313,"sources":304,"lines":314,"clones":311,"duplicatedLines":311,"percentage":311},"perl",168,{"format":316,"sources":250,"lines":317,"clones":311,"duplicatedLines":311,"percentage":311},"txt",99,{"format":319,"sources":290,"lines":320,"clones":311,"duplicatedLines":311,"percentage":311},"text",38,[322,364,385,404,415,437,464,476,483,493],{"format":275,"lines":323,"tokens":324,"first":325,"others":329,"copies":276,"excerpt":352,"kind":363},112,1939,{"name":326,"start":327,"end":328},"include\u002Fbitnet-lut-kernels.h",284,395,[330,333,336,340,343,346,349,351],{"name":326,"start":331,"end":332},528,639,{"name":326,"start":334,"end":335},772,883,{"name":337,"start":338,"end":339},"preset_kernels\u002FLlama3-8B-1.58-100B-tokens\u002Fbitnet-lut-kernels-tl2.h",282,393,{"name":337,"start":341,"end":342},526,637,{"name":337,"start":344,"end":345},770,881,{"name":337,"start":347,"end":348},1014,1125,{"name":350,"start":338,"end":339},"preset_kernels\u002Fbitnet_b1_58-large\u002Fbitnet-lut-kernels-tl2.h",{"name":350,"start":341,"end":342},{"lines":353,"total":323},[354,355,356,357,358,359,360,357,361,362],"for (int i = 0; i \u003C BM3200_8640; i += 32) {","__m256i vec_as[KK \u002F 2];","__m256i vec_signs[KK \u002F 8];","#pragma unroll","for (int ai = 0; ai \u003C KK \u002F 2; ai++) {","    vec_as[ai] = _mm256_loadu_si256(reinterpret_cast\u003C__m256i*>(a + i * KK \u002F 2 + ai * 32));","}","for (int as = 0; as \u003C KK \u002F 8; as++) {","    vec_signs[as] = _mm256_loadu_si256(reinterpret_cast\u003C__m256i*>(sign + i * KK \u002F 8 + as * 32));","code",{"format":275,"lines":365,"tokens":366,"first":367,"others":370,"copies":290,"excerpt":374,"kind":363},868,12635,{"name":326,"start":368,"end":369},260,1127,[371],{"name":372,"start":373,"end":348},"preset_kernels\u002Fbitnet_b1_58-3B\u002Fbitnet-lut-kernels-tl2.h",258,{"lines":375,"total":365},[376,377,360,378,379,380,381,382,383,384],"#endif","    return 0;","static bool is_type_supported(enum ggml_type type) {","    if (type == GGML_TYPE_Q4_0 ||","        type == GGML_TYPE_TL2) {","        return true;","    } else {","        return false;","    }",{"format":275,"lines":386,"tokens":387,"first":388,"others":389,"copies":250,"excerpt":392,"kind":363},271,3027,{"name":337,"start":304,"end":386},[390,391],{"name":372,"start":304,"end":386},{"name":350,"start":304,"end":386},{"lines":393,"total":386},[394,395,396,397,398,399,400,401,402,403],"#if defined(GGML_BITNET_X86_TL2)","#include \"ggml-bitnet.h\"","#define GGML_BITNET_MAX_NODES 8192","static bool initialized = false;","static bitnet_tensor_extra * bitnet_tensor_extras = nullptr;","static size_t bitnet_tensor_extras_index = 0;","static void * aligned_malloc(size_t size) {","#if defined(_WIN32)","    return _aligned_malloc(size, 64);","#else",{"format":282,"lines":405,"tokens":406,"first":407,"others":411,"copies":290,"kind":363},896,5575,{"name":408,"start":409,"end":410},"utils\u002Fconvert-ms-to-gguf-bitnet.py",47,942,[412],{"name":413,"start":409,"end":414},"utils\u002Fconvert.py",943,{"format":275,"lines":416,"tokens":417,"first":418,"others":422,"copies":436,"kind":363},89,1065,{"name":419,"start":420,"end":421},"preset_kernels\u002FLlama3-8B-1.58-100B-tokens\u002Fbitnet-lut-kernels-tl1.h",333,421,[423,426,430,433,435],{"name":419,"start":424,"end":425},585,673,{"name":427,"start":428,"end":429},"preset_kernels\u002Fbitnet_b1_58-3B\u002Fbitnet-lut-kernels-tl1.h",199,287,{"name":427,"start":431,"end":432},451,539,{"name":434,"start":428,"end":429},"preset_kernels\u002Fbitnet_b1_58-large\u002Fbitnet-lut-kernels-tl1.h",{"name":434,"start":431,"end":432},6,{"format":275,"lines":438,"tokens":439,"first":440,"others":443,"copies":276,"kind":363},41,467,{"name":326,"start":441,"end":442},418,458,[444,447,450,453,456,459,462,463],{"name":326,"start":445,"end":446},662,702,{"name":326,"start":448,"end":449},906,946,{"name":337,"start":451,"end":452},416,456,{"name":337,"start":454,"end":455},660,700,{"name":337,"start":457,"end":458},904,944,{"name":337,"start":460,"end":461},1148,1188,{"name":350,"start":451,"end":452},{"name":350,"start":454,"end":455},{"format":275,"lines":465,"tokens":466,"first":467,"others":469,"copies":475,"kind":363},105,1325,{"name":419,"start":428,"end":468},303,[470,472,474],{"name":419,"start":431,"end":471},555,{"name":427,"start":473,"end":421},317,{"name":434,"start":473,"end":421},4,{"format":275,"lines":477,"tokens":478,"first":479,"others":480,"copies":250,"kind":363},184,1621,{"name":419,"start":304,"end":477},[481,482],{"name":427,"start":304,"end":477},{"name":434,"start":304,"end":477},{"format":282,"lines":484,"tokens":485,"first":486,"others":489,"copies":290,"kind":363},253,1565,{"name":408,"start":487,"end":488},1503,1755,[490],{"name":413,"start":491,"end":492},1358,1610,{"format":275,"lines":494,"tokens":460,"first":495,"others":498,"copies":290,"kind":363},86,{"name":326,"start":496,"end":497},103,188,[499],{"name":337,"start":500,"end":501},101,186,{"sources":260,"lines":503,"tokens":504,"clones":505,"duplicatedLines":506,"duplicatedTokens":507,"percentage":259,"percentageTokens":508,"formats":509,"topClones":522,"generated":591},20469,181874,249,8478,91149,50.12,[510,511,517,518,521],{"format":275,"sources":276,"lines":277,"clones":278,"duplicatedLines":279,"percentage":280},{"format":282,"sources":512,"lines":513,"clones":514,"duplicatedLines":515,"percentage":516},24,10482,68,2635,25.14,{"format":289,"sources":290,"lines":291,"clones":292,"duplicatedLines":293,"percentage":294},{"format":308,"sources":519,"lines":520,"clones":311,"duplicatedLines":311,"percentage":311},11,1418,{"format":313,"sources":304,"lines":314,"clones":311,"duplicatedLines":311,"percentage":311},[523,536,542,549,553,561,572,578,583,587],{"format":275,"lines":323,"tokens":324,"first":524,"others":525,"copies":276,"excerpt":534,"kind":363},{"name":326,"start":327,"end":328},[526,527,528,529,530,531,532,533],{"name":326,"start":331,"end":332},{"name":326,"start":334,"end":335},{"name":337,"start":338,"end":339},{"name":337,"start":341,"end":342},{"name":337,"start":344,"end":345},{"name":337,"start":347,"end":348},{"name":350,"start":338,"end":339},{"name":350,"start":341,"end":342},{"lines":535,"total":323},[354,355,356,357,358,359,360,357,361,362],{"format":275,"lines":365,"tokens":366,"first":537,"others":538,"copies":290,"excerpt":540,"kind":363},{"name":326,"start":368,"end":369},[539],{"name":372,"start":373,"end":348},{"lines":541,"total":365},[376,377,360,378,379,380,381,382,383,384],{"format":275,"lines":386,"tokens":387,"first":543,"others":544,"copies":250,"excerpt":547,"kind":363},{"name":337,"start":304,"end":386},[545,546],{"name":372,"start":304,"end":386},{"name":350,"start":304,"end":386},{"lines":548,"total":386},[394,395,396,397,398,399,400,401,402,403],{"format":282,"lines":405,"tokens":406,"first":550,"others":551,"copies":290,"kind":363},{"name":408,"start":409,"end":410},[552],{"name":413,"start":409,"end":414},{"format":275,"lines":416,"tokens":417,"first":554,"others":555,"copies":436,"kind":363},{"name":419,"start":420,"end":421},[556,557,558,559,560],{"name":419,"start":424,"end":425},{"name":427,"start":428,"end":429},{"name":427,"start":431,"end":432},{"name":434,"start":428,"end":429},{"name":434,"start":431,"end":432},{"format":275,"lines":438,"tokens":439,"first":562,"others":563,"copies":276,"kind":363},{"name":326,"start":441,"end":442},[564,565,566,567,568,569,570,571],{"name":326,"start":445,"end":446},{"name":326,"start":448,"end":449},{"name":337,"start":451,"end":452},{"name":337,"start":454,"end":455},{"name":337,"start":457,"end":458},{"name":337,"start":460,"end":461},{"name":350,"start":451,"end":452},{"name":350,"start":454,"end":455},{"format":275,"lines":465,"tokens":466,"first":573,"others":574,"copies":475,"kind":363},{"name":419,"start":428,"end":468},[575,576,577],{"name":419,"start":431,"end":471},{"name":427,"start":473,"end":421},{"name":434,"start":473,"end":421},{"format":275,"lines":477,"tokens":478,"first":579,"others":580,"copies":250,"kind":363},{"name":419,"start":304,"end":477},[581,582],{"name":427,"start":304,"end":477},{"name":434,"start":304,"end":477},{"format":282,"lines":484,"tokens":485,"first":584,"others":585,"copies":290,"kind":363},{"name":408,"start":487,"end":488},[586],{"name":413,"start":491,"end":492},{"format":275,"lines":494,"tokens":460,"first":588,"others":589,"copies":290,"kind":363},{"name":326,"start":496,"end":497},[590],{"name":337,"start":500,"end":501},{"files":311,"minified":311,"sample":592},[],{"score":261,"grade":262,"size":594,"dimensions":598},{"lines":595,"files":596,"class":597},21077,49,"M",[599,610,619],{"id":600,"source":601,"value":602,"adjusted":603,"lines":604,"halfLife":605,"formats":606,"excluded":607,"weight":304,"score":609},"duplication","jscpd",40.3,37.1,8488,8.5,[282,275,308,289,313],[319,608],"data",4.9,{"id":611,"source":601,"value":612,"adjusted":613,"lines":614,"halfLife":615,"coverage":616,"weight":617,"score":618},"dead-code",0.2,0.7,27,7.5,52.7,0.527,93.9,{"id":620,"source":601,"value":621,"adjusted":622,"lines":623,"halfLife":624,"weight":304,"score":625},"complexity",79.7,74.6,16805,50,35.5,{"total":627,"mean":628,"files":629},2722,55.6,[630,633,635,639,643,646,648,653,658,663],{"path":408,"complexity":631,"lines":488,"bytes":632},338,72524,{"path":413,"complexity":420,"lines":492,"bytes":634},65446,{"path":337,"complexity":636,"lines":637,"bytes":638},202,1454,95735,{"path":326,"complexity":640,"lines":641,"bytes":642},160,1171,75116,{"path":372,"complexity":640,"lines":644,"bytes":645},1167,74991,{"path":350,"complexity":640,"lines":644,"bytes":647},74987,{"path":649,"complexity":650,"lines":651,"bytes":652},"src\u002Fggml-bitnet-mad.cpp",155,1056,42505,{"path":654,"complexity":655,"lines":656,"bytes":657},"utils\u002Fconvert-bitnet-embedding-to-gguf.py",93,646,27112,{"path":659,"complexity":660,"lines":661,"bytes":662},"utils\u002Fcodegen_tl2.py",84,757,42900,{"path":419,"complexity":664,"lines":665,"bytes":666},80,771,36959,{"percentage":668,"findings":614,"files":669,"byCategory":670,"largest":673},0.24,26,[671],{"category":672,"count":614},"unused-import",[674,677,679,681,683,685,687,690,692,694],{"category":672,"path":675,"name":676,"line":304,"lines":304},"gpu\u002Fconvert_checkpoint.py","json",{"category":672,"path":675,"name":678,"line":250,"lines":304},"re",{"category":672,"path":675,"name":680,"line":475,"lines":304},"sys",{"category":672,"path":675,"name":682,"line":299,"lines":304},"Path",{"category":672,"path":675,"name":684,"line":436,"lines":304},"Optional",{"category":672,"path":675,"name":686,"line":297,"lines":304},"dataclass",{"category":672,"path":675,"name":688,"line":689,"lines":304},"rearrange",9,{"category":672,"path":675,"name":691,"line":276,"lines":304},"save_file",{"category":672,"path":693,"name":678,"line":304,"lines":304},"gpu\u002Fconvert_safetensors.py",{"category":672,"path":693,"name":682,"line":250,"lines":304},1791875319029]