Sample
int-a3161bcd1034-I09
Select one of ten low-readability unrelated code templates per class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.658 | 0–1; higher is more readable |
| Dorn | 0.409 | 0–1; higher is more readable |
| Mi | 0.054 | 0–1; higher is more readable |
| LLOC | 24 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 11.67 | 0–20; mean of three runs |
| GPT-6.1 Sol | 13.67 | 0–20; mean of three runs |
| BTTF | 0.21 | 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. | 2576.807 | −85.035 |
| Source linesThe number of non-empty source lines. | 63 | +25.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.744 | −7.115 |
Intercept 8.87 + feature contributions = -58.08 (log-odds).
Score = sigmoid(-58.08) = 0.
| Score | 0.658 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| 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. | 117.938 | −1.33 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 58 | +1.269 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 64 | −1.23 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 117.891 | +1.098 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 58 | −0.91 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 62.849 | +0.469 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.077 | +0.198 |
Intercept 0.07 + feature contributions = -0.367 (log-odds).
Score = sigmoid(-0.367) = 0.409.
| Score | 0.054 |
|---|
| Score | 24 |
|---|
Run 1
The code has a reasonable class-level structure and some explanatory comments, but several issues reduce readability. It contains dead code (an unused variable assignment `lI0O_a8767aa7`), which is confusing and suggests poor maintenance. The 'findOpenMethod' and 'newChannel' methods are somewhat clear, but the overall intent is muddled by the mysterious dead code and inconsistent error handling. Nesting is shallow and action granularity is mostly fine, but the reading flow is interrupted by the dead code and unclear method-chaining, making the logic harder to follow. The class is concise, but the dead code makes it unnecessarily obscure.
Run 2
The code is well-structured with clear separation of concerns: method lookups, reflective channel creation, and utility methods. Nesting is minimal, with a single try-catch block. Variable and method names are descriptive. However, readability is severely impacted by the obfuscated line `int lI0O_a8767aa7=0x328;...` which serves no functional purpose and disrupts reading flow. The repeated `method == null` fallback pattern across method overloads adds slight ambiguity. The static utility methods are mostly one action per line, but reflection casting and exception handling are tightly packed in `newChannel`. Overall, the code is concise and maintainable aside from the inserted garbage line.
Run 3
The code has clear structure and reasonable naming, but readability is significantly harmed by the presence of an unexplained obfuscated line containing meaningless variable names, bitwise operations, and a zero assignment. This line serves no apparent purpose and disrupts the reading flow. The class is mostly flat, with a single level of nesting, which is good. Intent is generally clear due to descriptive method names, though the reflective channel creation adds some ambiguity. Code length is appropriate for the functionality, but the private helper method could be simplified by avoiding returning null for both failure and unsupported cases. Action granularity is mostly one operation per line, but the obfuscated line violates this principle by bundling several operations. Apart from the anomalous line, the code is reasonably organized and concise.
Run 1
Code Structure: Small, focused utility methods are logically organized, but an unrelated obfuscated block interrupts the channel-creation overload. Nesting: Mostly shallow conditionals and try/catch blocks; nesting is easy to follow. Clarity of intent: Descriptive names and documentation explain reflection-based channel creation, while the meaningless bitwise operations and cryptic variable name obscure intent. Code length: Generally concise, though the injected block adds unnecessary code. Action granularity: Most statements occupy separate lines, but the injected block compresses declaration and multiple assignments onto one line. Reading flow: Method delegation and exception handling flow naturally; inconsistent indentation, tightly packed imports, and the anomalous block disrupt otherwise readable code.
Run 2
Code Structure: A logically organized utility class with focused methods, though an unrelated obfuscated block disrupts cohesion. Nesting: Mostly shallow, with manageable conditional and try/catch nesting. Clarity of intent: Descriptive method names, types, logging, and documentation explain channel creation; the cryptically named variable and pointless bitwise operations obscure intent locally. Code length: Generally concise, but the injected block adds unnecessary code. Action granularity: Most statements perform one action per line; the injected block compresses declaration and multiple assignments onto one line. Reading flow: Methods follow a coherent progression from reflection lookup to channel creation, but inconsistent indentation and the abrupt obfuscated block interrupt otherwise natural reading.
Run 3
Code Structure: Mostly well-organized utility methods with clear responsibilities, but an unrelated obfuscated block disrupts the design. Nesting: Shallow conditionals and try/catch blocks are easy to follow. Clarity of intent: Descriptive method names and documentation explain channel creation and compatibility handling; the cryptic variable and pointless bitwise operations obscure intent. Code length: Generally concise, with a small but entirely unnecessary block. Action granularity: Most statements occupy separate lines, while the injected block compresses declaration, assignment, and mutation onto one line. Reading flow: Imports, helpers, overloads, and the private constructor follow a natural order, but inconsistent indentation and the abrupt obfuscated block interrupt otherwise readable code.