Sample

Schnappinger/diarymanagement/TBA.Data.User#7196c89c43b9

Human rating uses the original dataset scale.

Human4
Lines58

Scores

MethodScoreScaleDataset rank
(0–100)
Dorn0.9340–1; higher is more readable
97.4Δ 1.0
Mi0.7320–1; higher is more readable
88.4Δ 7.9
LLOC20Logical lines; fewer is more readable
59.7Δ 36.6
DeepSeek V4 Pro17.670–20; mean of three runs
83.0Δ 13.4
GPT-6.1 Sol180–20; mean of three runs
73.8Δ 22.6
BTTF0.7320–1; higher is more readable
88.8Δ 7.6
Human41–4; original rating
96.4

Views

Source code

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package TBA.Data; /** * * @author dmcgra */ public class User { private String displayName; private String sessionID; private int defaultDiaryID; private int numberOfDiaries; public String getSessionID() { return sessionID; } public void setSessionID(String sessionID) { this.sessionID = sessionID; } public void setDefaultDiaryID(int defaultDiaryID) { this.defaultDiaryID = defaultDiaryID; } public void setDisplayName(String displayName) { this.displayName = displayName; } public void setNumberOfDiaries(int numberOfDiaries) { this.numberOfDiaries = numberOfDiaries; } public int getDefaultDiaryID() { return defaultDiaryID; } public String getDisplayName() { return displayName; } public int getNumberOfDiaries() { return numberOfDiaries; } }

Loading feature diagnosis…

Source regions

Feature contributions

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.53.966+1.379
Indentation frequencyHow rapidly indentation changes from line to line.52+1.061
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.59−1.053
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.57.818+0.398
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.06+0.363
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.52.085+0.036

Intercept 0.07 + feature contributions = 2.654 (log-odds).
Score = sigmoid(2.654) = 0.934.

Score0.732
Score20
Run 1

The code is a simple, clean POJO with clear field names and straightforward getter/setter methods. Structure is logical, with no nesting or tangled logic. Each method performs a single action, aligning with action granularity. Reading flow is natural—fields, then accessors grouped by getters and setters. Minor deductions: the file includes leftover auto-generated template comments and lacks documentation for fields or methods, which slightly reduces clarity of intent. Overall, it is concise, flat, and highly readable.

Run 2

The code is highly readable. It follows a clear, logical class structure with fields grouped at the top and getters/setters below. Nesting is minimal—only one level for method bodies. Intent is unambiguous: this is a plain data holder for user session info. The length is concise, with no unnecessary code. Each accessor method performs a single action, maintaining excellent action granularity. Reading flow is natural, with methods ordered in a predictable way. Minor deductions are due to the presence of a placeholder template comment and the lack of field-level documentation, which slightly reduce polish but do not hinder comprehension.

Run 3

The code is a simple Java POJO with clear fields and standard getters/setters. Structure is logical, methods are flat with no nesting, and intent is unambiguous. Length is appropriate, with one action per line. Reading flow is mostly natural with getters preceding setters, though not strictly conventional; still, navigation is straightforward. Minor deductions for a stale generated comment block and lack of modern features like records or encapsulation of identifiers, but overall it is highly readable.

Run 1

Code Structure: A simple, well-organized data class with private fields and public accessors, though pairing each getter with its setter would improve organization. Nesting: Minimal nesting makes every method easy to follow. Clarity of intent: Descriptive field and method names clearly communicate their purpose; the template comment and empty Javadoc add no useful context. Code length: Appropriately short for a conventional Java data class, with only minor comment clutter. Action granularity: Each statement performs a single assignment or return, with one action per line. Reading flow: Consistent indentation and spacing support smooth reading, but the mixed ordering of getters and setters slightly interrupts the flow.

Run 2

Code Structure: Fields and methods are clearly separated, though grouping each getter with its setter would improve organization. Nesting: Minimal nesting makes the class easy to scan. Clarity of intent: Descriptive field and method names clearly communicate a simple user data container. Code length: Methods are concise, but the template comment and empty documentation add unnecessary clutter. Action granularity: Each statement performs one straightforward action on its own line. Reading flow: Consistent formatting supports natural reading, although the mixed ordering of getters and setters slightly disrupts navigation.

Run 3

Code Structure: Fields and methods are logically separated, though grouping each getter with its setter would improve organization. Nesting: There is no control-flow nesting; methods are simple and flat. Clarity of intent: Descriptive field and method names clearly identify a user data container. Code length: Appropriate for a Java class with explicit accessors, although the template header and empty documentation add noise. Action granularity: Each statement performs one action on its own line. Reading flow: Consistent formatting makes the code easy to scan, but the mixed getter/setter ordering slightly interrupts the natural flow.