<s> """<STR_LIT>""" <EOL> import os <EOL> import sys <EOL> from joblib import Memory <EOL> class CacheManager ( Memory ) : <EOL> '''<STR_LIT>''' <EOL> def __call__ ( self , function ) : <EOL> '''<STR_LIT>''' <EOL> from decorator import FunctionMaker <EOL> def decorator_apply ( dec , func ) : <EOL> """<STR_LIT>""" <EOL> return FunctionMaker . create ( <EOL> func , '<STR_LIT>' , <EOL> dict ( decorated = dec ( func ) ) , __wrapped__ = func ) <EOL> if self . cachedir is not None : <EOL> return decorator_apply ( self . cache , function ) <EOL> else : <EOL> return function <EOL> CACHE = CacheManager ( os . environ . get ( '<STR_LIT>' , None ) , <EOL> mmap_mode = os . environ . get ( '<STR_LIT>' , None ) , <EOL> compress = os . environ . get ( '<STR_LIT>' , False ) , <EOL> verbose = int ( os . environ . get ( '<STR_LIT>' , <NUM_LIT:0> ) ) ) <EOL> sys . modules [ __name__ ] = CACHE </s>
