20964b5c15a5400114c9aafce04913dbad4f60d6,poseidon/poseidonMonitor/endPoint.py,EndPoint,from_json,#Any#Any#,47

Before Change


    @classmethod
    def from_json(cls, json_obj):
        """initialize object from json"""
        return cls(json.loads(json_obj))

    def update_state(self, next_s="NONE"):
        """state <- next_state, next_state <- "NONE" or a string that is passed as a parameter"""
        self.state = self.next_state

After Change


    def from_json(cls, json_obj):
        """initialize object from json"""
        obj_dict = json.loads(json_obj)
        return cls(obj_dict["endpoint_data"], obj_dict["state"], obj_dict["next_state"])

    def update_state(self, next_s="NONE"):
        """state <- next_state, next_state <- "NONE" or a string that is passed as a parameter"""
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: CyberReboot/poseidon
Commit Name: 20964b5c15a5400114c9aafce04913dbad4f60d6
Time: 2017-10-03
Author: joris.elzen@gmail.com
File Name: poseidon/poseidonMonitor/endPoint.py
Class Name: EndPoint
Method Name: from_json


Project Name: CyberReboot/poseidon
Commit Name: 20964b5c15a5400114c9aafce04913dbad4f60d6
Time: 2017-10-03
Author: joris.elzen@gmail.com
File Name: poseidon/poseidonMonitor/endPoint.py
Class Name: EndPoint
Method Name: from_json


Project Name: snipsco/snips-nlu
Commit Name: c18abcc72779987a43de35add51864a5143ba998
Time: 2018-01-18
Author: adrien.ball@snips.net
File Name: snips_nlu/intent_parser/probabilistic_intent_parser.py
Class Name: ProbabilisticIntentParser
Method Name: from_dict


Project Name: aws/sagemaker-python-sdk
Commit Name: 13fc68c1fbc73ba9791863d5976e529133a7786e
Time: 2020-03-10
Author: knakad@amazon.com
File Name: src/sagemaker/processing.py
Class Name: ProcessingJob
Method Name: from_processing_name