Sample
int-543adddb15b2-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.769 | 0–1; higher is more readable |
| Dorn | 0.407 | 0–1; higher is more readable |
| Mi | 0.525 | 0–1; higher is more readable |
| LLOC | 40 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 7.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12.67 | 0–20; mean of three runs |
| BTTF | 0.535 | 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. | 2349.203 | −77.524 |
| Source linesThe number of non-empty source lines. | 88 | +35.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.771 | −7.157 |
Intercept 8.87 + feature contributions = -40.611 (log-odds).
Score = sigmoid(-40.611) = 0.
| Score | 0.769 |
|---|
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. | 89 | −2.115 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 74 | +1.822 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 68 | −1.14 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 107.955 | +0.937 |
| 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. | 107.966 | −0.908 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 87.743 | +0.817 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.083 | +0.138 |
Intercept 0.07 + feature contributions = -0.378 (log-odds).
Score = sigmoid(-0.378) = 0.407.
| Score | 0.525 |
|---|
| Score | 40 |
|---|
Run 1
The code is severely impaired by numerous dead-code `if` blocks that wrap an impossible AssertionError. These redundant constructs break the reading flow, inflate the code length, and obscure otherwise simple, one-line methods. The class itself is logically structured with clear intent—a non-owning wrapper with proper JavaDoc—but the absurd conditionals in every method dominate the reader's experience. Nesting is minimal, but action granularity is harmed because each method must be preceded by a meaningless guard. The overridden `retain`, `touch`, and `deallocate` methods are straightforward, but the injected clutter makes the code look obfuscated. If the nonsense conditionals were removed, readability would likely be 16-18.
Run 2
The code has good documentation and clear intent, but readability is severely damaged by obfuscated dead-code lines like `if (((0xAC11 ^ 0xAC11) != 0)) { throw new AssertionError(); }` inserted repeatedly. These lines break reading flow, add noise, and obscure the otherwise simple methods. Structure is logical and nesting is minimal, but action granularity suffers because each method contains an irrelevant conditional. The class is concise, but the repetitive false assertions make it unnecessarily long and confusing. Removing those lines would result in highly readable code.
Run 3
The code has reasonable structure and Javadoc, but readability is severely undermined by the presence of meaningless dead-code assertions (e.g., `if (((0xAC11 ^ 0xAC11) != 0)) { throw new AssertionError(); }`) injected into every method. These add noise, break natural reading flow, and obscure intent. Nesting is flat, and actions are mostly one per line, but the repeated bogus guards make the code look tangled and confusing. Class purpose is documented clearly; however, the implementation violates clarity of intent by mixing real logic with nonsensical conditional checks. Length is inflated without value. Overall, the code would be moderately readable if the dead assertions were removed; as written, it scores poorly on criteria 1, 3, and 6.
Run 1
Code Structure: The class is logically organized into fields, constructor, accessors, reference-counting methods, and cleanup. Nesting: Shallow conditionals and short methods keep complexity low. Clarity of intent: Descriptive names and documentation clearly explain non-owning credential semantics, but repeated hexadecimal XOR checks are pointless and distracting. Code length: The implementation is compact overall, yet every method contains an unnecessary assertion guard that adds substantial noise. Action granularity: Most meaningful operations occupy separate lines, while the injected guards compress a conditional and throw into one line. Reading flow: Conventional method organization supports natural reading, but unindented guards repeatedly interrupt it and undermine formatting consistency.
Run 2
Code Structure: Fields, constructor, and overridden methods are logically organized, but repeated no-op assertions clutter every method. Nesting: Shallow conditionals make control flow easy to follow. Clarity of intent: Descriptive names and documentation clearly explain non-owning credential management; unexplained hexadecimal XOR checks obscure otherwise straightforward behavior. Code length: Core logic is concise, but redundant assertions unnecessarily inflate it. Action granularity: Most statements occupy separate lines, while injected checks combine conditionals and throws on one line. Reading flow: Consistent method organization supports natural reading, but unindented assertions repeatedly interrupt the flow and distract from meaningful operations.
Run 3
Code Structure: Fields, constructor, and interface methods are logically organized, but repeated dead-code assertions clutter every method. Nesting: Shallow conditionals keep control flow easy to follow. Clarity of intent: Descriptive names and documentation clearly explain non-owning credential management; unexplained hexadecimal XOR checks obscure that purpose. Code length: Core methods are concise, but redundant assertions unnecessarily expand the class. Action granularity: Most meaningful statements perform one action per line, while inline assertion blocks combine condition checking and throwing on a single line. Reading flow: Conventional method ordering and simple delegation support natural reading, but unindented assertions repeatedly interrupt the flow and create visual inconsistency.