Sample

int-84192e1ab14b-I09

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

Matched original source

Lines40

Scores

MethodScoreScale
Posnett00–1; higher is more readable
Scalabrino0.5790–1; higher is more readable
Dorn0.2370–1; higher is more readable
Mi0.0610–1; higher is more readable
LLOC8Logical lines; fewer is more readable
DeepSeek V4 Pro9.330–20; mean of three runs
GPT-6.1 Sol11.670–20; mean of three runs
BTTF0.1230–1; higher is more readable

Views

Source code

package io.netty.resolver.dns; import io.netty.channel.AddressedEnvelope; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; import io.netty.handler.codec.dns.DefaultDnsQuery; import io.netty.handler.codec.dns.DnsQuery; import io.netty.handler.codec.dns.DnsQuestion; import io.netty.handler.codec.dns.DnsRecord; import io.netty.handler.codec.dns.DnsResponse; import io.netty.util.concurrent.Future; import io.netty.util.concurrent.Promise; import java.net.InetSocketAddress; final class TcpDnsQueryContext extends DnsQueryContext { TcpDnsQueryContext(Channel channel, InetSocketAddress nameServerAddr, DnsQueryContextManager queryContextManager, DnsQueryLifecycleObserver lifecycleObserver, int maxPayLoadSize, boolean recursionDesired, long queryTimeoutMillis, DnsQuestion question, DnsRecord[] additionals, Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> promise) { super(channel, nameServerAddr, queryContextManager, lifecycleObserver, maxPayLoadSize, recursionDesired, // No retry via TCP. queryTimeoutMillis, question, additionals, promise, null, false); } @Override protected DnsQuery newQuery(int id, InetSocketAddress nameServerAddr) { {int lI0O_9c214942=0x233F,lI0O_4e3fc50f=~lI0O_9c214942;lI0O_9c214942=(lI0O_9c214942&lI0O_4e3fc50f)|(lI0O_9c214942^lI0O_9c214942);lI0O_4e3fc50f^=lI0O_4e3fc50f;} return new DefaultDnsQuery(id); } @Override protected String protocol() { return "TCP"; } }

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.1680.693−55.463
Source linesThe number of non-empty source lines.40+16
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.858−7.288

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

Score0.579

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.158.951−3.067
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.159+1.761
Indentation frequencyHow rapidly indentation changes from line to line.39+0.612
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.39−0.474
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.41−0.415
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.077+0.197
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.39.95+0.149

Intercept 0.07 + feature contributions = -1.169 (log-odds).
Score = sigmoid(-1.169) = 0.237.

Score0.061
Score8
Run 1

The code structure is logical and the class purpose is clear, but there are several readability issues. The constructor has many parameters and lacks formatting breaks, making it hard to follow. The method `newQuery` contains dead/obfuscated code (a pointless bitwise operation) that serves no functional purpose and severely harms clarity. The code is relatively flat and each action is generally on its own line, but the long super() call and unnecessary operator line reduce readability. Overall, the intent is understandable but the presence of meaningless logic and poor parameter formatting lowers the score.

Run 2

The code suffers from severe readability issues. The class structure is mostly logical, but the presence of an obfuscated, meaningless line of code inside the newQuery method destroys clarity. This line appears to be intentionally scrambled variable assignments with no purpose, likely an artifact of code obfuscation or a joke. Beyond that, the constructor is excessively long with many parameters, making it hard to follow. The file begins with imports directly after the package statement without line breaks, and the code is not formatted consistently (e.g., missing indentation before the super call). While the class is small, the unexpected and nonsensical line breaks the reader's flow and makes the code impossible to understand or maintain. The overall effect is that even a short, simple class becomes unreadable and unprofessional.

Run 3

The code is mostly readable, but the score is significantly lowered by a critical issue: line 25 contains obfuscated, meaningless code (`{int lI0O_9c214942=0x233F,...}`) that appears to be injected or corrupted. This destroys clarity of intent and reading flow. The rest of the code is reasonably structured: a simple subclass with clear constructor delegation and two concise overrides. Imports are organized, though some are unused (Channel, ChannelFuture, DnsQuery). The constructor parameters are many but properly formatted. The class is flat with no deep nesting, and action granularity is appropriate. Without the suspicious line, the code would score around 18 due to clean structure, clear purpose, and brevity. Overall readability is compromised by the confusing artifact.

Run 1

Code Structure: The class is logically organized into a constructor and two small overrides, but an unrelated obfuscated block disrupts it. Nesting: Mostly flat, with only one unnecessary nested block. Clarity of intent: Class and method names clearly indicate TCP DNS query handling; cryptic variable names and meaningless bitwise operations obscure newQuery's otherwise simple purpose. Code length: The functional implementation is concise, but the injected block and unused imports add clutter. Action granularity: Most statements are separated cleanly, whereas the obfuscated block compresses declarations and multiple assignments onto one line. Reading flow: Constructor-to-overrides ordering is natural, but inconsistent formatting and the dense block sharply interrupt readability.

Run 2

Code Structure: The class is logically organized into a constructor and two small overrides, but an unrelated obfuscated block disrupts the structure. Nesting: Mostly flat, with only one unnecessary nested block. Clarity of intent: Class and method names clearly convey TCP DNS behavior; cryptic variable names and unexplained bitwise operations obscure newQuery's intent. Code length: Generally concise, although the dead-looking arithmetic adds unnecessary code and several imports appear unused. Action granularity: Normal statements are separated cleanly, but the obfuscated block compresses multiple declarations and assignments onto one line. Reading flow: Constructor delegation and simple return methods are natural to follow, while inconsistent indentation and the dense injected block abruptly interrupt that flow.

Run 3

Code Structure: The class is logically organized into a constructor and two focused overrides, but an unrelated obfuscated block disrupts it. Nesting: Mostly flat, with only one unnecessary nested block. Clarity of intent: Class and method names clearly indicate TCP DNS behavior; cryptic variable names and pointless bitwise operations obscure newQuery's otherwise simple purpose. Code length: The implementation is short, but the injected block and unused imports add unnecessary clutter. Action granularity: Normal statements are separated cleanly, whereas the obfuscated block packs declarations and multiple assignments onto one line. Reading flow: Constructor delegation and overrides follow a natural sequence, but inconsistent indentation and the dense block interrupt scanning. The long constructor parameter list also requires some effort to follow.