Sample
int-fd214021ac03-SRC
Unmodified source class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0.002 | 0–1; higher is more readable |
| Scalabrino | 0.781 | 0–1; higher is more readable |
| Dorn | 0.551 | 0–1; higher is more readable |
| Mi | 0.259 | 0–1; higher is more readable |
| LLOC | 6 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 18.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 19 | 0–20; mean of three runs |
| BTTF | 0.322 | 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. | 577.677 | −19.063 |
| Source linesThe number of non-empty source lines. | 28 | +11.2 |
| 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.826 | −7.24 |
Intercept 8.87 + feature contributions = -6.233 (log-odds).
Score = sigmoid(-6.233) = 0.002.
| Score | 0.781 |
|---|
Feature contributions
| Feature | Value | Contribution (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. | 119.931 | −1.415 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 119.931 | +1.131 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.051 | +0.442 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 23 | −0.107 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 23 | +0.058 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 28 | +0.045 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 27.785 | −0.021 |
Intercept 0.07 + feature contributions = 0.203 (log-odds).
Score = sigmoid(0.203) = 0.551.
| Score | 0.259 |
|---|
| Score | 6 |
|---|
Run 1
The code is exceptionally readable. It is well-structured with clear class and method separation, imports, and documentation. Nesting is nonexistent (flat structure), and intent is explicitly stated via Javadoc and method names like `newInstance`. The code is concise, avoiding boilerplate while including only necessary overrides. Each action is on its own line, and the reading flow is natural: class declaration, constants, constructor, override, then factory method. The only minor deduction is the lack of a blank line between the serialVersionUID and the constructor, but this is negligible.
Run 2
The code is well-structured and highly readable. It has a clear single responsibility: creating a lightweight exception without stacktrace overhead. The class is flat with minimal nesting, and the intent is immediately obvious from the class name, Javadoc, and method names. The code is concise, with each action on its own line and no redundant logic. The only minor deduction is that the static factory method delegates to a utility method, adding slight indirection, but this is justified for performance and follows Netty conventions. Overall, the reading flow is natural: exceptions definition, suppressed stacktrace behavior, then factory method.
Run 3
The code is highly readable with a clear, single-purpose class. Structure is logical: package declaration, imports, Javadoc, class definition, constant, private constructor, overridden method, and factory method. Nesting is minimal—only a single method override and a static factory, both flat. Intent is explicitly documented through Javadoc and method names like `newInstance` and `fillInStackTrace`, making the purpose unambiguous. Code length is concise and appropriate; no unnecessary code exists. Action granularity is excellent—each line performs a single, focused action. Reading flow is natural: the class progresses from definition to implementation details to public API in a logical order. Minor deductions: the `@UnstableApi` annotation and the comment about synchronization could be slightly more explanatory, and the factory method accepts a `Class<?>` parameter without validating it, but these are negligible. Overall, this is exemplary readable code.
Run 1
Code Structure: Logically organized into a serial identifier, private constructor, override, and factory method. Nesting: Flat, with no nested control flow. Clarity of intent: The class name, documentation, and fillInStackTrace override clearly communicate the stackless exception behavior; clazz is slightly less descriptive than originClass. Code length: Concise, with no unnecessary implementation. Action granularity: Each statement performs one coherent action; the factory's inline construction is easy to follow. Reading flow: Natural and consistent, though blank lines separating the package declaration and import groups would improve visual organization.
Run 2
Code Structure: The class is logically organized into a constant, private constructor, overridden method, and factory method. Nesting: There is no nested control flow, making the code easy to scan. Clarity of intent: The class name, documentation, and fillInStackTrace override clearly communicate the stackless exception behavior; the factory delegates stack-trace attribution to a descriptively named utility. Code length: The implementation is concise without unnecessary logic. Action granularity: Each statement performs one clear action, although the factory combines construction and utility invocation in a single readable expression. Reading flow: The progression from class purpose to implementation and creation is natural. Minor drawbacks include the generic parameter names clazz and method and the lack of spacing between the package declaration and imports.
Run 3
Code Structure: The class is logically organized into a constant, constructor, override, and factory method. Nesting: There is no nested control flow, making it easy to scan. Clarity of intent: The class name, documentation, and fillInStackTrace override clearly communicate the stackless exception behavior; clazz is slightly less descriptive than originClass. Code length: The implementation is concise without unnecessary logic. Action granularity: Each statement performs one clear action, although the factory return combines construction and stack-trace customization. Reading flow: The code progresses naturally from class setup to behavior and instance creation. Minor formatting improvements, such as separating the package declaration from imports, would improve readability.