Sample
int-2ff8d8104dd5-I11
Split eligible integer literals into pairs of short-named intermediate variables
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Scalabrino | 0.692 | 0–1; higher is more readable |
| Dorn | 0.752 | 0–1; higher is more readable |
| Mi | 0.705 | 0–1; higher is more readable |
| LLOC | 53 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 18 | 0–20; mean of three runs |
| GPT-6.1 Sol | 19 | 0–20; mean of three runs |
| BTTF | 0.601 | 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. | 3874.457 | −127.857 |
| Source linesThe number of non-empty source lines. | 146 | +58.4 |
| 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.667 | −7.001 |
Intercept 8.87 + feature contributions = -67.588 (log-odds).
Score = sigmoid(-67.588) = 0.
| Score | 0.692 |
|---|
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 147 | −4.168 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 113 | +3.171 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 145.554 | +1.625 |
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 99.946 | +0.808 |
| 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. | 99.966 | −0.569 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.12 | −0.224 |
Intercept 0.07 + feature contributions = 1.111 (log-odds).
Score = sigmoid(1.111) = 0.752.
| Score | 0.705 |
|---|
| Score | 53 |
|---|
Run 1
The code is highly readable. It follows a consistent, repetitive delegation pattern with a clear structural organization: each method is short, has one clear action per line, and simply forwards to a delegate. Nesting is completely flat, with no conditional logic or loops. Clarity of intent is excellent, as the class name, Javadoc, and method names explicitly convey the purpose of each delegate method. The code length is appropriate for its purpose, avoiding unnecessary verbosity while maintaining completeness. Reading flow is natural and predictable, grouped logically by related functionalities. The only minor deduction is the absence of inline comments for individual methods, but the uniformity of the pattern makes this unnecessary.
Run 2
The code is highly readable. It follows a consistent, flat structure with no nesting. Each method has a single, clear purpose: delegating to the underlying Network implementation. The naming is explicit and conventional, making intent immediately clear. Methods are concise, with one action per line (returning the delegated call). The reading flow is natural, grouping related methods logically (nodes/edges, ordering, adjacency, incidence, connectivity). The use of Javadoc and annotations adds clarity without clutter. Minor deductions: repetitive boilerplate slightly lengthens the file, and the abstract delegate method could benefit from a brief comment clarifying its role, but overall readability is excellent.
Run 3
The code is highly readable. It follows a clear, consistent structure where each method delegates directly to an underlying implementation. Nesting is minimal, with no conditional logic or deeply indented blocks. Intent is obvious from the class name, Javadoc, and method names. Each method is concise—typically one line—and each line performs a single action (delegation). The reading flow is natural: methods are grouped logically (basic graph properties, node-related operations, edge-related operations, and connectivity queries). The only minor drawback is the repetitive boilerplate nature of the forwarding pattern, which slightly reduces readability due to its verbosity, but this is inherent to the design and not a flaw in the code itself.
Run 1
Code Structure: Logically organized as a forwarding class, with related methods and overloads grouped together. Nesting: Minimal; each method contains a single return statement with no branching. Clarity of intent: The class documentation, delegate() method, descriptive names, and consistent forwarding pattern make its purpose explicit. Code length: Long overall because of necessary interface boilerplate, but individual methods are concise and contain no unnecessary logic. Action granularity: Each statement performs one clear forwarding operation, with no compressed multi-statement lines. Reading flow: Consistent formatting, annotations, spacing, and method patterns make the code easy to scan. Minor drawbacks are repetitive boilerplate and the lack of visual section headings for the many methods.
Run 2
Code Structure: Methods are logically grouped by network properties, node/edge relationships, degrees, and connection queries. Nesting: All methods are flat, with no branching or nested control flow. Clarity of intent: The class documentation, descriptive method names, and consistent delegate calls make its forwarding purpose explicit. Code length: The class is lengthy and repetitive, but each method is minimal; the repetition is appropriate for implementing the forwarding interface. Action granularity: Each method contains a single return statement performing one clear forwarding operation. Reading flow: Consistent formatting, annotations, and adjacent overloads make the code predictable and easy to scan. Minor spacing between the package declaration and imports would improve presentation.
Run 3
Code Structure: Methods are consistently organized, with related operations and overloads grouped together. Nesting: Completely flat method bodies contain no branching or loops. Clarity of intent: The class name, documentation, and uniform delegate calls clearly communicate the forwarding purpose. Code length: The class is lengthy because it covers many interface methods, but each implementation is minimal; repetition is appropriate forwarding boilerplate. Action granularity: Each method contains a single return statement performing one forwarding operation. Reading flow: Consistent annotations, spacing, naming, and method patterns make the code easy to scan. Minor formatting improvements, such as separating the package declaration from imports, would improve presentation.