3 views

JetBrains/thinkrail

Vibe code with pi in a lightweight, real IDE that customises itself around the way you work — The Vibe You Need

TypeScript★ 6,657+722 that day#6 on trending

Analyzed October 31, 2026 at ec2f2db (main) with jscpd v5 in 2.9s. Code duplication went from 0.74% on Oct 26 to 0.69% on Oct 31.

C69.6/100
Project health347,491 lines of code (L)
Duplication80
2.7% in typescript, tsx, bash, astro, powershell, javascript, sql
Dead code96
0.4%
Complexity44
60.1%

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

0.69%duplicated code · 1,213 of 175,854 lines
107clones in code
998code files of 2,085 scanned
2.63%duplicated over all files · 1,082 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 1 generated file: apps/web/src/chat/generated/providerGlyphs.ts.

Largest clones in the code

  • 36 lines in 3 placeshtml200 tokens
    1---
    2import Analytics from "../../components/Analytics.astro";
    3import { Landing, siteMetadata } from "../../vibecoding";
    4
    5const canonicalUrl = new URL(siteMetadata.path, siteMetadata.origin);
    6const ogImageUrl = new URL(siteMetadata.openGraphImagePath, siteMetadata.origin);
    7---
    8
    9<!doctype html>
    10<html lang="en">
    

    First 10 of 36 lines.

  • 34 lines in 2 placestypescript346 tokens
    60export function normalizeCampaignValue(value: string, limit: number): string | undefined {
    61    const withoutControls = Array.from(value)
    62        .filter((character) => {
    63            const codePoint = character.codePointAt(0) ?? 0;
    64            return codePoint > 31 && (codePoint < 127 || codePoint > 159);
    65        })
    66        .join("");
    67    const normalized = Array.from(withoutControls.trim()).slice(0, limit).join("");
    68    return normalized.length > 0 ? normalized : undefined;
    69}
    

    First 10 of 34 lines.

  • 26 lines in 2 placestypescript193 tokens
    42        "Full output unavailable: temporary-file capture failed. Read the current plan with todo_list; do not repeat a mutation to retrieve its output.";
    43}
    44const footer = `\n\n[Output truncated: ${preview.totalLines} lines, ${preview.totalBytes} bytes total. ${notice}]${continuation ? `\n${continuation}` : ""}`;
    45const bounded = truncateHead(text, {
    46    maxBytes: Math.max(0, DEFAULT_MAX_BYTES - Buffer.byteLength(footer)),
    47    maxLines: DEFAULT_MAX_LINES - footer.split("\n").length,
    48});
    49return {
    50    content: [{ type: "text", text: `${bounded.content}${footer}` }],
    51    details: {
    

    First 10 of 26 lines.

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
tsx29861,981546070.98%
typescript662111,043455070.46%
html151,0908999.08%
bash3710000%
astro15501000%
powershell1361000%
javascript4168000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
typescript1,379277,4769148,8233.18%
css104,9777559511.95%
tsx34768,165576410.94%
yaml691,420131389.72%
json5417,08392361.38%
html151,0908999.08%
markdown16330,9125650.21%
diff2151163.97%
bash8909000%
astro15501000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Oct 31, 2026#66,657 (+722)2,085403,4581,0822.63%0.69%C 69.6ec2f2db
Oct 30, 2026#26,138 (+1,117)1,997382,2681,0502.69%0.74%C 69.4df7cb6d
Oct 29, 2026#15,293 (+1,068)1,987376,1381,0472.73%0.75%C 69.5940d15c
Oct 28, 2026#54,244 (+1,204)1,964371,8421,0422.75%0.76%C 69.4ef3d5b6
Oct 27, 2026#33,165 (+1,173)1,876349,9291,0142.84%0.75%C 69.78e7ced3
Oct 26, 2026#52,012 (+51)1,848340,9049882.84%0.74%C 69.9d299f20

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