2 views

JustVugg/colibri

A hierarchical inference engine for frontier MoE models: hot experts on the GPU (CUDA, Vulkan), warm ones in RAM, cold ones streamed from NVMe. Written in C, runs on the hardware you already own.

C★ 47,363+802 that day#3 on trending

Analyzed November 4, 2026 at 0a5504a (main) with jscpd v5 in 5.6s. Code duplication went from 6.54% on Sep 11 to 3.45% on Nov 4.

D53.2/100
Project health439,964 lines of code (L)
Duplication64
5.5% in c, python, c-header, glsl, bash, objectivec, typescript, makefile, tsx, batch, cpp, nix, powershell, javascript, docker
Dead code89
1.2%
Complexity36
73.2%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

3.45%duplicated code · 8,356 of 242,093 lines
968clones in code
413code files of 1,591 scanned
10.21%duplicated over all files · 4,713 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 6 generated files: c/ggml_grids.h, c/gliner_unicode.h, c/qwen38_nfc_tables.h, c/tok_unicode_deepseek.h, c/tok_unicode.h, c/vk_igpu_threshold.h.

Largest clones in the code

  • 7 lines in 3 placesc450 tokens
    14714/* static, not a stack local: the PILOT prefetch worker is detached and
    14715 * loops forever, and it keeps this address in the global pilot_m. A stack
    14716 * Model dies when main returns while that thread is still dereferencing
    14717 * it -- ASan: stack-use-after-return, READ of size 8, in a worker thread,
    14718 * with the run's tokens already correct (#1262). Static storage outlives
    14719 * every thread, so the pointer the worker holds stays valid. */
    14720static Model m; double t0=now_s(); model_init(&m,snap,cap,ebits,dbits);
    
    3381/* static, not a stack local: the PILOT prefetch worker is detached and
    3382 * loops forever, and it keeps this address in the global pilot_m. A stack
    3383 * Model dies when main returns while that thread is still dereferencing
    3384 * it -- ASan: stack-use-after-return, READ of size 8, in a worker thread,
    3385 * with the run's tokens already correct (#1262). Static storage outlives
    3386 * every thread, so the pointer the worker holds stays valid. */
    3387    static Model m; model_init(&m, snap, cap, bits);
    
  • 34 lines in 2 placesc712 tokens
    257static int utf8_decode(const char *s,int i,int n,int *adv){
    258    if(!s||i<0||i>=n){if(adv)*adv=0;return 0xfffd;}
    259    unsigned char c=(unsigned char)s[i]; int cp,a;
    260    if(c<0x80){cp=c;a=1;}
    261    else if((c>>5)==6){cp=c&0x1F;a=2;}
    262    else if((c>>4)==14){cp=c&0x0F;a=3;}
    263    else if((c>>3)==30){cp=c&0x07;a=4;}
    264    else {cp=c;a=1;}
    265    for(int k=1;k<a;k++){
    266        if(i+k>=n||((unsigned char)s[i+k]&0xC0)!=0x80){if(adv)*adv=1;return c;}
    

    First 10 of 34 lines.

  • 18 lines in 2 placesc655 tokens
    768    return 0;
    769}
    770
    771/* Decode token ids to text using g_tok, writing to stdout. Handles Qwen's
    772 * byte-representation markers (Ġ=space, Ċ=newline, ▁=space) and <0xXX> byte
    773 * fallback. Only active when a tokenizer was loaded. */
    774/* ---- streaming / incremental decode support ---- */
    775static int    g_stream = 0;            /* 1 = emit tokens as they are generated */
    776static unsigned char g_sbuf[16];       /* carries a partial UTF-8 char across tokens */
    777static int    g_sbn = 0;
    

    First 10 of 18 lines.

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
c3691,9384924,2574.63%
c-header15364,8572782,1773.36%
python18378,4341731,7292.2%
objectivec12,578221676.48%
tsx151,9652170.87%
bash13779191.16%
typescript101,147000%
cpp1249000%
powershell1146000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
txt13052,0002,66329,37456.49%
c356158,32688414,3039.03%
python485158,2445195,4443.44%
c-header16187,4632862,2362.56%
glsl6211,2771341,57313.95%
json10721,281641,7088.03%
bash8811,511444724.1%
objectivec34,033332526.25%
markup73,3463369020.62%
yaml83,251212006.15%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 4, 2026#347,363 (+802)1,591555,9014,71310.21%3.45%D 53.20a5504a
Nov 3, 2026#546,716 (+675)1,591555,9014,71310.21%3.45%D 53.20a5504a
Sep 18, 2026#1135,849 (+873)674214,2739005.23%6.37%—a8f2ca6
Sep 17, 2026#335,169 (+1,546)674214,2739005.23%6.37%—a8f2ca6
Sep 16, 2026#234,107 (+2,026)674214,2739005.23%6.37%—a8f2ca6
Sep 15, 2026#132,433 (+2,173)674214,2739005.23%6.37%—f028d26
Sep 14, 2026#130,246 (+868)674214,2739005.23%6.37%—f028d26
Sep 11, 2026#927,535 (+98)626198,1198125.18%6.54%—fd93c41

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.