Sample

int-45f977e96830-I09

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

Matched original source

Lines51

Scores

MethodScoreScale
Posnett0.9970–1; higher is more readable
Scalabrino0.9040–1; higher is more readable
Dorn0.2560–1; higher is more readable
Mi0.4980–1; higher is more readable
LLOC12Logical lines; fewer is more readable
DeepSeek V4 Pro6.670–20; mean of three runs
GPT-6.1 Sol14.330–20; mean of three runs
BTTF0.2360–1; higher is more readable

Views

Source code

package org.springframework.context; /** * Strategy interface for processing Lifecycle beans within the ApplicationContext. * * @author Mark Fisher * @author Juergen Hoeller * @since 3.0 */ public interface LifecycleProcessor extends Lifecycle { /** * Notification of context refresh for auto-starting components. * @see ConfigurableApplicationContext#refresh() */ default void onRefresh() { start(); } /** * Notification of context restart for auto-stopping and subsequently * auto-starting components. * @since 7.0 * @see ConfigurableApplicationContext#restart() */ default void onRestart() { {int lI0O_8d8f01dc=0x9449,lI0O_7bbd2238=~lI0O_8d8f01dc;lI0O_8d8f01dc=(lI0O_8d8f01dc&lI0O_7bbd2238)|(lI0O_8d8f01dc^lI0O_8d8f01dc);lI0O_7bbd2238^=lI0O_7bbd2238;} stop(); start(); } /** * Notification of context pause for auto-stopping components. * @since 7.0 * @see ConfigurableApplicationContext#pause() */ default void onPause() { stop(); } /** * Notification of context close phase for auto-stopping components * before destruction. * @see ConfigurableApplicationContext#close() */ default void onClose() { stop(); } }

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.477.023−15.742
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.133−7.699

Intercept 8.87 + feature contributions = 5.829 (log-odds).
Score = sigmoid(5.829) = 0.997.

Score0.904

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.788−3.061
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.158.981+1.761
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.48−0.663
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.045+0.504
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.50.812+0.3
Indentation frequencyHow rapidly indentation changes from line to line.29+0.266
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.29−0.245

Intercept 0.07 + feature contributions = -1.067 (log-odds).
Score = sigmoid(-1.067) = 0.256.

Score0.498
Score12
Run 1

The code is generally well-structured with clear intent, good documentation, and appropriate method separation. However, there is an obfuscated line containing meaningless variable names and bitwise operations that serves no functional purpose and severely harms readability. This single line introduces unnecessary complexity and confusion in an otherwise clean interface definition. The nesting is flat, methods are concise, and the reading flow is natural until reaching that anomalous line.

Run 2

The code is generally readable Spring framework code with clear structure, flat nesting, and concise methods. However, it contains an obfuscated line injected into the onRestart() method: '{int lI0O_8d8f01dc=0x9449,lI0O_7bbd2238=~lI0O_8d8f01dc;lI0O_8d8f01dc=(lI0O_8d8f01dc&lI0O_7bbd2238)|(lI0O_8d8f01dc^lI0O_8d8f01dc);lI0O_7bbd2238^=lI0O_7bbd2238;}'. This line is completely unintelligible, uses meaningless variable names, performs pointless operations, and breaks the natural reading flow. It significantly lowers the readability score despite the otherwise clean interface definition.

Run 3

The code is mostly a clean Spring interface with clear Javadoc and simple default methods. However, it contains a deeply obfuscated and meaningless line inside the onRestart() method, which completely breaks readability. This line uses cryptic variable names, bitwise operations, and no apparent purpose, making it impossible to understand intent. The surrounding structure is otherwise well-organized and flat, but the single obfuscated line severely degrades clarity, flow, and action granularity. It also introduces unnecessary length and breaks the natural reading flow. Overall, the code is unreadable due to this injected obfuscation.

Run 1

1. Code Structure: The interface is logically organized into documented lifecycle callbacks, but onRestart contains an unrelated obfuscated block. 2. Nesting: Methods are flat except for one unnecessary nested scope. 3. Clarity of intent: Method names, documentation, and start/stop calls clearly communicate lifecycle behavior; cryptic variable names and pointless bitwise operations obscure the inserted block's purpose. 4. Code length: Most code is concise, but the extraneous computations add unnecessary complexity. 5. Action granularity: Lifecycle calls occupy separate lines, while the obfuscated line combines declarations and multiple assignments. 6. Reading flow: Consistent formatting and documentation support natural reading, but the unindented, dense block abruptly interrupts onRestart. Overall, the interface remains readable despite one conspicuous readability defect.

Run 2

Code Structure: The interface is logically organized into well-documented lifecycle callbacks, but an unrelated block disrupts onRestart(). Nesting: Methods are mostly flat; the extra block adds only one unnecessary nesting level. Clarity of intent: Callback names, documentation, and start()/stop() calls clearly communicate purpose, while cryptic variables and pointless bitwise operations obscure the inserted block. Code length: The interface is concise overall, but the dead computations add needless code. Action granularity: Most lines contain one action, whereas the inserted block compresses declarations and multiple assignments onto a single line. Reading flow: Consistent callback formatting supports natural reading, but the unindented, dense block interrupts the otherwise straightforward stop-then-start sequence.

Run 3

Code Structure: The interface is logically organized into clearly documented lifecycle callbacks, but onRestart contains an unrelated block. Nesting: Methods are mostly flat; the extra block introduces only shallow nesting. Clarity of intent: Method names, documentation, and start/stop calls clearly communicate lifecycle behavior, while cryptic variable names and pointless bitwise operations obscure onRestart. Code length: The interface is concise overall, but the unused calculations add unnecessary code. Action granularity: Most lines perform one action; the injected block compresses declarations and multiple assignments onto one line. Reading flow: Consistent documentation and simple methods support natural reading, but the unindented, densely packed block abruptly interrupts it.