Sample
pyint-4d81b67912ab-I09
Select one of ten low-readability unrelated code templates per class
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Dorn | 0.362 | 0–1; higher is more readable |
| Mi | 0.396 | 0–1; higher is more readable |
| LLOC | 21 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 5.33 | 0–20; mean of three runs |
| GPT-6.1 Sol | 11.67 | 0–20; mean of three runs |
| BTTF | 0.318 | 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. | 825.975 | −27.257 |
| Source linesThe number of non-empty source lines. | 25 | +10 |
| 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.025 | −7.538 |
Intercept 8.87 + feature contributions = -15.925 (log-odds).
Score = sigmoid(-15.925) = 0.
Feature contributions
| Feature | Value | Contribution (log-odds) |
|---|---|---|
| Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right. | 0 | −0.804 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.073 | +0.237 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 25 | −0.153 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 25 | +0.128 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 26 | +0.116 |
| 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. | 88.846 | −0.098 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 24.822 | −0.063 |
Intercept 0.07 + feature contributions = -0.567 (log-odds).
Score = sigmoid(-0.567) = 0.362.
| Score | 0.396 |
|---|
| Score | 21 |
|---|
Run 1
The code is significantly unreadable due to several major issues. The class PassList contains obfuscated variable names (lI0O_6fc921c4, lI0O_271670d1) with meaningless bitwise operations that serve no purpose in the check method, making the intent completely unclear. The action granularity is poor as multiple operations are crammed onto single lines with semicolons. The nesting is shallow but the reading flow is severely disrupted by the cryptic variable names and dead code. While the imports are organized and the class structure is minimal, the clarity of intent is nearly zero for the check method. The to_json method is slightly clearer but still ambiguous due to the lack of context about the serializer attribute. Overall, the code appears intentionally obfuscated or poorly maintained, making it very difficult to understand without extensive investigation.
Run 2
The code has a clear top-level structure with conventional imports and a class definition, but readability is severely compromised by obfuscated variable names (`lI0O_6fc921c4`, `lI0O_271670d1`) and meaningless bitwise operations that appear to do nothing useful. The `check` method contains multiple actions on single lines and convoluted reassignments that obscure intent. Nesting is flat and action granularity is mostly reasonable in `to_json`, but the obfuscated logic in `check` destroys reading flow and clarity of intent. The `tag = to_json` alias is concise but slightly ambiguous without context. Overall, the code is technically functional but reads as deliberately obscured, making it difficult to understand or maintain.
Run 3
This code is highly unreadable. The class structure and method names are somewhat recognizable, but the presence of nonsensical obfuscated variable names (e.g., lI0O_6fc921c4, lI0O_271670d1) and dead bitwise operations destroys clarity of intent. The check method includes arithmetic that serves no purpose and obscures the trivial isinstance check. Action granularity is poor because multiple meaningless operations are packed into each line. The reading flow is broken by this dead code, and while nesting is low, the overall structure is undermined by the lack of meaningful logic. Code length is inflated with useless statements, making a trivial method unnecessarily long and confusing.
Run 1
Code Structure: The class and methods are logically organized, but unrelated imports and meaningless calculations clutter the implementation. Nesting: Very shallow, with a straightforward list comprehension and no nested control flow. Clarity of intent: List detection and item serialization are clear, but cryptic variable names and redundant bitwise operations obscure the check method. JSONTag and serializer also depend on context not shown. Code length: The functional implementation is concise, but several unused imports and three unnecessary calculation lines inflate the snippet. Action granularity: Most lines perform one action, although the initial tuple assignment combines two assignments and the bitwise expression is unnecessarily complex. Reading flow: Method ordering is natural, but the distracting calculations interrupt the path to the simple type check; the tag alias requires a small contextual inference.
Run 2
Code Structure: The class is logically organized into checking and serialization methods, but numerous unused imports and irrelevant operations clutter it. Nesting: The code is flat, with only a straightforward list comprehension. Clarity of intent: Method names and the final return statements convey the purpose, while cryptic variable names and pointless bitwise operations obscure the check method. Code length: The actual functionality is concise, but unnecessary imports and calculations substantially inflate the snippet. Action granularity: Most lines contain a single action, although the tuple assignment and compound bitwise expression add avoidable complexity. Reading flow: The class layout is natural, but unrelated calculations interrupt the otherwise direct flow from type checking to list serialization.
Run 3
Code Structure: The class is logically organized into checking and serialization methods, but numerous unrelated imports and dead computations add clutter. Nesting: Flat methods and a simple list comprehension are easy to follow. Clarity of intent: The isinstance check and serialization comprehension express their purposes clearly, while cryptic variable names and meaningless bitwise operations obscure the check method. Code length: The functional logic is concise, but unnecessary statements and imports inflate the snippet. Action granularity: Most lines perform one action, although the tuple assignment combines two initializations and the bitwise expression is needlessly complex. Reading flow: Method ordering and the tag alias are coherent, but readers must work past distracting obfuscation before reaching the actual type check.