29d4c8008bf062f0e90b0c0653907bed2ee3d48b,src/syft/core/node/domain/service/request_handler_service.py,UpdateRequestHandlerService,process,#Any#Any#Any#,279

Before Change


            replacement_handlers = []
            existing_handlers = getattr(node, "request_handlers", None)
            debug(f"> Updating Request Handlers with existing: {existing_handlers}")
            new_keys = set(msg.handler.keys())
            new_values = msg.handler.values()
            if existing_handlers is not None:
                for existing_handler in existing_handlers:
                    keys = set(existing_handler.keys())

After Change


                matched = None
                for existing_handler in existing_handlers:
                    // we match two handlers according to their tags
                    if existing_handler["tags"] == msg.handler["tags"]:
                        matched = existing_handler
                        // if an existing_handler match the passed in handler,
                        // we ignore it in for loop
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: OpenMined/PySyft
Commit Name: 29d4c8008bf062f0e90b0c0653907bed2ee3d48b
Time: 2021-02-02
Author: xvtongye1986@163.com
File Name: src/syft/core/node/domain/service/request_handler_service.py
Class Name: UpdateRequestHandlerService
Method Name: process


Project Name: microsoft/nni
Commit Name: 262fabf111006c99e7415093c78e9c26d3ebe0f0
Time: 2019-11-14
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/tensorflow/compressor.py
Class Name: Compressor
Method Name: select_config


Project Name: microsoft/nni
Commit Name: c7d58033db0e25736d33406ed262cb5232d366e8
Time: 2020-02-09
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/torch/pruners.py
Class Name: AGP_Pruner
Method Name: update_epoch