Sample

pyint-34c3e279626b-I04

Replace names with deterministic minifier-style shortest identifiers

Matched original source

Lines31

Scores

MethodScoreScale
Posnett00–1; higher is more readable
Dorn0.5670–1; higher is more readable
Mi0.6030–1; higher is more readable
LLOC23Logical lines; fewer is more readable
DeepSeek V4 Pro1.670–20; mean of three runs
GPT-6.1 Sol11.670–20; mean of three runs
BTTF0.5160–1; higher is more readable

Views

Source code

from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache class DummyCache(BaseCache): def __init__(self, h, *i, **j): super().__init__(*i, **j) def a(self, k, l, m=DEFAULT_TIMEOUT, n=None): self.make_and_validate_key(k, version=n) return True def b(self, o, p=None, q=None): self.make_and_validate_key(o, version=q) return p def c(self, r, s, t=DEFAULT_TIMEOUT, u=None): self.make_and_validate_key(r, version=u) def d(self, v, w=DEFAULT_TIMEOUT, x=None): self.make_and_validate_key(v, version=x) return False def e(self, y, z=None): self.make_and_validate_key(y, version=z) return False def f(self, A, B=None): self.make_and_validate_key(A, version=B) return False def g(self): pass

Loading feature diagnosis…

Source regions

Feature contributions

Feature contributions

FeatureValueContribution
(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.1259.466−41.562
Source linesThe number of non-empty source lines.31+12.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.713−7.07

Intercept 8.87 + feature contributions = -27.362 (log-odds).
Score = sigmoid(-27.362) = 0.

Feature contributions

FeatureValueContribution
(log-odds)
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.0−0.804
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.69.938+0.703
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.13−0.318
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.26+0.116
Indentation frequencyHow rapidly indentation changes from line to line.24+0.093
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.30.268+0.013

Intercept 0.07 + feature contributions = 0.271 (log-odds).
Score = sigmoid(0.271) = 0.567.

Score0.603
Score23
Run 1

The code is nearly unreadable due to meaningless names (h, a, k, l, m, n, etc.) that obscure the purpose of methods and parameters. There is no documentation or docstrings explaining the dummy cache behavior. The structure is logically grouped but impossible to interpret without external knowledge of Django cache backend APIs. Nesting is flat, which is positive, but clarity of intent is extremely low. Code length is concise, but this brevity sacrifices readability. Each line generally performs one action, yet the parameter names undermine any natural reading flow. Overall, it resembles obfuscated code rather than maintainable source.

Run 2

The structure is logically organized but highly obfuscated by meaningless variable and method names (h, i, j, a, b, c, etc.). Nesting is flat and each action is on its own line, which is positive, but clarity of intent is severely compromised because nobody can understand what the methods do without external context. Code length is concise, but brevity here comes at the cost of readability, since standard Django cache method names and parameters have been replaced with arbitrary letters. The reading flow is disorienting; even someone familiar with the Django cache backend API would struggle to map these identifiers to their intended purpose. Overall, it violates core readability principles despite having a clean shape.

Run 3

The code is nearly unreadable due to meaningless single-letter and double-letter parameter names, cryptic method names (a, b, c, etc.), and complete lack of docstrings or comments. It is impossible to infer intent or behavior from the identifiers alone, violating clarity of intent and reading flow. The class name DummyCache suggests the methods override cache operations, but the obfuscated names make even that unclear. Nesting is flat and action granularity is acceptable, but structure and conciseness do not compensate for the severe naming problems. The code is technically valid but fails readability standards in every meaningful way for a maintainer.

Run 1

Code Structure: A single class with consistently separated methods provides clear organization. Nesting: No branching or deep nesting makes individual methods easy to scan. Clarity of intent: DummyCache and the base class establish context, but single-letter method and parameter names obscure operations and argument roles. Unused parameters further weaken understanding. Code length: The implementation is concise, with little unnecessary code. Action granularity: Each line performs one action, keeping execution steps distinct. Reading flow: Consistent formatting and repeated validation patterns support smooth reading, but readers must infer each method's purpose from its signature and return value. Overall, the layout is readable while the naming substantially limits comprehension.

Run 2

Code Structure: Methods are cleanly organized within a single class, with consistent formatting. Nesting: Flat method bodies make the code easy to scan. Clarity of intent: DummyCache suggests a no-op cache, but single-letter method and parameter names obscure operations and argument roles; unused parameters further weaken clarity. Code length: Short and reasonably concise, although key-validation calls are repetitive. Action granularity: Each statement performs one action, with no compressed multi-action lines. Reading flow: Consistent method patterns support smooth reading, but understanding the interface requires external context because names provide almost no semantic guidance.

Run 3

Code Structure: The class is logically organized into small, separate methods, though their relationships are unclear. Nesting: Methods are flat, with no nested control flow. Clarity of intent: DummyCache and make_and_validate_key provide context, but single-letter method and parameter names obscure operations and argument meanings. Unused parameters and unexplained constant return values further weaken clarity. Code length: The implementation is concise, with little unnecessary code. Action granularity: Each line performs a single action. Reading flow: Consistent formatting and repeated validation calls make the code easy to scan, but understanding its behavior requires inferring what each cryptically named method represents.