59f37f513a58724a93623c44b31da147b52801be,src/sos/sos_task.py,,collect_task_result,#Any#Any#Any#,148

Before Change


        env.logger.debug("task {} (index={}) return shared variable {}".format(task_id, env.sos_dict["_index"], shared))
    // the difference between sos_dict and env.sos_dict is that sos_dict (the original version) can have remote() targets
    // which should not be reported.
    output = {} if env.sos_dict["_output"] is None or sos_dict["_output"] is None else {x:FileTarget(x).signature() for x in sos_dict["_output"] if isinstance(x, str)}
    input = {} if env.sos_dict["_input"] is None or sos_dict["_input"] is None else {x:FileTarget(x).signature() for x in sos_dict["_input"] if isinstance(x, str)}
    depends = {} if env.sos_dict["_depends"] is None or sos_dict["_depends"] is None else {x:FileTarget(x).signature() for x in sos_dict["_depends"] if isinstance(x, str)}
    return {"ret_code": 0, "task": task_id, "input": input, "output": output, "depends": depends,

After Change


        // re-process the output statement to determine output files
        args, _ = SoS_eval("__null_func__({})".format(env.sos_dict["_output"].expr), sigil)
        // handle dynamic args
        args = [x.resolve() if isinstance(x, dynamic) else x for x in args]
        output = {x:FileTarget(x).signature() for x in _expand_file_list(True, *args)}
    else:
        output = {x:FileTarget(x).signature() for x in sos_dict["_output"] if isinstance(x, str)}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: vatlab/SoS
Commit Name: 59f37f513a58724a93623c44b31da147b52801be
Time: 2017-09-02
Author: ben.bog@gmail.com
File Name: src/sos/sos_task.py
Class Name:
Method Name: collect_task_result


Project Name: tensorflow/datasets
Commit Name: 12c41492afd6b25847c277be1adaee6642f4756e
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager.py
Class Name: DownloadManager
Method Name: _download


Project Name: comic/grand-challenge.org
Commit Name: e357e1dbcdf36eb12be0bc5043e0a098f94a833a
Time: 2017-05-09
Author: jamesmeakin@gmail.com
File Name: django/comicsite/templatetags/comic_templatetags.py
Class Name: comic_URLNode
Method Name: render