p-e-w/heretic

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

Python★ 38,226+420 that day#8 on trending

Analyzed November 3, 2026 at 0db5c31 (master) with jscpd v5 in 1.1s.

D47.3/100
Project health7,668 lines of code (S)
Duplication88
1% in python
Dead code23
19.3%
Complexity52
53.5%

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.53%duplicated over all files · 544 of 9,834 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
    118    ),
    119)
    120
    121@field_validator("instance_name")
    122@classmethod
    123def validate_instance_name(cls, value: str | None) -> str | None:
    124    if value is None:
    125        return value
    126
    127    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,0754690.98%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
toml161,5901546529.25%
python237,6685791.03%
markdown4498000%
yaml160000%
bash110000%
text18000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
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.