d0836dd9d191d5a0f0b944e8a71cedaeb2c05724,modules/s3/s3task.py,S3Task,run_async,#S3Task#Any#Any#Any#Any#,240
Before Change
current.log.error(error)
raise HTTP(501, error)
args = ",".join(_args)
_vars = ",".join(["%s=%s" % (str(var),
str(vars[var])) for var in vars])
if args:
statement = "tasks["%s"](%s,%s)" % (task, args, _vars)
else:
statement = "tasks["%s"](%s)" % (task, _vars)
After Change
raise HTTP(501, error)
args = ",".join(_args)
_vars = []
for var in vars:
value = vars[var]
if isinstance(value, INTEGER_TYPES + (float,)):
_vars.append("%s=%s" % (var, value))
else:
try:
value = json.dumps(value)
except:
error = "Unhandled var type: %s" % var
current.log.error(error)
raise HTTP(501, error)
else:
_vars.append("%s=%s" % (var, value))
vars = ",".join(_vars)
if args:
statement = "tasks["%s"](%s,%s)" % (task, args, vars)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: sahana/eden
Commit Name: d0836dd9d191d5a0f0b944e8a71cedaeb2c05724
Time: 2020-07-15
Author: fran@aidiq.com
File Name: modules/s3/s3task.py
Class Name: S3Task
Method Name: run_async
Project Name: commonsense/conceptnet5
Commit Name: 94d6c6d68dce62d4f27b5492a09e530076cae955
Time: 2016-06-07
Author: rob@luminoso.com
File Name: conceptnet5/formats/convert.py
Class Name:
Method Name: msgpack_to_tab_separated
Project Name: hellohaptik/chatbot_ner
Commit Name: 6b22bfb5cd30bd48789486a7f2aee12d784af5b0
Time: 2019-03-28
Author: ashutosh@jubi.ai
File Name: datastore/elastic_search/query.py
Class Name:
Method Name: full_text_query