Sample
int-a2a4abff1f8a-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.63 | 0–1; higher is more readable |
| Dorn | 0.3 | 0–1; higher is more readable |
| Mi | 0.542 | 0–1; higher is more readable |
| LLOC | 55 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 11 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14 | 0–20; mean of three runs |
| BTTF | 0.404 | 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. | 4687.973 | −154.703 |
| Source linesThe number of non-empty source lines. | 133 | +53.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. | 5.173 | −7.759 |
Intercept 8.87 + feature contributions = -100.392 (log-odds).
Score = sigmoid(-100.392) = 0.
| Score | 0.63 |
|---|
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. | 133 | −3.673 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 101 | +2.756 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 100 | −1.874 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 132.871 | +1.447 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 96.291 | +0.749 |
| 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. | 99.94 | −0.568 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.072 | +0.246 |
Intercept 0.07 + feature contributions = -0.845 (log-odds).
Score = sigmoid(-0.845) = 0.3.
| Score | 0.542 |
|---|
| Score | 55 |
|---|
Run 1
The code demonstrates strong organization and clear intent in its purpose, being a utility class for double primitives with well-named methods and constants. However, readability is severely impaired by the presence of meaningless obfuscation at the start of almost every method, like `if (((0xFFDE ^ 0xFFDE) != 0)) { throw new AssertionError(); }`. This code is logically dead but forces the reader to parse it to understand its purpose, disrupting the reading flow. Furthermore, the `bigToDouble` method is quite complex and contains a dense block of comments and bit manipulation logic, making it challenging to follow despite the explanatory text. The code structure is mostly flat and actions are generally one per line, but the artificial statements and complex algorithm prevent the code from being easily understood at a glance.
Run 2
The code is well-structured with clear sections for constants, methods, and comments explaining complex algorithms. However, readability is significantly reduced by several factors. The presence of redundant dead-code assertion checks in every method (e.g., `if (((0x891D ^ 0x891D) != 0)) { throw new AssertionError(); }`) adds noise and confuses the reader, suggesting obfuscation or leftover debugging code. Nesting is generally flat, and method names and comments are descriptive, aiding clarity of intent. However, action granularity is inconsistent; some lines pack multiple operations (e.g., bit manipulations in `bigToDouble`), while the comments help to explain them. The reading flow is interrupted by the repetitive dead-code blocks. Code length is somewhat inflated by these blocks. Overall, the core logic is professionally written and commented, but the unnatural assertion stubs detract from clarity and make the code feel less maintainable.
Run 3
The code is logically organized and uses clear constants and comments to explain bit-level operations, but it is hard to read due to inconsistent indentation, artificial obfuscation (dead assertion checks like 'if (((0x891D ^ 0x891D) != 0))'), and deeply technical bit manipulation. The structure is mostly flat, with manageable nesting, and intent is often documented, but the unnecessary assert blocks and dense expressions reduce clarity. Some methods are concise while others (bigToDouble) are long and complex. Reading flow is disrupted by the odd formatting and dead code. Overall, the code is functional and moderately structured, but readability suffers from stylistic and intentional noise.
Run 1
Code Structure: Cohesive utility methods and named constants provide logical organization, but repeated dead assertion guards add distracting noise. Nesting: Mostly flat, with shallow conditionals and early returns. Clarity of intent: Descriptive method names and detailed comments explain complex floating-point operations; opaque hexadecimal guards and dense bitwise expressions reduce clarity. Code length: Most methods are concise, and the longer conversion method has useful explanations, but redundant guards unnecessarily inflate the code. Action granularity: Core computations generally perform one action per line; inline guard statements combine condition checking and throwing. Reading flow: The constants-to-methods organization is natural, but inconsistent indentation, tightly packed imports, and repetitive guards interrupt scanning.
Run 2
Code Structure: Focused utility methods and named constants provide logical organization, although ONE_BITS is separated from related constants. Nesting: Mostly flat, with early returns and shallow conditional branches. Clarity of intent: Descriptive names and detailed comments explain the floating-point operations, but repeated always-false hexadecimal assertions introduce distracting, unexplained noise. Code length: Most methods are concise; bigToDouble is longer but its algorithm and explanatory comments justify much of the length. The redundant assertions add unnecessary bulk. Action granularity: Computational statements generally perform one action per line, while the inline assertion blocks compress conditions and throws onto single lines. Reading flow: The conversion algorithm progresses naturally from bounds checks through rounding to bit assembly, but poorly indented assertion blocks interrupt every method and weaken visual consistency. Overall, the underlying implementation is readable despite specialized bit manipulation, but injected clutter significantly reduces readability.
Run 3
Code Structure: Well-separated utility methods and named constants provide logical organization. Nesting: Mostly flat, with shallow conditionals and early returns. Clarity of intent: Descriptive names and detailed comments explain the floating-point operations, but dense bit manipulation requires specialist knowledge. Repeated always-false XOR checks obscure intent and add distracting noise. Code length: Core methods are concise, and the longer conversion method has useful explanations; redundant assertion checks unnecessarily increase length. Action granularity: Most lines perform one action, although injected checks combine conditions and throws on single lines. Reading flow: The conversion algorithm progresses logically, but inconsistent indentation, redundant checks, and the placement of ONE_BITS at the bottom interrupt otherwise natural reading.