65b0e17afd8e8fedc0cfefe270acbee0d752adf1,functions/KeyMetadata.py,KeyMetadata,updateRasterInfo,#KeyMetadata#,63

Before Change


        }

    def updateRasterInfo(self, **kwargs):
        self.props = json.loads(kwargs.get("json", ""))
        if self.props is None:
            self.props = {}

After Change



    def updateRasterInfo(self, **kwargs):
        jsonInput = kwargs.get("json", "")
        if len(jsonInput) > 0:
            self.props = ast.literal_eval(jsonInput)

        if self.props is None:
            self.props = {}

        p = kwargs.get("property", "").lower()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Esri/raster-functions
Commit Name: 65b0e17afd8e8fedc0cfefe270acbee0d752adf1
Time: 2015-05-25
Author: akferoz@esri.com
File Name: functions/KeyMetadata.py
Class Name: KeyMetadata
Method Name: updateRasterInfo


Project Name: hanxiao/bert-as-service
Commit Name: 815601e47f97acb3d00633d5ff172403c76bf034
Time: 2018-11-13
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run


Project Name: open-mmlab/mmdetection
Commit Name: f0644d7d7137a0f7369616ed1740379e47a918cf
Time: 2020-03-19
Author: melikovk@gmail.com
File Name: tools/test.py
Class Name: MultipleKVAction
Method Name: __call__