8 views

p-e-w/heretic

Training-free language model modification: Remove censorship, suppress slop, reduce sycophancy, and more

Python★ 38,940+701 that day#4 on trending

Analyzed November 4, 2026 at f4cf535 (master) with jscpd v5 in 1.0s.

D47.5/100
Project health7,730 lines of code (S)
Duplication88
1% in python
Dead code23
19.2%
Complexity53
53%

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

5.5%duplicated over all files · 544 of 9,898 lines
20clones
46files scanned

Only 17 of the files count as code, too few for a code-only percentage; the numbers above cover every file.

Largest clones in the code

  • 22 lines in 2 placespython79 tokens
    119    ),
    120)
    121
    122@field_validator("instance_name")
    123@classmethod
    124def validate_instance_name(cls, value: str | None) -> str | None:
    125    if value is None:
    126        return value
    127
    128    if not value.strip():
    

    First 10 of 22 lines.

  • 16 lines in 2 placespython70 tokens
    156def init(self, ctx: Context) -> None:
    157    model = ctx.get_model()
    158
    159    print()
    160    print(
    161        f"Loading good prompts from [bold]{format_dataset_specification(self.settings.good_prompts)}[/]..."
    162    )
    163    good_prompts = ctx.load_prompts(self.settings.good_prompts)
    164    print(f"* [bold]{len(good_prompts)}[/] prompts loaded")
    165
    

    First 10 of 16 lines.

  • 18 lines in 2 placespython64 tokens
    78class Settings(BaseModel):
    79    good_prompts: DatasetSpecification = Field(
    80        default=SingleDatasetSpecification(
    81            dataset="mlabonne/harmless_alpaca",
    82            split="train[:400]",
    83            column="text",
    84        ),
    85        description="Dataset of prompts that tend to produce desirable responses.",
    86    )
    87
    

    First 10 of 18 lines.

1 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python177,0854690.97%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
toml161,5901546529.25%
python237,7305791.02%
markdown4500000%
yaml160000%
bash110000%
text18000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 4, 2026#438,940 (+701)469,898205.5%—D 47.5f4cf535
Nov 3, 2026#838,226 (+420)469,834205.53%—D 47.30db5c31

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