Sample

pyint-2f2ec24b0716-I04

Replace names with deterministic minifier-style shortest identifiers

Matched original source

Lines18

Scores

MethodScoreScale
Posnett0.0310–1; higher is more readable
Dorn0.7730–1; higher is more readable
Mi0.5880–1; higher is more readable
LLOC9Logical lines; fewer is more readable
DeepSeek V4 Pro9.330–20; mean of three runs
GPT-6.1 Sol13.330–20; mean of three runs
BTTF0.5490–1; higher is more readable

Views

Source code

from django.contrib.syndication.views import Feed as BaseFeed from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed class Feed(BaseFeed): """ This is a subclass of the `Feed` from `django.contrib.syndication`. This allows users to define a `geometry(obj)` and/or `item_geometry(item)` methods on their own subclasses so that geo-referenced information may placed in the feed. """ feed_type = GeoRSSFeed def a(self, c): return {"geometry": self._get_dynamic_attr("geometry", c)} def b(self, d): return {"geometry": self._get_dynamic_attr("item_geometry", d)}

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.379.567−12.526
Source linesThe number of non-empty source lines.18+7.2
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.649−6.974

Intercept 8.87 + feature contributions = -3.429 (log-odds).
Score = sigmoid(-3.429) = 0.031.

Feature contributions

FeatureValueContribution
(log-odds)
Operator visual areaThe share of the code’s visual area occupied by operators such as +, =, and *.0.046+0.496
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.947+0.364
Comment layout frequencyHow frequently the layout switches between lines containing only comments or whitespace and lines containing code.19+0.364
Indentation frequencyHow rapidly indentation changes from line to line.13−0.287
Comment layout (horizontal)How rapidly the visual pattern of comment characters changes from left to right.65.737+0.256
Identifier layout (vertical)How rapidly the visual pattern of identifier characters changes from top to bottom.17.886−0.16
Number layout frequencyHow rapidly the number of numeric values per line changes through the code.13+0.123

Intercept 0.07 + feature contributions = 1.225 (log-odds).
Score = sigmoid(1.225) = 0.773.

Score0.588
Score9
Run 1

The code has a clear purpose and decent structure, but suffers from poor naming and mixed concerns. The class docstring explains the intent well, but the method names 'a' and 'b' are meaningless and obscure what they do. Parameter names 'c' and 'd' also lack context. The methods return dictionaries for feed item attributes, but the logic is buried behind dynamic attribute lookup, reducing clarity. The code is concise and flat, avoiding deep nesting, and each line is reasonably granular. However, the ambiguous naming severely hurts readability and maintainability. Additionally, the imported classes 'GeoRSSFeed', 'Atom1Feed', and 'Rss201rev2Feed' appear unused in the visible code, which adds confusion. Overall, the structure and intent match a typical Django feed extension, but the lack of meaningful identifiers makes it hard to follow without external context.

Run 2

The code is logically organized and mostly flat with minimal nesting, but it fails at clarity of intent due to poor naming. Methods named 'a' and 'b' and parameters 'c' and 'd' reveal no purpose—forcing the reader to inspect the entire method body and infer what they do. The docstring is helpful for the class, but the method names undermine readability. Code length is concise, and each method performs one logical action, which is good. Reading flow is natural in terms of class → method ordering but breaks down when trying to follow what 'a' and 'b' actually mean. Renaming these to something like 'apply_item_geometry' and 'apply_feed_geometry' with descriptive parameters would significantly improve the score.

Run 3

The code has extremely poor readability. Class and method names ('Feed', 'a', 'b', parameters 'c', 'd') are meaningless, obscuring intent. Methods are single-purpose but cryptically named, hurting clarity and action granularity. While the structure is flat with minimal nesting, the lack of descriptive naming makes logical organization and reading flow very poor. The code is concise, but at the cost of being ambiguous and unmaintainable. A docstring exists for the class but does not compensate for the opaque implementation.

Run 1

Code Structure: Imports, class documentation, configuration, and methods are logically organized. Nesting: Minimal nesting makes the code easy to scan. Clarity of intent: The docstring explains the geographic-feed purpose, but method names a and b and parameter names c and d obscure their roles. The geometry attribute strings provide some context. GeoRSSFeed is not defined or imported in the snippet, leaving its origin unclear. Code length: The implementation is concise without unnecessary repetition. Action granularity: Each method contains a single return statement with a straightforward lookup. Reading flow: The top-to-bottom layout is natural, though opaque names interrupt understanding and make it harder to connect the methods to the documented behavior.

Run 2

Code Structure: The small subclass is logically organized, though GeoRSSFeed is not defined or imported in the snippet, and two imported feed generators are unused. Nesting: Minimal nesting makes the code easy to scan. Clarity of intent: The docstring explains the geographic-feed purpose, but method names a and b and parameters c and d obscure their roles; descriptive names would improve comprehension. Code length: Concise, with little unnecessary code beyond unused imports. Action granularity: Each return performs a single, straightforward mapping operation. Reading flow: Imports, documentation, configuration, and methods follow a natural sequence, but readers must infer how the ambiguously named methods connect to the documented extension points.

Run 3

Code Structure: The class is logically organized, with a docstring, configuration attribute, and two small methods. Nesting: The code is flat and easy to scan. Clarity of intent: The docstring explains the geographic feed purpose, but method names a and b and parameter names c and d obscure their roles. GeoRSSFeed is referenced without a visible definition or import, while Atom1Feed and Rss201rev2Feed are unused in the snippet. Code length: The implementation is concise without unnecessary complexity. Action granularity: Each method contains a single return statement, keeping operations focused. Reading flow: The overall layout is natural, but readers must infer how the vaguely named methods relate to the documented geometry hooks.