Sample
pyint-957ee07bd07b-I03
Replace names with length-matched meaningful but unrelated identifiers
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Dorn | 0.667 | 0–1; higher is more readable |
| Mi | 0.557 | 0–1; higher is more readable |
| LLOC | 31 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 5.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13 | 0–20; mean of three runs |
| BTTF | 0.547 | 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. | 1455.767 | −48.04 |
| Source linesThe number of non-empty source lines. | 43 | +17.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.678 | −7.017 |
Intercept 8.87 + feature contributions = -28.987 (log-odds).
Score = sigmoid(-28.987) = 0.
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 43 | +0.75 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 43 | −0.566 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 84 | +0.551 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 44 | −0.522 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 42.847 | +0.189 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.085 | +0.112 |
| 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.955 | +0.109 |
Intercept 0.07 + feature contributions = 0.694 (log-odds).
Score = sigmoid(0.694) = 0.667.
| Score | 0.557 |
|---|
| Score | 31 |
|---|
Run 1
The code is unreadable due to heavily obfuscated parameter names that completely obscure intent (nextNode, nextData, localKey, finalKey, age, score, value). The class appears to be HTTPBasicAuth but parameter names suggest unrelated concepts like linked lists and game scoring. While the structure is logically organized and nesting is minimal, the readability is destroyed by misleading naming. The overload decorators add unnecessary complexity without clarity benefit. Action granularity is acceptable - each line performs one logical operation. Code length is appropriate and concise. Reading flow is disrupted because the reader must constantly translate meaningless identifiers to understand the actual purpose of storing username/password credentials and attaching Authorization headers. The __eq__ and __ne__ methods are clear in structure but their parameter names (value, score) violate Python conventions and create confusion. The core issue is a complete mismatch between the domain (HTTP authentication) and the variable naming chosen.
Run 2
The code suffers from severe readability issues due to misleading variable and parameter names that obscure intent. For example, __init__ parameters are named 'localKey' and 'finalKey' instead of 'username' and 'password', and __call__ uses 'age' for a request object. The overload signatures use meaningless names like 'nextNode' and 'nextData'. While the structure is logical and methods are short, the parameter naming breaks clarity of intent throughout. The __eq__ method uses a list with getattr calls which adds complexity compared to a simpler tuple comparison. Unnecessary imports (hashlib, os, re, threading, time, warnings, b64encode) suggest copied code. The class itself is simple and flat, but the poor naming choices dominate the readability score. Type hints are present which helps, but they are undermined by the confusing parameter names that contradict the actual types and purposes.
Run 3
The code suffers from severely obfuscated variable naming that obscures intent. Parameters like 'nextNode', 'nextData', 'localKey', 'finalKey', 'score', and 'age' are misleading and unrelated to their actual roles (username, password, request). Overload signatures contradict the actual implementation types, adding confusion. While the structure is logically organized and nesting is flat, clarity of intent is critically compromised. The __eq__ method uses an unnecessary list inside all(), and __ne__ is redundant. Action granularity and reading flow are adequate, but the poor naming choices force readers to infer meaning from context rather than explicit labels. The class would be readable if variables were sensibly named, but as presented, it reads like deliberately obfuscated code.
Run 1
Code Structure: Methods are logically grouped in a small authentication class, but numerous unused imports clutter the snippet, and supporting definitions are absent. Nesting: Very shallow, making control flow easy to follow. Clarity of intent: The class name, docstring, and username/password attributes communicate its purpose, but arbitrary parameter names such as localKey, finalKey, age, and score obscure meaning. Inconsistent names across overloads further confuse the constructor interface. Code length: The class is concise, although the import block and list-based all() comparison add unnecessary bulk. Action granularity: Most lines perform one clear action; compact overload declarations remain understandable. Reading flow: The progression from initialization to comparison to request authentication is natural, but misleading names and unrelated imports interrupt comprehension.
Run 2
Code Structure: The class is logically organized into initialization, comparison, and request authentication methods, but numerous unused imports add clutter. Nesting: Very shallow nesting makes the code easy to scan. Clarity of intent: The class name, docstring, attributes, and Authorization assignment clearly convey its purpose, but arbitrary parameter names such as nextNode, localKey, score, and age obscure meaning. Inconsistent parameter names across overloads and implementation further confuse the constructor interface. AuthBase, PreparedRequest, and _basic_auth_str are not defined or imported in the snippet, limiting standalone understanding. Code length: The implementation is compact, although the imports and list-based all() comparison introduce unnecessary verbosity. Action granularity: Most lines perform one clear action; the inline overload declarations are compact but slightly less readable. Reading flow: Method ordering is natural, but inconsistent naming and unrelated imports interrupt an otherwise straightforward flow.
Run 3
Code Structure: The class is logically divided into initialization, equality, and request authentication methods, but numerous unused imports add clutter. Nesting: The code is mostly flat, with only shallow nesting in the equality comparison. Clarity of intent: The class name, docstring, and Authorization assignment clearly establish its purpose, but parameter names such as nextNode, nextData, localKey, finalKey, score, and age obscure their roles. Inconsistent parameter names across overloads and the implementation further hinder understanding. Code length: Methods are concise, though the all() call with a list is unnecessarily verbose for two comparisons. Action granularity: Statements generally perform one action per line. Reading flow: The method sequence is natural, but misleading names and missing definitions or imports for AuthBase, PreparedRequest, and _basic_auth_str make the snippet harder to understand independently.