c073de4002f7a72babc8fd6ecdcd90c141be2c08,Orange/widgets/utils/datacaching.py,,setCached,#Any#Any#Any#,18

Before Change



def setCached(data, name, info):
    if not data: return
    if getattr(data, "info", None) == None or data.info["__version__"] != data.version:
        setattr(data, "info", {"__version__": data.version})
    data.info[name] = info

def delCached(data, name):
    if not data: return

After Change


    if data is None:
        return
    info = getattr(data, "__data_cache")
    if info is None:
        info = data.info = {}
    info[name] = value

def delCached(data, name):
    info = data is not None and getattr(data, "__data_cache")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biolab/orange3
Commit Name: c073de4002f7a72babc8fd6ecdcd90c141be2c08
Time: 2013-01-21
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/utils/datacaching.py
Class Name:
Method Name: setCached


Project Name: biolab/orange3
Commit Name: c073de4002f7a72babc8fd6ecdcd90c141be2c08
Time: 2013-01-21
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/utils/datacaching.py
Class Name:
Method Name: getCached


Project Name: daavoo/pyntcloud
Commit Name: 55c52a191bb36313c86ea340a024f4fe21eac699
Time: 2016-10-17
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: __init__