Sample
pyint-add7b57977f8-I04
Replace names with deterministic minifier-style shortest identifiers
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Dorn | 0.583 | 0–1; higher is more readable |
| Mi | 0.615 | 0–1; higher is more readable |
| LLOC | 44 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 4.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14 | 0–20; mean of three runs |
| BTTF | 0.492 | 0–1; higher is more readable |
Views
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 2849.414 | −94.031 |
| Source linesThe number of non-empty source lines. | 83 | +33.2 |
| Byte entropyHow varied the bytes in the source text are. Repeated bytes give a lower value; a more even mixture gives a higher value. | 4.659 | −6.989 |
Intercept 8.87 + feature contributions = -58.949 (log-odds).
Score = sigmoid(-58.949) = 0.
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 84 | −1.938 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 76 | +1.892 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 76 | −1.323 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 82.918 | +0.749 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 82.024 | +0.519 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.07 | +0.257 |
| Identifier layout (horizontal)How rapidly the visual pattern of identifier characters changes from left to right. It measures spatial frequency, not the meaning of the names. | 83.929 | +0.11 |
Intercept 0.07 + feature contributions = 0.336 (log-odds).
Score = sigmoid(0.336) = 0.583.
| Score | 0.615 |
|---|
| Score | 44 |
|---|
Run 1
The code shows severe readability issues. The method names 'a', 'b', 'c', and 'd' completely obscure their purposes, making the code impossible to understand without deep investigation. The parameter 'e' is used for what clearly should be 'full_name', 'f' should be 'subject', 'g' should be 'message', etc. The obfuscated naming destroys clarity of intent and reading flow. While the Django model field definitions themselves follow reasonable patterns with good formatting, the methods that follow negate this benefit. The code also appears incomplete - the UserManager is referenced but not defined, and PermissionsMixin is used without import. The action granularity is acceptable but the semantic emptiness of variable names makes the code almost unreadable. This appears to be deliberately obfuscated Django code where meaningful names have been replaced with single letters, reducing readability to near zero despite maintaining syntactically valid structure.
Run 2
The code has a clear logical structure with fields, manager, and settings separated, and model field definitions are well-formatted with good line breaking and descriptive help text. However, readability suffers from poor method naming: methods a(), b(), c(), and d() are meaningless and obscure their purpose. Method b() uses a single-letter variable name 'e' for full_name, and method d() uses 'f', 'g', 'h', 'i' for subject, message, from_email, and kwargs, which makes the code hard to understand without reading the method body. The class is well-documented but lacks a docstring for a(), and the naming choices violate Python PEP-8 best practices. Additionally, the imports include several unused modules (apps, auth, ContentType, PermissionDenied, EmptyManager), adding noise. The model attributes and Meta class are well-structured and maintain appropriate nesting, but the method names and parameters severely reduce clarity.
Run 3
The code has reasonable structure and imports, but intentional obfuscation of method names (a(), b(), c(), d()) destroys clarity of intent. Method parameters (f, g, h, i) are meaningless, making the email-sending method's purpose impossible to understand without deep inspection. The unused imports (auth, apps, ContentType, PermissionDenied, EmptyManager) add noise. While the model fields are well-organized and Django conventions are followed, the critical failure is that the public API communicates nothing about what these methods do. The get_full_name method renamed to b() loses all semantic value. Action granularity is acceptable, but reading flow collapses when encountering cryptic single-letter method names. This code appears deliberately sabotaged through renaming, dropping an otherwise well-structured Django model from readable to nearly incomprehensible. A reader would need to reverse-engineer each method's implementation to understand what it does.
Run 1
Code Structure: Fields, configuration, metadata, and methods are logically grouped, but numerous unused imports and undefined references to PermissionsMixin and UserManager reduce self-contained clarity. Nesting: Shallow nesting makes the class easy to scan. Clarity of intent: Descriptive field names, help text, and docstrings communicate the model’s purpose, but method names a–d and variables e–i obscure behavior and parameter meanings. Code length: Mostly concise; multiline field declarations are justified by their configuration, while unused imports add clutter. Action granularity: Each statement generally performs one action, with no compressed multi-statement lines. Reading flow: The progression from fields to metadata to behavior is natural, although cryptic method names interrupt understanding and force readers to inspect implementations.
Run 2
Code Structure: Fields, configuration, metadata, and methods are logically grouped, although unused imports and undefined PermissionsMixin and UserManager weaken self-contained readability. Nesting: Shallow nesting and short methods make the code easy to scan. Clarity of intent: Descriptive field names, help text, and docstrings explain the model well, but methods a–d and variables e–i obscure behavior and parameter meanings. Code length: Mostly concise; multiline field declarations are justified by their configuration, while unnecessary imports add clutter. Action granularity: Each statement performs a single clear action, without compressed or compound lines. Reading flow: The progression from fields to metadata to behavior is natural, but cryptic method names interrupt comprehension and require readers to inspect implementations.
Run 3
Code Structure: Fields, configuration, metadata, and methods are logically grouped, although several unused imports and undefined references to PermissionsMixin and UserManager distract. Nesting: Shallow nesting makes the code easy to scan; multiline field declarations remain manageable. Clarity of intent: Descriptive field names, help text, and docstrings explain the model well, but method names a–d and parameter/local names e–i obscure behavior and API meaning. Code length: Mostly appropriate for a Django model, with some unnecessary import clutter. Action granularity: Statements generally perform one action per line, and method bodies are small. Reading flow: The progression from fields to metadata to methods is natural, but cryptic method names interrupt understanding and force readers to inspect implementations or docstrings.