Sample
int-7891f4c454f9-I07
Insert deterministic runtime-dead branches into callable bodies
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.553 | 0–1; higher is more readable |
| Dorn | 0.315 | 0–1; higher is more readable |
| Mi | 0.076 | 0–1; higher is more readable |
| LLOC | 26 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 9.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 14 | 0–20; mean of three runs |
| BTTF | 0.37 | 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. | 3041.553 | −100.371 |
| Source linesThe number of non-empty source lines. | 79 | +31.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.012 | −7.518 |
Intercept 8.87 + feature contributions = -67.419 (log-odds).
Score = sigmoid(-67.419) = 0.
| Score | 0.553 |
|---|
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. | 80 | −1.796 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 63 | +1.442 |
| 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. | 119.987 | −1.417 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 63 | −1.025 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 112.525 | +1.011 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 78.843 | +0.692 |
| 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.777 (log-odds).
Score = sigmoid(-0.777) = 0.315.
| Score | 0.076 |
|---|
| Score | 26 |
|---|
Run 1
The code has a clear class purpose with useful Javadoc and follows general Kafka patterns, but readability is significantly reduced by several issues. The most severe problem is the presence of dead code lines with meaningless assertions like 'if (((0x17EC ^ 0x17EC) != 0)) { throw new AssertionError(); }', which are confusing and add no logical value. The main configure method has an if-else block without braces for single statements, which is acceptable but slightly risky for maintainability. Action granularity is mostly one action per line, and nesting is flat due to early return. However, the dead code breaks reading flow and clarity of intent. The delegate method is package-private without Javadoc, which is minor. Overall, the code is functional but needs the dead code removed and minor structure improvements to be truly readable.
Run 2
The code has clear structure with a well-documented class purpose and logical delegation pattern. Methods are concise and follow single responsibility. However, readability is significantly reduced by redundant, nonsensical assertion statements (e.g., `if (((0x17EC ^ 0x17EC) != 0)) { throw new AssertionError(); }`) inserted at the start of each method. These add clutter, break reading flow, and obscure intent. Deep nesting is minimal, and action granularity is mostly one action per line. Overall length is acceptable but inflated by the assertions and verbose Javadoc. If the assertions were removed, the code would be much more readable.
Run 3
The code's readability is severely compromised by several recurring issues. Most critically, every method begins with an obfuscated assertion check (e.g., 'if (((0x17EC ^ 0x17EC) != 0)) { throw new AssertionError(); }') that is meaningless, adds noise, and breaks the natural reading flow. These lines violate the principles of clarity and concise code length. The core logic itself is simple, with a flat structure and a clear delegation pattern, but the awkward one-line if/else statements without braces hurt its structural consistency. The Javadoc is thorough and well-written, which is a positive, but the method-level interruptions and the redundant 'delegate()' accessor reduce the overall quality. While the intention of the delegation is clear, the obfuscated code dominates the reader's experience.
Run 1
Code Structure: The class is logically organized into configuration, retrieval, cleanup, and delegate access. Nesting: Control flow is shallow and easy to follow, although omitted braces slightly weaken visual boundaries. Clarity of intent: Descriptive names and documentation explain delegation, but repeated hexadecimal XOR checks are always false and introduce confusing, purposeless noise. Documentation also names request formatters rather than the actual HTTP delegate class. Code length: Core functionality is concise, but redundant assertions and lengthy documentation add unnecessary bulk. Action granularity: Most lines perform one action; the inline assertion blocks combine a condition and throw on one line. Reading flow: Method ordering is natural, but unindented assertion blocks interrupt otherwise consistent formatting, and tightly packed imports reduce visual separation.
Run 2
Code Structure: The class is logically organized into configuration, retrieval, cleanup, and delegate access methods. Nesting: Control flow is shallow and easy to follow. Clarity of intent: Descriptive names and straightforward delegation communicate the purpose, but repeated, always-false hexadecimal XOR assertions introduce confusing noise. The documentation also describes formatter implementations rather than the actual HTTP delegate. Code length: Core logic is concise, but redundant assertions and verbose documentation add unnecessary length. Action granularity: Most lines perform one action; injected assertion lines compress a condition and throw into a single line. Reading flow: Method ordering is natural, but unindented assertions interrupt otherwise consistent formatting, and omitted conditional braces slightly reduce visual clarity.
Run 3
Code Structure: A straightforward delegation class with clearly separated configuration, retrieval, cleanup, and accessor methods; repeated meaningless assertions introduce clutter. Nesting: Shallow conditionals keep the code easy to follow. Clarity of intent: Descriptive names and documentation explain the main purpose, but opaque hexadecimal XOR checks obscure intent, and the documentation describes formatter selection rather than the actual credentials retriever selection. Code length: Core logic is concise, though redundant assertions and lengthy documentation add unnecessary material. Action granularity: Most lines perform one action, but injected checks combine conditions and throws on a single line. Reading flow: Method ordering is natural, but unindented assertions interrupt the visual flow, and missing braces reduce consistency.