or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/varname@0.15.x
tile.json

tessl/pypi-varname

tessl install tessl/pypi-varname@0.15.0

Dark magics about variable names in python

Agent Success

Agent success rate when using this tile

90%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.41x

Baseline

Agent success rate without this tile

64%

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses the varname package to implement automatic variable name capture in the Config class and integrate it with the ConfigRegistry system. The focus is on proper usage of the varname() function and understanding its behavior in class initialization contexts.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import varname function",
      "description": "The solution imports the varname() function from the varname package (e.g., 'from varname import varname').",
      "max_score": 10
    },
    {
      "name": "Use varname in __init__",
      "description": "The Config class __init__ method calls varname() to capture the variable name during instantiation.",
      "max_score": 30
    },
    {
      "name": "Store captured name",
      "description": "The captured variable name from varname() is stored as an instance attribute (e.g., self._name or self.__varname__) for later retrieval.",
      "max_score": 15
    },
    {
      "name": "Implement name property",
      "description": "The Config class has a 'name' property that returns the captured variable name stored during initialization.",
      "max_score": 10
    },
    {
      "name": "Store configuration values",
      "description": "The Config class stores the provided configuration values dictionary and makes it accessible via the 'values' property.",
      "max_score": 10
    },
    {
      "name": "Registry uses captured names",
      "description": "The ConfigRegistry.register() method uses the Config instance's captured name (via config.name) as the key for storage in the registry.",
      "max_score": 15
    },
    {
      "name": "Registry get method",
      "description": "The ConfigRegistry.get() method successfully retrieves Config instances by their captured names from the internal storage.",
      "max_score": 5
    },
    {
      "name": "Registry list method",
      "description": "The ConfigRegistry.list_configs() method returns a list of all registered configuration names (keys from the internal storage).",
      "max_score": 5
    }
  ]
}