Sample
pyint-c4379654e7df-I04
Replace names with deterministic minifier-style shortest identifiers
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.873 | 0–1; higher is more readable |
| Dorn | 0.821 | 0–1; higher is more readable |
| Mi | 0.402 | 0–1; higher is more readable |
| LLOC | 19 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 15.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 16 | 0–20; mean of three runs |
| BTTF | 0.711 | 0–1; higher is more readable |
Views
Loading feature diagnosis…
Source regions
Feature contributions
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Source linesThe number of non-empty source lines. | 46 | +18.4 |
| Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones. | 552.943 | −18.247 |
| 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.73 | −7.094 |
Intercept 8.87 + feature contributions = 1.928 (log-odds).
Score = sigmoid(1.928) = 0.873.
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.017 | +0.772 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 47 | −0.628 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 86.957 | +0.599 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 45.875 | +0.231 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 24 | +0.093 |
| 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. | 86.894 | −0.015 |
Intercept 0.07 + feature contributions = 1.52 (log-odds).
Score = sigmoid(1.52) = 0.821.
| Score | 0.402 |
|---|
| Score | 19 |
|---|
Run 1
The code is well-structured and readable. It uses clear imports, descriptive class names, and a docstring explaining the purpose. The nesting level is minimal, and variable/method names are clear. However, the property name 'a' is unclear and likely a placeholder or error, which significantly hinders intent. The type annotations are helpful, but the inline 'type: ignore' comments are slightly noisy. Overall the code is concise and follows clean Python/Flask conventions, but the ambiguous 'a' property prevents a higher score.
Run 2
The code is generally readable with clear imports, a well-documented class, and a simple property. However, it has several issues: there are unused imports (BadRequest, HTTPException, RequestBase, _split_blueprint_path), the property name 'a' is completely unclear and likely a typo, the docstring for the property references unrelated config details, and the conditional logic with type ignores adds mild clutter. The structure is flat and actions are mostly one per line, but the intent of the property is ambiguous and the dead imports suggest poor organization. Overall readability is moderate but hindered by these clarity and maintenance concerns.
Run 3
The code is generally well-structured and readable. It uses clear imports (aliased as t, RequestBase, ResponseBase), docstrings, and type hints. The Response class has a clear purpose and inherits from Werkzeug's ResponseBase. The property 'a' is concise with a straightforward conditional. However, there are minor readability issues: the property name 'a' is ambiguous and does not convey intent (likely a placeholder or typo for max_cookie_size), and the type ignore comments add clutter. The nesting is minimal, length is reasonable, and action granularity is one action per line. Overall, the code is readable but could be improved with a more descriptive property name and reduced reliance on inline type-ignore comments.
Run 1
Code Structure: Imports, class configuration, and the property are logically organized. Nesting: A single conditional keeps the implementation flat and easy to follow. Clarity of intent: Type annotations, documentation, and the fallback comment explain the behavior, but the property name 'a' is opaque and does not communicate its cookie-size purpose. Code length: Executable code is concise, although the lengthy class documentation and version history add reading overhead. Action granularity: Each statement performs one action, with no compressed multi-action lines. Reading flow: The progression from defaults to application configuration and superclass fallback is natural. Limited blank-line separation between import groups and the class slightly weakens visual organization.
Run 2
Code Structure: Imports, class settings, and the property are logically organized, though several imports are unused. Nesting: The single conditional keeps the code flat and easy to follow. Clarity of intent: The class documentation and fallback comment explain the purpose, but the property name 'a' is uninformative and conflicts with the documented max_cookie_size behavior. Code length: The implementation is concise, although the lengthy class docstring and version history outweigh the small amount of executable code. Action granularity: Each statement performs one clear action, with no crowded multi-action lines. Reading flow: Configuration attributes lead naturally into the property, and the early return makes the fallback straightforward. Missing spacing between imports and the class, plus type-ignore annotations, add minor visual friction.
Run 3
Code Structure: Imports, class defaults, and the property are logically organized, although several imports are unused in this snippet. Nesting: Minimal nesting makes the conditional easy to follow. Clarity of intent: Documentation explains the response configuration and fallback behavior, but the property name 'a' is opaque and conflicts with its documented max-cookie-size purpose. Code length: Implementation is concise, though extensive historical documentation outweighs the executable code. Action granularity: Each statement performs one clear action. Reading flow: Class settings lead naturally into the property, and the early return keeps the fallback straightforward; limited separation around imports and the class, plus type-ignore annotations, introduce minor visual friction.