

def _build_script(definition, signature):
    script = ('\n        try {\n          current_sha1 = methods[name]\n        } catch(e) {\n          current_sha1 = null\n          methods = [:]\n          methods[name] = sha1\n        }\n        if (current_sha1 == sha1) \n          %s\n\n        try { \n          return %s\n        } catch(e) {\n\n          return %s \n        }' % (signature, script, signature))
    return script

dataset/ETHPy150Open espeed/bulbs/bulbs/groovy.py GroovyScripts._build_script/VarMisuse@20/146 `definition`->`script`