b817ad7232b542afd9fe258a85f7a059322dd8a1,reframe/utility/jsonext.py,_ReframeJsonDecoder,__init__,#_ReframeJsonDecoder#,40

Before Change


            self.rfm_obj = kwargs["rfm_obj"]
            del kwargs["rfm_obj"]

        json.JSONDecoder.__init__(self, object_hook=self.object_hook,
                                  *args, **kwargs)

    def object_hook(self, obj):
        if "modules" in obj:
            self.rfm_obj.__rfm_json_restore__(obj)

After Change


class _ReframeJsonDecoder(json.JSONDecoder):
    def __init__(self, *args, **kwargs):
        self.__target = kwargs.pop("_target", None)
        super().__init__(object_hook=self.object_hook, *args, **kwargs)

    def object_hook(self, obj):
        target_typename = type(self.__target).__qualname__
        if "__rfm_class__" not in obj:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: eth-cscs/reframe
Commit Name: b817ad7232b542afd9fe258a85f7a059322dd8a1
Time: 2020-11-25
Author: karakasis@cscs.ch
File Name: reframe/utility/jsonext.py
Class Name: _ReframeJsonDecoder
Method Name: __init__


Project Name: pymc-devs/pymc3
Commit Name: 0383f07a7826ea0a71226724f405d9aaefe493a0
Time: 2014-02-14
Author: rayvroberts@gmail.com
File Name: pymc/distributions/transforms.py
Class Name: TransformedDistribution
Method Name: __init__


Project Name: scipy/scipy
Commit Name: 8b2b198d2c78141155fd830a3e9c705ffbb6d6af
Time: 2013-08-18
Author: gaul@web-yard.de
File Name: scipy/sparse/linalg/interface.py
Class Name: MatrixLinearOperator
Method Name: __init__


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: e4e6194b0088314e39d185424c6efb6617ba2755
Time: 2017-12-18
Author: donal.k.fellows@manchester.ac.uk
File Name: spynnaker/pyNN/models/spike_source/spike_source_array.py
Class Name: SpikeSourceArray
Method Name: __init__