original_docstring: Keep a cache of previous function calls
docstring: Keep a cache of previous function calls
docstring_tokens: Keep a cache of previous function calls
code: def cache(func):
      """Keep a cache of previous function calls"""
      @functools.wraps(func)
      def wrapper_cache(*args, **kwargs):
          cache_key = args + tuple(kwargs.items())
          if cache_key not in wrapper_cache.cache:
              wrapper_cache.cache[cache_key] = func(*args, **kwargs)
          return wrapper_cache.cache[cache_key]
      wrapper_cache.cache = dict()
      return wrapper_cache
code_tokens: def cache ( func ) : @ functools . wraps ( func ) def wrapper_cache ( * args , ** kwargs ) : cache_key = args + tuple ( kwargs . items ( ) ) if cache_key not in wrapper_cache . cache : wrapper_cache . cache [ cache_key ] = func ( * args , ** kwargs ) return wrapper_cache . cache [ cache_key ] wrapper_cache . cache = dict ( ) return wrapper_cache
short_docstring: Keep a cache of previous function calls
short_docstring_tokens: Keep a cache of previous function calls
comment: """Keep a cache of previous function calls"""