685250f5ee3ba20f6dd796a6730c9e8a0b450064,ssd/structures/container.py,Container,to,#Container#,17

Before Change


        self._data_dict[key] = value

    def to(self, *args, **kwargs):
        keys = list(self._data_dict.keys())
        for key in keys:
            value = self._data_dict[key]
            if hasattr(value, "to"):
                self._data_dict[key] = value.to(*args, **kwargs)
        return self

    def numpy(self):
        keys = list(self._data_dict.keys())

After Change


        return self

    def to(self, *args, **kwargs):
        return self._call("to", *args, **kwargs)

    def numpy(self):
        return self._call("numpy")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: lufficc/SSD
Commit Name: 685250f5ee3ba20f6dd796a6730c9e8a0b450064
Time: 2019-06-25
Author: luffy.lcc@gmail.com
File Name: ssd/structures/container.py
Class Name: Container
Method Name: to


Project Name: lufficc/SSD
Commit Name: 685250f5ee3ba20f6dd796a6730c9e8a0b450064
Time: 2019-06-25
Author: luffy.lcc@gmail.com
File Name: ssd/structures/container.py
Class Name: Container
Method Name: numpy


Project Name: lufficc/SSD
Commit Name: 685250f5ee3ba20f6dd796a6730c9e8a0b450064
Time: 2019-06-25
Author: luffy.lcc@gmail.com
File Name: ssd/structures/container.py
Class Name: Container
Method Name: to


Project Name: autonomio/talos
Commit Name: 2a05cf473ffd4732e4c0962ad5d3a5905a77a843
Time: 2019-03-01
Author: johan.mollevik@sogeti.se
File Name: talos/parameters/round_params.py
Class Name:
Method Name: round_params