Sample
pyint-0ce36c22a695-I02
Shorten method, parameter, and local names without collisions
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Dorn | 0.096 | 0–1; higher is more readable |
| Mi | 0.45 | 0–1; higher is more readable |
| LLOC | 160 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 4 | 0–20; mean of three runs |
| GPT-6.1 Sol | 11 | 0–20; mean of three runs |
| BTTF | 0.298 | 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. | 10073.379 | −332.421 |
| Source linesThe number of non-empty source lines. | 245 | +98 |
| 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.487 | −6.731 |
Intercept 8.87 + feature contributions = -232.282 (log-odds).
Score = sigmoid(-232.282) = 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. | 246 | −7.674 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 219 | +6.838 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 219 | −4.605 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 244.938 | +3.014 |
| 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. | 111.972 | −1.077 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 111.992 | +1.002 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.078 | +0.186 |
Intercept 0.07 + feature contributions = -2.246 (log-odds).
Score = sigmoid(-2.246) = 0.096.
| Score | 0.45 |
|---|
| Score | 160 |
|---|
Run 1
The code is largely unreadable due to pervasive use of cryptic, abbreviated variable names (e.g., 'met', 'url2', 'rea', 'non', 'bas', 's4', 'r3', 'pat3', 'kwa2') that obscure intent. While class-level structure exists, method internals are tangled and lack clear separation of concerns. Nesting is moderate but flow is interrupted by inline lambdas, scattered comments, and mixed levels of abstraction. Multiple actions are packed into some lines (especially f-string or conditional blocks), reducing clarity. Overloads and type hints add noise rather than clarity due to inconsistent naming. The reading flow feels disorganized, with unexplained abbreviations, inconsistent parameter names across similar methods ('handle' vs 'handle2'), and unclear aliases like 'tel', 'see', 'cno', 'hA1'. The overall effect is code that is hard to follow without significant mental mapping, despite being functionally structured into methods.
Run 2
The code is highly unreadable due to severely obfuscated naming conventions. Parameters like use3, pas3, use2, pas2, met, url2, r2, r3, r5, kwa, kwa2, s2, s3, d2, x2, x3, x4, x5 and attributes like rea, non, alg2, qop2, opa, ent, pat2, hA1, hA2, ncv, cno, res, bas, r4, s4, pat3, pre, tel, oth, oth2 obscure meaning and degrade clarity of intent, reading flow, and action granularity. Variable shadowing (e.g., hash, str) and inconsistent naming further confuse. The code structure suffers from 'handle2' mixing response validation, body rewinding, header parsing, connection management, hook registration, and digest construction in one long method, violating single-responsibility and creating deep, tangled logic. Although some helper closures isolate digest algorithms, the overall lack of meaningful names makes even flat code difficult to follow and forces the reader to reverse-engineer intent from operations rather than declarations. Concise comments provide some guidance, but they cannot compensate for pervasive cryptic abbreviations and repeated one-letter suffixes. This code is maintainable only with significant effort and risks introducing bugs during modification.
Run 3
This code is extremely difficult to read due to pervasive misleading naming (use3, pas3, met, url2, rea, non, qop2, alg2, opa, pat2, bas, s4, pre, r5, kwa, oth2, etc.), fragmented logic, and poor structure. The overload decorators are decorative rather than functional, and the __init__ parameters are confusingly defined. Helper functions are nested inside build(), breaking flow and obscuring intent. Comments are sparse and sometimes refer to unimplemented features. Variables are reused and redefine constants, with type ignore comments adding noise. The code does not follow natural reading flow and mixes authentication logic, state management, and request handling without clear separation. Even though it is syntactically valid and somewhat organized into methods, the naming and action granularity make it nearly unreadable.
Run 1
Code Structure: Methods separate initialization, digest construction, response handling, and request preparation, but build combines several responsibilities. Nesting: Mostly moderate, with early returns limiting depth; nested hashing functions add complexity. Clarity of intent: The class purpose and comments are helpful, but names such as init2, handle2, rea, non2, and r3 obscure roles. KD references an undefined hash_utf8 rather than the selected hash function, disrupting comprehension. Code length: Repeated hashing wrappers and verbose thread-local access make the implementation longer than necessary. Action granularity: Generally one operation per line, with sensible statement separation; assignment expressions modestly increase reading effort. Reading flow: Authentication proceeds in a broadly logical sequence, but numbered identifiers, inconsistent naming, sparse method documentation, and stale comments force readers to repeatedly trace values.
Run 2
Code Structure: Methods separate initialization, digest construction, response handling, and request preparation, but build combines several responsibilities. Nesting: Mostly moderate, with early returns limiting depth; nested hashing functions add complexity. Clarity of intent: The class docstring, annotations, and comments help, but cryptic names such as init2, handle2, rea, non2, and r3 substantially obscure meaning. KD references an undefined hash_utf8 rather than the selected hash function, disrupting comprehension. Code length: Repeated hashing wrappers and verbose thread-local access make the implementation longer than necessary; some imports and placeholders add clutter. Action granularity: Generally one action per line, with readable intermediate assignments; the standalone r3.content access has a nonobvious side effect, though its comment explains it. Reading flow: Authentication steps follow a broadly logical sequence, but inconsistent naming, stale comments about lambdas, and fragmented formatting force readers to repeatedly reconstruct context.
Run 3
Code Structure: Methods separate initialization, digest construction, response handling, and request setup, but build mixes several responsibilities. Nesting: Mostly moderate, with early returns limiting depth; nested hashing functions add complexity. Clarity of intent: The class purpose and comments help, but abbreviated, numbered names such as init2, handle2, rea, and s2 obscure meaning. The undefined hash_utf8 reference and shadowing of hash further confuse interpretation. Code length: Repeated hashing helpers, unused imports, and verbose thread-local access make the implementation longer than necessary. Action granularity: Most lines perform one action, and request preparation steps are clearly separated. Reading flow: The authentication sequence is broadly logical, but inconsistent naming, stale comments referring to lambdas, and sparse method documentation interrupt comprehension.