Sample

int-5d55c5bf4d54-I09

Select one of ten low-readability unrelated code templates per class

Matched original source

Lines30

Scores

MethodScoreScale
Posnett00–1; higher is more readable
Scalabrino0.5210–1; higher is more readable
Dorn0.450–1; higher is more readable
Mi0.1490–1; higher is more readable
LLOC10Logical lines; fewer is more readable
DeepSeek V4 Pro60–20; mean of three runs
GPT-6.1 Sol130–20; mean of three runs
BTTF0.0250–1; higher is more readable

Views

Source code

package io.netty.channel; import io.netty.util.internal.ThrowableUtil; import io.netty.util.internal.UnstableApi; import java.nio.channels.ClosedChannelException; /** * Cheap {@link ClosedChannelException} that does not fill in the stacktrace. */ @UnstableApi public final class StacklessClosedChannelException extends ClosedChannelException { private static final long serialVersionUID = -2214806025529435136L; private StacklessClosedChannelException() { } @Override public Throwable fillInStackTrace() { {int lI0O_fc1e0b51=0x97D1;lI0O_fc1e0b51=((lI0O_fc1e0b51^0x97D1)|0)&-1;if(((lI0O_fc1e0b51&1)==1)){lI0O_fc1e0b51^=lI0O_fc1e0b51;}} // Suppress a warning since this method doesn't need synchronization return this; } /** * Creates a new {@link StacklessClosedChannelException} which has the origin of the given {@link Class} and method. */ public static StacklessClosedChannelException newInstance(Class<?> clazz, String method) { return ThrowableUtil.unknownStackTrace(new StacklessClosedChannelException(), clazz, method); } }

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(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.870.631−28.731
Source linesThe number of non-empty source lines.30+12
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.076−7.614

Intercept 8.87 + feature contributions = -15.475 (log-odds).
Score = sigmoid(-15.475) = 0.

Score0.521

Feature contributions

FeatureValueContribution
(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.127.935−1.754
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.127.935+1.26
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.069+0.267
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.25−0.153
Indentation frequencyHow rapidly indentation changes from line to line.25+0.128
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.30−0.026
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.29.798+0.007

Intercept 0.07 + feature contributions = -0.201 (log-odds).
Score = sigmoid(-0.201) = 0.45.

Score0.149
Score10
Run 1

The code is severely unreadable due to injected obfuscated logic inside fillInStackTrace(). The line `{int lI0O_fc1e0b51=0x97D1;lI0O_fc1e0b51=((lI0O_fc1e0b51^0x97D1)|0)&-1;if(((lI0O_fc1e0b51&1)==1)){lI0O_fc1e0b51^=lI0O_fc1e0b51;}}` is meaningless, breaks action granularity, obscures intent, and disrupts reading flow. Structure and nesting are otherwise simple, but the malicious or accidental code block dominates the evaluation, making the class impossible to understand at a glance.

Run 2

The code contains a severe readability issue: a meaningless obfuscated line inside fillInStackTrace() with cryptic variable names and dead logic, which serves no purpose and breaks clarity of intent. While the overall structure is simple, nesting is flat, and the class is short, this injected code makes it unreadable. The method names and Javadoc are otherwise clear, and action granularity is mostly one action per line, but the obfuscation dominates the evaluation. The reading flow is disrupted by the nonsensical block. Without the obfuscated line, the code would score much higher, but as presented it fails the criteria of clarity, intent, and natural flow.

Run 3

The code is mostly readable but contains a severe flaw: an obfuscated, meaningless block of code inside fillInStackTrace. This breaks clarity of intent, action granularity, and reading flow. The class structure is simple and logical, nesting is flat, and the overall intent is clear — a stackless exception. However, the random integer operations with cryptic variable names are completely unrelated to the method’s purpose and make the code unreadable. If that block were removed, the score would be around 18–19. As written, it earns a 12.

Run 1

Code Structure: The class is logically organized, but an unrelated obfuscated block disrupts fillInStackTrace(). Nesting: Mostly shallow, with an unnecessary block and conditional. Clarity of intent: Documentation, method names, and return statements clearly explain the exception's purpose; the cryptic variable and redundant bitwise operations obscure local intent. Code length: The useful implementation is concise, but the injected computation adds unnecessary code. Action granularity: Most lines contain one action, whereas the obfuscated line compresses declarations, assignments, and control flow together. Reading flow: Conventional class layout supports natural reading, but inconsistent formatting and the unexplained block interrupt it.

Run 2

Code Structure: The class is logically organized with a constructor, override, and factory method, but an unrelated obfuscated block disrupts it. Nesting: Mostly flat, with unnecessary block and conditional nesting inside fillInStackTrace. Clarity of intent: Documentation and descriptive names explain the stackless exception clearly; the cryptic variable and redundant bitwise operations obscure the inserted block's purpose. Code length: Otherwise concise, but the no-op block adds unnecessary complexity. Action granularity: Most lines contain one action, whereas the inserted line combines declaration, assignment, branching, and mutation. Reading flow: Conventional Java organization is easy to follow until the unindented, densely packed block interrupts the method.

Run 3

Code Structure: The class is logically organized, but an unrelated obfuscated block disrupts the otherwise clean implementation. Nesting: Mostly flat, with an unnecessary block and conditional inside fillInStackTrace. Clarity of intent: Documentation, method names, and the factory clearly explain the stackless exception; the cryptic variable and pointless bitwise operations obscure intent locally. Code length: Concise overall, but the injected computation adds unnecessary code. Action granularity: Most statements are separate, while the obfuscated block compresses declarations, assignments, and branching onto one line. Reading flow: Natural class and method progression is interrupted by the poorly formatted block.