Sample

JetBrains/e8

Human rating uses the original dataset scale.

DatasetJetBrains
Human0.39
Lines6

Scores

MethodScoreScaleDataset rank
(0–100)
Posnett0.2120–1; higher is more readable
99.2Δ 92.4
Scalabrino0.3650–1; higher is more readable
18.6Δ 11.9
Dorn0.2980–1; higher is more readable
21.2Δ 14.4
Mi0.010–1; higher is more readable
3.4Δ 3.4
LLOC3Logical lines; fewer is more readable
98.3Δ 91.5
DeepSeek V4 Pro120–20; mean of three runs
16.1Δ 9.3
GPT-6.1 Sol130–20; mean of three runs
7.2Δ 0.4
BTTF0.5350–1; higher is more readable
72.9Δ 66.1
Human0.390–1; original rating
6.8

Views

Source code

public class Quine { public static void main(String[] args) { String s="public class Quine {\n public static void main(String[] args) {\n String s=%c%s%c;%n System.out.printf(s,34,s,34);\n }\n}"; //initialize string with code System.out.printf(s,34,s,34); //print string with format specifier } }

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(log-odds)
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.658−6.988
Halstead volumeHow much symbolic information the code contains. It combines the total number of operators and values with the number of distinct ones.169.644−5.598
Source linesThe number of non-empty source lines.6+2.4

Intercept 8.87 + feature contributions = -1.316 (log-odds).
Score = sigmoid(-1.316) = 0.212.

Score0.365

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.170.833−3.571
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.171+1.955
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.1+1.001
Indentation frequencyHow rapidly indentation changes from line to line.1−0.703
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.055+0.404
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.4.849−0.342
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.4+0.329

Intercept 0.07 + feature contributions = -0.857 (log-odds).
Score = sigmoid(-0.857) = 0.298.

Score0.01
Score3
Run 1

The code is a simple quine, but readability is hampered by poor formatting and lack of clarity. The structure is logical but minimal. Nesting is flat, which is good. Intent is unclear without prior knowledge of quines. Length is concise, but this contributes to ambiguity. Multiple actions are compressed into single lines (declaration, comment, printing). Reading flow is disrupted by the escaped newline characters and format specifiers embedded in the string literal. While the code is functionally compact, it prioritizes trickery over clarity. Scored 12, not lower, because it is a short snippet with a clear structure overall; not higher, because the core string is a dense mix of code and meta-code that is hard to parse visually.

Run 2

The code is a concise Quine program with a clear purpose. The structure is logical: define the source string, then print it using format specifiers. Nesting is minimal (one class, one method), and action granularity is reasonable with one main action per line. However, readability suffers because the entire program is embedded in a single long string with escaped characters, making it visually dense and hard to parse. The variable name 's' is not descriptive, and the comments are somewhat redundant. The use of numeric ASCII codes (34) instead of named constants reduces clarity. While the code is compact, it sacrifices natural reading flow and ease of understanding for brevity.

Run 3

The code is a standard Java quine, but its readability suffers due to the self-referential nature. The structure is logical but minimal—two lines of core logic, with the string containing escaped newlines and format specifiers, making it hard to follow. There is little nesting or excessive length, so those criteria are mostly fine. However, clarity of intent is low: the comments help slightly, but the purpose of the `%c%s%c` pattern and the magic number `34` (ASCII for double quote) is not immediately obvious without prior quine knowledge. Action granularity is good, with one main statement per line, and the reading flow is natural for the small amount of code. Overall, it is compact but opaque for readers unfamiliar with quine techniques, leading to a moderate score.

Run 1

Code Structure: Simple, logically organized class with a single main method. Nesting: Shallow and easy to follow. Clarity of intent: The Quine class name suggests self-reproduction, but the escaped source string, format placeholders, and unexplained numeric value 34 require interpretation; comments explain mechanics rather than purpose. Code length: Concise overall, though the long string literal is visually dense. Action granularity: Each executable statement performs one action on its own line. Reading flow: Execution is straightforward, but minimal spacing, weak indentation, and embedded source code interrupt comfortable reading.

Run 2

Code Structure: A simple class and main method provide clear organization. Nesting: Minimal nesting keeps the executable code easy to follow. Clarity of intent: The Quine name signals self-reproduction, but the embedded source string, format specifiers, and unexplained value 34 require interpretation; comments describe operations rather than explaining the mechanism. Code length: Concise, although the long string literal is visually dense. Action granularity: Each executable statement occupies its own line, but the string embeds several source lines and formatting operations. Reading flow: Execution proceeds naturally from string initialization to printing, though sparse spacing and the dense literal hinder quick comprehension.

Run 3

Code Structure: A simple class and main method provide logical organization. Nesting: Shallow, with only the required class and method scopes. Clarity of intent: The class name suggests a quine, but the embedded source string, formatting placeholders, and unexplained value 34 require careful interpretation; comments describe operations rather than explain the mechanism. Code length: Concise, although the long string literal is visually dense. Action granularity: Each statement performs one main action on its own line. Reading flow: Execution proceeds naturally from string initialization to printing, but minimal spacing, uneven indentation, and escaped source code make reading harder.