Sample
int-5d78e2580a2b-I01
Remove line comments, block comments, and Javadoc
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.711 | 0–1; higher is more readable |
| Dorn | 0.109 | 0–1; higher is more readable |
| Mi | 0.513 | 0–1; higher is more readable |
| LLOC | 41 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 17 | 0–20; mean of three runs |
| GPT-6.1 Sol | 15 | 0–20; mean of three runs |
| BTTF | 0.493 | 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. | 3526.302 | −116.368 |
| Source linesThe number of non-empty source lines. | 119 | +47.6 |
| 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.152 | −7.727 |
Intercept 8.87 + feature contributions = -67.625 (log-odds).
Score = sigmoid(-67.625) = 0.
| Score | 0.711 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Indentation frequencyHow rapidly indentation changes from line to line. | 119 | +3.379 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 119 | −3.177 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 118 | −2.287 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 118.879 | +1.252 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| 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. | 97.983 | −0.485 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.102 | −0.047 |
Intercept 0.07 + feature contributions = -2.099 (log-odds).
Score = sigmoid(-2.099) = 0.109.
| Score | 0.513 |
|---|
| Score | 41 |
|---|
Run 1
The code is well-structured and follows clear logical organization. Constants are grouped at the top with descriptive names and comments. Methods are concise and focused on single responsibilities. Nesting is minimal — only a few conditional branches with no deep indentation. The intent of each method is clear from naming and brief comments. However, the bigToDouble method contains a long block of bit-manipulation logic with multiple operations, which slightly reduces clarity despite explanatory comments. Line length and inline comments aid understanding, but the method could benefit from extracting helper methods or additional comments for complex rounding logic. Overall, the code is highly readable for low-level numeric utilities, with only moderate complexity in one section.
Run 2
The code is highly readable with clear structure, consistent sectioning, and purposeful naming aligned with the IEEE 754 domain. It uses flat logic in most methods, avoids deep nesting, and keeps actions granular—one meaningful operation per line. Comments clarify bit manipulation, which would otherwise be opaque. Minor deductions come from dense constants and bit operations that require domain knowledge, and some comment blocks could be slightly more concise. Overall, strong clarity of intent and clean organization make it easy for a reader familiar with floating-point formats to follow and trust.
Run 3
The code is generally well-structured and readable. It has clear constants with meaningful names, proper separation of concerns, and concise methods. The nesting is minimal, with flat conditional logic. Most lines perform a single action, and the reading flow is natural. However, the bigToDouble method is the weakest part: it has a dense block of bit manipulation with comments that explain 'what' but not always 'why', and several magic numbers (Long.SIZE - 1, SIGNIFICAND_BITS - 1) that require domain knowledge. Some comments are overly verbose while others are sparse. The overall clarity is good but slightly hindered by the inherent complexity of IEEE 754 bit operations.
Run 1
Code Structure: Focused utility methods and descriptive constants provide logical organization, though ONE_BITS is placed after methods rather than with other constants. Nesting: Minimal nesting and early returns keep control flow simple. Clarity of intent: Method names convey general purpose, but IEEE-754 bit manipulation and rounding logic require specialized knowledge; missing explanatory comments and abbreviated variables reduce clarity. Code length: Implementations are concise, but excessive blank lines unnecessarily expand the presentation. Action granularity: Most lines perform one assignment or operation, although the rounding condition combines several nontrivial checks. Reading flow: Methods generally progress naturally from input checks through calculations to results, but irregular spacing and unexplained bitwise expressions interrupt smooth reading.
Run 2
Code Structure: Well organized as a focused utility class with named constants and small, cohesive methods, although ONE_BITS is separated from related constants. Nesting: Shallow conditionals and early returns make control flow easy to follow. Clarity of intent: Method and constant names generally convey purpose, but significand manipulation and rounding logic require floating-point expertise; explanatory comments would help. Code length: Implementation is concise, but excessive blank lines create unnecessary visual length. Action granularity: Most lines perform one clear action, though the compound increment condition packs several rounding checks into one expression. Reading flow: Methods follow natural computational sequences, but irregular spacing and unexplained bit operations interrupt comprehension.
Run 3
Code Structure: Cohesive utility class with small, logically separated methods and descriptive constants. Nesting: Very shallow; early returns keep conversion logic mostly flat. Clarity of intent: Method names communicate their purposes, but IEEE-754 bit manipulation and rounding calculations require specialized knowledge and lack explanatory comments. Code length: Implementation is concise, although excessive blank lines add visual clutter. Action granularity: Most statements perform one action per line; the compound rounding condition is relatively dense. Reading flow: Generally natural, progressing from constants to helpers and conversion logic, but irregular whitespace and the late placement of ONE_BITS interrupt the flow.