[{"data":1,"prerenderedAt":599},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-p-e-w\u002Fheretic":249,"page-views-\u002Ftrending\u002Fp-e-w\u002Fheretic":597},[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":277},"p-e-w\u002Fheretic","https:\u002F\u002Fgithub.com\u002Fp-e-w\u002Fheretic",[253,268],{"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-11-03",8,38226,420,"0db5c31e10ecc426440b6fb0ce4bf85352faf1a7",46,9834,20,544,5.53,null,17,47.3,"D",{"date":269,"rank":270,"stars":271,"starsToday":272,"headSha":273,"sources":259,"lines":274,"clones":261,"duplicatedLines":262,"percentage":275,"codePercentage":264,"codeSources":265,"healthScore":276,"healthGrade":267},"2026-11-04",4,38940,701,"f4cf5354032419178584e7c52af6de6c138de856",9898,5.5,47.5,{"date":269,"generatedAt":278,"name":250,"url":251,"description":279,"language":280,"stars":271,"starsToday":272,"defaultBranch":281,"headSha":273,"durationMs":282,"total":283,"formats":287,"topClones":315,"code":427,"health":501,"complexity":526,"deadCode":575},"2026-11-04T05:21:37.925Z","Training-free language model modification: Remove censorship, suppress slop, reduce sycophancy, and more","Python","master",974,{"sources":259,"lines":274,"tokens":284,"clones":261,"duplicatedLines":262,"duplicatedTokens":285,"percentage":275,"percentageTokens":286},41049,1730,4.21,[288,295,302,306,310,313],{"format":289,"sources":290,"lines":291,"clones":292,"duplicatedLines":293,"percentage":294},"toml",16,1590,15,465,29.25,{"format":296,"sources":297,"lines":298,"clones":299,"duplicatedLines":300,"percentage":301},"python",23,7730,5,79,1.02,{"format":303,"sources":270,"lines":304,"clones":305,"duplicatedLines":305,"percentage":305},"markdown",500,0,{"format":307,"sources":308,"lines":309,"clones":305,"duplicatedLines":305,"percentage":305},"yaml",1,60,{"format":311,"sources":308,"lines":312,"clones":305,"duplicatedLines":305,"percentage":305},"bash",10,{"format":314,"sources":308,"lines":255,"clones":305,"duplicatedLines":305,"percentage":305},"text",[316,339,351,369,379,387,397,404,413,418],{"format":289,"lines":317,"tokens":318,"first":319,"others":322,"copies":327,"excerpt":328,"kind":338},54,153,{"name":320,"start":321,"end":309},"tests\u002Fgemma-4e\u002Fconfig.toml",7,[323,325],{"name":324,"start":321,"end":309},"tests\u002Fmistral-3\u002Fconfig.toml",{"name":326,"start":321,"end":309},"tests\u002Fqwen3.5-moe\u002Fconfig.toml",3,{"lines":329,"total":317},[330,331,332,333,334,332,335,336,337,332],"seed = 12345","print_debug_information = true","","batch_size = 2","max_response_length = 10","modifiers = [","    { plugin = \"heretic.modifiers.abliteration.Abliteration\" },","]","tests",{"format":289,"lines":340,"tokens":341,"first":342,"others":344,"copies":327,"excerpt":349,"kind":338},44,119,{"name":320,"start":321,"end":343},50,[345,347],{"name":346,"start":321,"end":343},"tests\u002Fminicpm5\u002Fconfig.toml",{"name":348,"start":321,"end":343},"tests\u002Fqwen2.5\u002Fconfig.toml",{"lines":350,"total":340},[330,331,332,333,334,332,335,336,337,332],{"format":289,"lines":352,"tokens":353,"first":354,"others":356,"copies":360,"excerpt":361,"kind":338},37,99,{"name":320,"start":355,"end":343},14,[357],{"name":358,"start":292,"end":359},"tests\u002Fseed-oss\u002Fconfig.toml",51,2,{"lines":362,"total":352},[336,337,332,363,364,332,365,366,367,368],"n_trials = 2","n_startup_trials = 1","export_strategy = \"merge\"","checkpoint_action = \"restart\"","trial_index = 0","model_action = \"save\"",{"format":289,"lines":370,"tokens":371,"first":372,"others":375,"copies":360,"kind":338},36,98,{"name":373,"start":355,"end":374},"tests\u002Fdeepseek-v4-ara\u002Fconfig.toml",49,[376],{"name":377,"start":265,"end":378},"tests\u002Fdeepseek-v4\u002Fconfig.toml",52,{"format":289,"lines":380,"tokens":381,"first":382,"others":383,"copies":360,"kind":338},34,96,{"name":320,"start":265,"end":343},[384],{"name":385,"start":386,"end":259},"tests\u002Fgpt-oss\u002Fconfig.toml",13,{"format":289,"lines":321,"tokens":388,"first":389,"others":392,"copies":360,"kind":396},92,{"name":390,"start":341,"end":391},"config.nosyco.toml",125,[393],{"name":390,"start":394,"end":395},140,146,"data",{"format":289,"lines":398,"tokens":399,"first":400,"others":401,"copies":360,"kind":338},30,87,{"name":373,"start":261,"end":374},[402],{"name":320,"start":403,"end":343},21,{"format":289,"lines":405,"tokens":406,"first":407,"others":410,"copies":360,"kind":338},27,84,{"name":373,"start":408,"end":409},33,59,[411],{"name":385,"start":398,"end":412},56,{"format":289,"lines":405,"tokens":406,"first":414,"others":416,"copies":360,"kind":338},{"name":377,"start":370,"end":415},62,[417],{"name":320,"start":380,"end":309},{"format":296,"lines":419,"tokens":300,"first":420,"others":422,"copies":360,"kind":426},22,{"name":421,"start":341,"end":394},"src\u002Fheretic\u002Fconfig.py",[423],{"name":421,"start":424,"end":425},161,182,"code",{"sources":265,"lines":428,"tokens":429,"clones":270,"duplicatedLines":430,"duplicatedTokens":431,"percentage":432,"percentageTokens":433,"formats":434,"topClones":436,"generated":499},7085,28622,69,272,0.97,0.95,[435],{"format":296,"sources":265,"lines":428,"clones":270,"duplicatedLines":430,"percentage":432},[437,451,472,490],{"format":296,"lines":419,"tokens":300,"first":438,"others":439,"copies":360,"excerpt":441,"kind":426},{"name":421,"start":341,"end":394},[440],{"name":421,"start":424,"end":425},{"lines":442,"total":419},[443,444,332,445,446,447,448,449,332,450],"    ),",")","@field_validator(\"instance_name\")","@classmethod","def validate_instance_name(cls, value: str | None) -> str | None:","    if value is None:","        return value","    if not value.strip():",{"format":296,"lines":290,"tokens":452,"first":453,"others":457,"copies":360,"excerpt":462,"kind":426},70,{"name":454,"start":455,"end":456},"src\u002Fheretic\u002Fmodifiers\u002Fabliteration.py",156,171,[458],{"name":459,"start":460,"end":461},"src\u002Fheretic\u002Fmodifiers\u002Fara.py",174,189,{"lines":463,"total":290},[464,465,332,466,467,468,469,470,471,332],"def init(self, ctx: Context) -> None:","    model = ctx.get_model()","    print()","    print(","        f\"Loading good prompts from [bold]{format_dataset_specification(self.settings.good_prompts)}[\u002F]...\"","    )","    good_prompts = ctx.load_prompts(self.settings.good_prompts)","    print(f\"* [bold]{len(good_prompts)}[\u002F] prompts loaded\")",{"format":296,"lines":473,"tokens":474,"first":475,"others":478,"copies":360,"excerpt":480,"kind":426},18,64,{"name":454,"start":476,"end":477},78,95,[479],{"name":459,"start":378,"end":430},{"lines":481,"total":473},[482,483,484,485,486,487,488,489,469,332],"class Settings(BaseModel):","    good_prompts: DatasetSpecification = Field(","        default=SingleDatasetSpecification(","            dataset=\"mlabonne\u002Fharmless_alpaca\",","            split=\"train[:400]\",","            column=\"text\",","        ),","        description=\"Dataset of prompts that tend to produce desirable responses.\",",{"format":296,"lines":386,"tokens":409,"first":491,"others":495,"copies":360,"kind":426},{"name":492,"start":493,"end":494},"src\u002Fheretic\u002Fscorers\u002Fbert_classifier.py",148,160,[496],{"name":497,"start":381,"end":498},"src\u002Fheretic\u002Fscorers\u002Fkeyword_rate.py",108,{"files":305,"minified":305,"sample":500},[],{"score":276,"grade":267,"size":502,"dimensions":504},{"lines":298,"files":297,"class":503},"S",[505,513,520],{"id":506,"source":507,"value":308,"adjusted":508,"lines":300,"halfLife":509,"formats":510,"excluded":511,"weight":308,"score":512},"duplication","jscpd",1.5,8.5,[296],[314,396],88.3,{"id":514,"source":507,"value":515,"adjusted":516,"lines":517,"halfLife":518,"weight":308,"score":519},"dead-code",19.2,15.9,1481,7.5,23.1,{"id":521,"source":507,"value":522,"adjusted":523,"lines":524,"halfLife":343,"weight":308,"score":525},"complexity",53,46.4,4100,52.5,{"total":527,"mean":528,"files":529},899,39.1,[530,535,540,545,549,553,558,561,566,571],{"path":531,"complexity":532,"lines":533,"bytes":534},"src\u002Fheretic\u002Fmain.py",197,1485,65364,{"path":536,"complexity":537,"lines":538,"bytes":539},"src\u002Fheretic\u002Fmodel.py",126,978,39102,{"path":541,"complexity":542,"lines":543,"bytes":544},"src\u002Fheretic\u002Futils.py",112,794,26969,{"path":546,"complexity":399,"lines":547,"bytes":548},"src\u002Fheretic\u002Fsystem.py",478,15825,{"path":550,"complexity":474,"lines":551,"bytes":552},"src\u002Fheretic\u002Fplugin.py",365,13126,{"path":554,"complexity":555,"lines":556,"bytes":557},"src\u002Fheretic\u002Freproduce.py",45,385,11953,{"path":454,"complexity":380,"lines":559,"bytes":560},466,19765,{"path":562,"complexity":563,"lines":564,"bytes":565},"src\u002Fheretic\u002Fevaluator.py",32,230,8042,{"path":567,"complexity":568,"lines":569,"bytes":570},"tests\u002Ftest_config.py",28,215,7974,{"path":459,"complexity":572,"lines":573,"bytes":574},25,396,16012,{"percentage":576,"findings":321,"files":577,"byCategory":578,"largest":581},19.16,26,[579],{"category":580,"count":321},"unused-file",[582,583,584,586,588,591,594],{"category":580,"path":454,"name":332,"line":308,"lines":559},{"category":580,"path":459,"name":332,"line":308,"lines":573},{"category":580,"path":492,"name":332,"line":308,"lines":585},271,{"category":580,"path":497,"name":332,"line":308,"lines":587},157,{"category":580,"path":589,"name":332,"line":308,"lines":590},"src\u002Fheretic\u002Fscorers\u002Fkl_divergence.py",77,{"category":580,"path":592,"name":332,"line":308,"lines":593},"src\u002Fheretic\u002Fscorers\u002Fbenchmark_score.py",74,{"category":580,"path":595,"name":332,"line":308,"lines":596},"src\u002Fheretic\u002Fprogress.py",40,{"\u002Ftrending\u002Fp-e-w\u002Fheretic":598},{"views":255,"visits":255},1795510261518]