Sample
pyint-ee893cf45aa5-I04
Replace names with deterministic minifier-style shortest identifiers
Scores
| Method | Score | Scale |
|---|---|---|
| Posnett | 0 | 0–1; higher is more readable |
| Dorn | 0.594 | 0–1; higher is more readable |
| Mi | 0.726 | 0–1; higher is more readable |
| LLOC | 17 | Logical lines; fewer is more readable |
| DeepSeek V4 Pro | 6 | 0–20; mean of three runs |
| GPT-6.1 Sol | 12.67 | 0–20; mean of three runs |
| BTTF | 0.573 | 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. | 790.827 | −26.097 |
| Source linesThe number of non-empty source lines. | 21 | +8.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.656 | −6.983 |
Intercept 8.87 + feature contributions = -15.811 (log-odds).
Score = sigmoid(-15.811) = 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 |
| Number layout frequencyHow rapidly the number of numeric values per line changes through the code. | 1 | +0.398 |
| 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. | 77.909 | +0.365 |
| Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *. | 0.07 | +0.259 |
| Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code. | 22 | +0.257 |
| Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom. | 20.861 | −0.118 |
| Indentation frequencyHow rapidly indentation changes from line to line. | 20 | −0.045 |
Intercept 0.07 + feature contributions = 0.382 (log-odds).
Score = sigmoid(0.382) = 0.594.
| Score | 0.726 |
|---|
| Score | 17 |
|---|
Run 1
The code suffers from severe readability issues. Non-descriptive names like 'a', 'b', 'c', 'd', 'e', 'f', and 'g' obscure intent, making it impossible to understand parameters and flow without external context. The method 'a' is particularly confusing, performing string formatting and parameter flattening while returning a tuple. The class name 'ExtraWhere' is somewhat descriptive, but the comments are minimal and don't clarify the black-box nature. The structure mixes imports and class definition, but the main problem is the obscurity of variables and method names. The code is concise, but at the expense of clarity, violating multiple criteria: clarity of intent, action granularity (the list comprehension and join are packed), and reading flow.
Run 2
This code is extremely hard to read and follow. The class name 'ExtraWhere' is vague, and the method name 'a' conveys no meaning. Parameter names like 'b', 'c', 'd', 'e', 'f', and 'g' are meaningless and make the logic opaque. The imports include several unused modules (operator, reduce, EmptyResultSet, FullResultSet, Case, When, Mod, Exact, tree), which adds clutter and confusion. The class comment is misplaced and does not explain the actual purpose of the class. The method body is concise, but the actions are packed into a single comprehension and join, making the flow hard to parse. Overall, the code lacks clarity of intent and readability; someone maintaining this would struggle to understand what it does without extensive context.
Run 3
The code is short but difficult to read due to poor naming choices. Variables like 'b', 'c', 'a', 'd', 'e', 'f', and 'g' obscure intent, making it hard to understand what the class does without deep analysis. The structure is minimal and nesting is flat, which helps, but the action granularity and reading flow suffer from ambiguous naming and mixed responsibilities in the method. The unused imports (operator, reduce, Case, When, Mod, Exact, tree, cached_property) add unnecessary noise and suggest tangled code. The class lacks a clear explanation of its purpose beyond a brief comment, and the method 'a' combines list comprehension, string joining, and parameter handling in one line, which reduces readability. Overall, the code requires significant effort to interpret despite its concise length.
Run 1
1. Code Structure: A small class logically groups SQL fragments, parameters, and rendering, but numerous unused imports add clutter. 2. Nesting: Flat methods and a simple comprehension are easy to follow. 3. Clarity of intent: ExtraWhere, sqls, and params suggest the purpose, but single-letter method, parameter, and local names obscure meaning; unused method arguments also create uncertainty. 4. Code length: The implementation is concise, although unused imports unnecessarily lengthen it. 5. Action granularity: Assignments are separated cleanly, while the return expression compactly combines joining SQL and normalizing parameters without becoming difficult to parse. 6. Reading flow: Initialization followed by rendering provides a natural sequence, but cryptic identifiers interrupt comprehension.
Run 2
Code Structure: Imports and a small class provide logical organization, though many imports are unused. Nesting: Very flat, with no nested control flow. Clarity of intent: ExtraWhere, sqls, params, and the comment suggest SQL-condition handling, but the method name a and parameters b, c, d, e obscure their roles; d and e are unused. Code length: The implementation is concise, although unused imports add unnecessary bulk. Action granularity: Statements generally perform one action per line; the return combines joining SQL fragments and normalizing parameters without becoming unwieldy. Reading flow: Initialization followed by SQL assembly is natural, but cryptic identifiers force readers to infer meaning from expressions rather than names.
Run 3
Code Structure: The class cleanly groups SQL fragments, parameters, and SQL generation, but several unused imports add clutter. Nesting: The code is flat, with only a straightforward list comprehension. Clarity of intent: Django-related attributes and the comment provide context, while single-letter method, argument, and variable names obscure purpose; unused method arguments also create ambiguity. Code length: The implementation is concise, although imports unrelated to the shown functionality reduce focus. Action granularity: Each statement performs one clear operation, with no compressed multi-statement lines. Reading flow: Initialization naturally precedes SQL generation, but cryptic naming and the lack of a descriptive method name interrupt understanding.