Sample

int-350dec82e92f-I01

Remove line comments, block comments, and Javadoc

Matched original source

Lines51

Scores

MethodScoreScale
Posnett10–1; higher is more readable
Scalabrino0.9410–1; higher is more readable
Dorn0.6580–1; higher is more readable
Mi0.8320–1; higher is more readable
LLOC9Logical lines; fewer is more readable
DeepSeek V4 Pro160–20; mean of three runs
GPT-6.1 Sol170–20; mean of three runs
BTTF0.7390–1; higher is more readable

Views

Source code

package io.netty.handler.codec.http3; interface Http3RequestStreamCodecState { Http3RequestStreamCodecState NO_STATE = new Http3RequestStreamCodecState() { @Override public boolean started() { return false; } @Override public boolean receivedFinalHeaders() { return false; } @Override public boolean terminated() { return false; } }; boolean started(); boolean receivedFinalHeaders(); boolean terminated(); }

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(log-odds)
Source linesThe number of non-empty source lines.51+20.4
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.339.002−11.187
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.164−6.246

Intercept 8.87 + feature contributions = 11.837 (log-odds).
Score = sigmoid(11.837) = 1.

Score0.941

Feature contributions

FeatureValueContribution
(log-odds)
Indentation frequencyHow rapidly indentation changes from line to line.51+1.027
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.52−0.805
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.0−0.804
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.1+0.398
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.50.877+0.301
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.79.981+0.278
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.077+0.19

Intercept 0.07 + feature contributions = 0.655 (log-odds).
Score = sigmoid(0.655) = 0.658.

Score0.832
Score9
Run 1

The code is highly readable. It defines a clear interface with three boolean state-checking methods, and provides a default no-state implementation via an anonymous class. The structure is logical and flat, with no nesting or control flow. The intent is explicit: model request stream states. Each method declaration occupies a single line, though excessive blank lines between declarations slightly reduce conciseness. Reading flow is natural, moving from default state to method contracts. Minor deduction for unnecessary whitespace, but overall it is concise, well-organized, and easy to understand.

Run 2

The code is a simple Java interface with clear method names and a default implementation, making the intent relatively easy to understand. However, readability is significantly reduced by excessive vertical whitespace and blank lines, which break the natural reading flow and make the code appear disorganized. The structure is logical but the formatting makes it much longer than necessary. Nesting is minimal and action granularity is appropriate, but the spacing detracts from overall clarity.

Run 3

The code is generally well-structured and readable, but has excessive blank lines that disrupt flow. The interface is logically organized as a state pattern with three clear boolean methods. Nesting is minimal—only an anonymous inner class, which is appropriate here. Intent is unambiguous: representing HTTP/3 request stream states. However, the excessive blank lines (sometimes 4-5 consecutive) break reading flow and inflate the file length unnecessarily. Action granularity is good—each method returns a single boolean. Variable naming is clear (NO_STATE, started, receivedFinalHeaders, terminated). The anonymous inner class is concise though slightly verbose for what could potentially be a default implementation. Overall, the logic is sound and readable, but the formatting (blank line proliferation) hampers the 'reading flow' criterion and should be cleaned up for production code.

Run 1

Code Structure: The interface logically groups three state queries and a default NO_STATE implementation. Nesting: The anonymous implementation introduces only shallow, easy-to-follow nesting. Clarity of intent: Descriptive method names and the all-false default make the purpose clear, though lifecycle semantics are undocumented. Code length: The functional code is concise, but excessive blank lines unnecessarily expand it. Action granularity: Each declaration and return occupies its own line. Reading flow: The consistent method ordering supports natural reading, while large whitespace gaps interrupt scanning.

Run 2

Code Structure: The interface logically groups three state queries and a default NO_STATE implementation. Nesting: Minimal nesting, limited to the anonymous implementation and its methods. Clarity of intent: Descriptive method names make the state checks clear, though NO_STATE semantics lack documentation. Code length: The implementation is concise, but excessive blank lines unnecessarily stretch the file. Action granularity: Each method contains a single return statement, keeping actions clearly separated. Reading flow: The ordering is natural and easy to follow, but inconsistent vertical spacing interrupts scanning.

Run 3

Code Structure: The interface is logically organized, with a default state implementation followed by its method declarations. Nesting: Minimal and straightforward; the anonymous implementation introduces only shallow nesting. Clarity of intent: Descriptive interface and method names communicate stream-state checks, though NO_STATE semantics are not documented. Code length: The implementation is concise, but excessive blank lines unnecessarily lengthen the file. Action granularity: Each method performs one clearly isolated action. Reading flow: The ordering is natural and consistent, but large whitespace gaps interrupt scanning.