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