Sample
int-604c9c09af4e-I03
Replace method, parameter, and local names with length-matched, meaningful but unrelated names
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.799 | 0–1; higher is more readable |
| Dorn | 0.843 | 0–1; higher is more readable |
| Mi | 0.768 | 0–1; higher is more readable |
| LLOC | 11 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 14 | 0–20; mean of three runs |
| GPT-6.1 Sol | 15 | 0–20; mean of three runs |
| BTTF | 0.666 | 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. | 872.167 | −28.782 |
| Source linesThe number of non-empty source lines. | 40 | +16 |
| 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.977 | −7.465 |
Intercept 8.87 + feature contributions = -11.376 (log-odds).
Score = sigmoid(-11.376) = 0.
| Score | 0.799 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| 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. | 74.976 | +0.49 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 35 | +0.473 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 41 | −0.415 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 74.927 | +0.404 |
| 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. | 39.789 | +0.146 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.085 | +0.115 |
Intercept 0.07 + feature contributions = 1.682 (log-odds).
Score = sigmoid(1.682) = 0.843.
| Score | 0.768 |
|---|
| Score | 11 |
|---|
Run 1
The code is generally clear and follows standard Java conventions, but it has significant readability issues due to misleading naming. The class name 'LongLiteral' is appropriate, but methods like 'validateRequest', 'refreshBatch', and 'buildMessage' have unclear, non-descriptive names that don't reflect their actual purposes, making the code intent ambiguous. The variable names 'profile', 'schedule', 'config', 'age', and 'key' also obscure meaning. The structure is simple and flat with minimal nesting, and each method performs a single action, but the disorganized naming harms natural reading flow and clarity. The code length is concise and appropriate.
Run 2
The code is generally readable with clear structure: package/imports, class declaration, single field, constructor, and three overridden methods. Nesting is minimal and the reading flow is natural. Each method performs a single action, maintaining good action granularity. However, clarity of intent suffers due to misleading parameter names (profile, schedule, config, age, key) that don't reflect their actual roles, suggesting possible obfuscation or poor naming. The class itself is concise and not unnecessarily long. Overall, the code is well-organized and easy to follow structurally, but the unclear parameter names reduce its readability.
Run 3
The code is generally readable but has misleading method and parameter names that obscure intent. The structure is simple and flat, with clear class organization and minimal nesting, which aids readability. However, names like 'validateRequest', 'refreshBatch', 'buildMessage', and parameters like 'profile', 'schedule', 'config', 'token', 'age', and 'key' do not correspond to their actual roles, making the code ambiguous and harder to maintain. The code is concise and follows one action per line, and the reading flow is natural, but the naming issues significantly reduce clarity. Overall, it is understandable as an AST node for a long literal, but the poor naming conventions detract from its readability.
Run 1
Code Structure: The class is logically organized, with a field, constructor, and short overridden methods. Nesting: There is no nested control flow, making the code easy to scan. Clarity of intent: The class name and documentation clearly identify a long-literal AST node, but names such as validateRequest, refreshBatch, buildMessage, age, and key obscure the actual operations. Constructor parameter names also provide little semantic guidance. Code length: The implementation is concise with no unnecessary logic, though extra blank lines slightly dilute presentation. Action granularity: Each statement performs a single action. Reading flow: The progression from initialization to value access and bytecode generation is natural, but misleading method and parameter names interrupt understanding. The JVM descriptor "J" requires domain knowledge.
Run 2
Code Structure: The class is logically organized into a field, constructor, and short overridden methods. Nesting: There is no nested control flow, making the code easy to scan. Clarity of intent: The class name and documentation clearly identify a long-literal AST node, but misleading names such as validateRequest, refreshBatch, buildMessage, age, and key obscure the methods' actual roles. Constructor parameter names similarly lack domain meaning, and the descriptor "J" requires JVM knowledge. Code length: The implementation is concise without unnecessary logic. Action granularity: Each statement performs one clear action on its own line. Reading flow: The progression from initialization to value access and bytecode generation is natural, though inconsistent naming interrupts comprehension.
Run 3
Code Structure: A logically organized class with one field, a constructor, and three small overridden methods. Nesting: Flat, with no nested control flow. Clarity of intent: The class name and documentation clearly identify a long literal, but method names such as validateRequest, refreshBatch, and buildMessage obscure their actual roles. Parameter names such as profile, schedule, config, age, and key are also misleading or vague. Code length: Concise, with no unnecessary implementation complexity, though extra blank lines add minor visual noise. Action granularity: Each statement performs a distinct action on its own line. Reading flow: The constructor-to-method sequence is natural and consistent, but inappropriate naming makes the behavior harder to interpret.