d0836dd9d191d5a0f0b944e8a71cedaeb2c05724,modules/s3/s3task.py,S3Task,run_async,#S3Task#Any#Any#Any#Any#,240

Before Change


                    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:

After Change


            _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:
Italian Trulli
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: aertslab/pySCENIC
Commit Name: 0e6804ca93a4f76300134a126d5942114b71901c
Time: 2018-12-14
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/cli/pyscenic.py
Class Name:
Method Name: prune_targets_command


Project Name: home-assistant/home-assistant
Commit Name: dee6355cc59d7d84f8f7f3a4f1a8dc9b13f9d99e
Time: 2016-05-21
Author: Daniel.Kemp@especiallyrelative.net
File Name: homeassistant/components/media_player/onkyo.py
Class Name:
Method Name: setup_platform