Sample
int-863f300a6777-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.665 | 0–1; higher is more readable |
| Dorn | 0.344 | 0–1; higher is more readable |
| Mi | 0.466 | 0–1; higher is more readable |
| LLOC | 40 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 11.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14 | 0–20; mean of three runs |
| BTTF | 0.379 | 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. | 3018.823 | −99.621 |
| Source linesThe number of non-empty source lines. | 120 | +48 |
| 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.629 | −6.944 |
Intercept 8.87 + feature contributions = -49.695 (log-odds).
Score = sigmoid(-49.695) = 0.
| Score | 0.665 |
|---|
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. | 120 | −3.212 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 76 | +1.892 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 75 | −1.3 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 119.802 | +1.265 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 99.983 | +0.809 |
| 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.992 | −0.57 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.056 | +0.4 |
Intercept 0.07 + feature contributions = -0.647 (log-odds).
Score = sigmoid(-0.647) = 0.344.
| Score | 0.466 |
|---|
| Score | 40 |
|---|
Run 1
The code has a clear overall structure with logical organization and good documentation, but it is marred by several readability issues. The presence of bizarre assertion statements like `if (((0x366F ^ 0x366F) != 0)) { throw new AssertionError(); }` at the start of every method is confusing and disrupts reading flow. These statements serve no evident purpose and should be removed. Nesting is generally flat, and method granularity is acceptable, but the `findRedundantOffset` method mixes loop logic, comments, and return statements in a way that obscures intent. Variable names like `soFar` are vague. The code length is reasonable, but comments sometimes restate the obvious while failing to explain critical invariants. Overall, the code would be much more readable without the spurious assertions and with clearer naming and comment refinement.
Run 2
The code has good structure with logical method separation and helpful comments explaining complex logic. However, readability is significantly reduced by the obfuscated assertions `if (((0x366F ^ 0x366F) != 0)) { throw new AssertionError(); }` scattered throughout, which add noise and confusion. The indentation is inconsistent after method signatures, breaking natural reading flow. The core logic in `findRedundantOffset()` contains a non-obvious early exit condition with a lengthy comment that partially mitigates but doesn't eliminate the complexity. Method names are clear, and the class has a single responsibility. Action granularity is generally good with one operation per line. Overall, the code demonstrates decent organization but suffers from debugging artifacts and formatting inconsistencies that reduce clarity.
Run 3
The code has a clear overall purpose and uses meaningful naming (e.g., 'lastRedundantOffset', 'findRedundantOffset'), but readability is severely undermined by several factors. Dead code blocks ('if (((0x366F ^ 0x366F) != 0)) { throw new AssertionError(); }') appear after nearly every method or constructor, adding clutter and confusion without contributing any logic. Method 'findRedundantOffset' contains a large inline comment inside a loop that disrupts the reading flow, and its loop-over-values logic is slightly convoluted: the 'soFar == lastRedundantOffset.get()' early exit is not intuitively obvious. The code mixes high-level actions (setting state, computing min) with low-level detail in 'updateState', and the placement of the 'isDelete' removal after the optimum calculation reverses a logical order — deletion should be considered before recalculating redundancy. Moreover, redundant offset computation returns an Optional that always contains a value when offsets exist, making the Optional type misleading. Although comments explain intent, the presence of debug artifacts, mild over-verbosity, and non-intuitive algorithm progression lower the overall readability.
Run 1
Code Structure: Responsibilities are logically divided into initialization, updates, minimum-offset calculation, and accessors. Nesting: Mostly shallow, with straightforward conditionals and one loop. Clarity of intent: Descriptive names and documentation explain offset tracking, although lastRedundantOffset terminology requires careful interpretation. Repeated constant-false XOR assertions obscure intent without contributing useful behavior. Code length: Methods are concise, but lengthy comments and redundant assertions add unnecessary bulk. Action granularity: Most lines perform one action; injected assertion lines combine a condition and throw statement. Reading flow: The main logic progresses naturally, but unindented assertions interrupt every method and inconsistent spacing reduces visual coherence.
Run 2
Code Structure: Fields, initialization, updates, calculation, and accessors are logically separated into focused methods. Nesting: Shallow conditionals and a single loop keep complexity low. Clarity of intent: Descriptive names and documentation explain offset tracking, though the distinction between redundant and necessary offsets requires careful reading; repeated always-false hexadecimal assertions add misleading noise. Code length: Methods are concise, but lengthy comments and pointless assertions unnecessarily expand the class. Action granularity: Most lines perform one action, while each injected assertion compresses a conditional and throw onto one line. Reading flow: The normal execution path is straightforward, but unindented assertions interrupt every method and verbose explanatory comments slow scanning.
Run 3
Code Structure: Fields, initialization, updates, calculation, and accessors are logically separated into focused methods. Nesting: Shallow conditionals and one loop keep control flow manageable. Clarity of intent: Descriptive names and documentation explain offset tracking, although soFar is vague and the distinction between redundant and necessary offsets requires careful reading. Code length: Methods are concise, but lengthy comments and repeated always-false hexadecimal assertion checks add unnecessary clutter. Action granularity: Most lines perform one action; the injected assertion lines combine a conditional and throw statement. Reading flow: The main algorithm proceeds naturally, but unindented assertion checks interrupt every method and undermine formatting consistency. Overall, the underlying implementation is readable, with substantial distractions from artificial checks and some verbose explanations.