Sample
int-3b748a6f158a-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.813 | 0–1; higher is more readable |
| Dorn | 0.624 | 0–1; higher is more readable |
| Mi | 0.57 | 0–1; higher is more readable |
| LLOC | 19 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 8.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.67 | 0–20; mean of three runs |
| BTTF | 0.561 | 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. | 1571.233 | −51.851 |
| Source linesThe number of non-empty source lines. | 60 | +24 |
| Byte entropyHow varied the bytes in the source text are. Repeated bytes give a lower value; a more even mixture gives a higher value. | 5.104 | −7.656 |
Intercept 8.87 + feature contributions = -26.637 (log-odds).
Score = sigmoid(-26.637) = 0.
| Score | 0.813 |
|---|
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. | 61 | −1.123 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 45 | +0.819 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 45 | −0.612 |
| 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. | 73.934 | +0.534 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 59.773 | +0.426 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 72.754 | +0.369 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.095 | +0.022 |
Intercept 0.07 + feature contributions = 0.505 (log-odds).
Score = sigmoid(0.505) = 0.624.
| Score | 0.57 |
|---|
| Score | 19 |
|---|
Run 1
The code is readable in terms of its logical structure and intent; view assertions are neatly grouped, with clear method names and concise one-action methods. However, it suffers from significant noise: dead no-op `if (((0x...` checks with `throw new AssertionError()` on every method constructor, multiple blank lines, and misleading formatting reduce clarity. These deliberate obfuscations tangle the reading flow and make the code seem algorithmically cluttered. While component granularity is appropriate, unnecessary repetitive code lengthens it. Nesting is mostly flat inside lambdas but the extra `if` statements add unexplained branching. Without those distractions, the snippet would follow standard Spring MVC test conventions and be quite readable.
Run 2
The code has a clear overall structure with logical imports, Javadoc, and two overloaded methods. However, readability is significantly reduced by the injected dead code lines 'if (((0x4BA6 ^ 0x4BA6) != 0)) { throw new AssertionError(); }' which are meaningless and disrupt the reading flow. The methods are concise and perform one logical action, but the lambda bodies could be extracted to improve clarity. Nesting is shallow, which is good. The intent of the class is obvious from the Javadoc and method names. Overall, the code is understandable but the artificial conditionals strongly hurt clarity and natural reading flow.
Run 3
The code has basic structure with clear methods, but readability is severely impacted by repetitive, meaningless injected assertions (`if (((0x4BA6 ^ 0x4BA6) != 0)) { throw new AssertionError(); }`) which add noise and confuse intent. Nesting is shallow and overall flow is natural, but the dead-code checks break reading flow and increase length unnecessarily. Action granularity is acceptable, with one main action per line in lambdas, but multiple concerns are crammed into the conditional checks. Clarity of intent is mixed: method names and Javadocs are helpful, but the injected code obscures actual logic. Overall, it's readable by structure but polluted by irrelevant statements, making it feel tangled and longer than it should be.
Run 1
Code Structure: The class is logically organized around two clearly documented assertion overloads, though their null-check logic is duplicated. Nesting: Methods remain shallow, with simple lambdas and conditional checks. Clarity of intent: Names and documentation explain the intended behavior, but unexplained hexadecimal XOR conditions that are always false introduce distracting, meaningless logic. Code length: The functional implementation is concise; dead checks and excess blank lines add unnecessary bulk. Action granularity: Most statements perform one action per line, but the injected checks compress a condition and throw into single lines. Reading flow: The normal assertion sequence is easy to follow, but unindented dead checks interrupt the otherwise consistent formatting and force readers to investigate irrelevant code.
Run 2
Code Structure: The class is logically organized into a constructor and two clearly documented assertion overloads. Nesting: Lambda bodies contain only a shallow null check, making the meaningful logic easy to follow. Clarity of intent: Method names, parameter names, and documentation clearly express view-name assertions, but hexadecimal XOR conditions introduce unexplained, always-false checks. Code length: The implementation is fairly concise, though repeated dead checks and duplicated ModelAndView validation add unnecessary length. Action granularity: Most meaningful statements occupy separate lines; the injected checks compress a condition and throw statement onto one line. Reading flow: The normal retrieve-check-assert sequence is natural, but unindented dead-code lines and inconsistent whitespace interrupt scanning.
Run 3
Code Structure: The class is logically organized, with a constructor and two clearly documented assertion overloads. Nesting: Shallow lambda bodies and simple null checks are easy to follow. Clarity of intent: Method names, documentation, and assertion messages clearly communicate the purpose, but hexadecimal XOR checks introduce confusing, always-false conditions. Code length: The implementation is reasonably concise, though repeated null handling and unnecessary checks add clutter. Action granularity: Most statements occupy separate lines, but the inline condition-and-throw statements compress multiple elements onto one line. Reading flow: The main assertion paths read naturally, but unindented checks and inconsistent whitespace interrupt the flow.