5be92eebc553ea46983df4e873ab8bdd8d8fe83e,pyemma/_base/serialization/serialization.py,,save,#Any#Any#Any#Any#,67

Before Change


    from jsonpickle.pickler import Pickler

    global _handlers_registered
    if not _handlers_registered:
        _reg_all_handlers()
        _handlers_registered = True
    // if we are serializing a pipeline element, store whether to store the chain elements.
    old_flag = obj._save_data_producer
    obj._save_data_producer = save_streaming_chain
    assert obj._save_data_producer == save_streaming_chain
    try:

After Change


            from .pickle_extensions import HDF5PersistentPickler
            pickler = HDF5PersistentPickler(g, file=file)
            pickler.dump(obj)
            file.seek(0)
            flat = file.read()
            // attach the pickle byte string to the H5 file.
            g.attrs["model"] = np.void(flat)
            // integrity check
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: markovmodel/PyEMMA
Commit Name: 5be92eebc553ea46983df4e873ab8bdd8d8fe83e
Time: 2017-12-14
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name:
Method Name: save


Project Name: matthewwithanm/django-imagekit
Commit Name: 7e5491cc3edbc62f85229beca36a9e3602ec9ad4
Time: 2011-11-08
Author: matthew@exanimo.com
File Name: imagekit/utils.py
Class Name:
Method Name: open_image


Project Name: pantsbuild/pants
Commit Name: 822feea791c579c6bdc17f24c40e3524b02a818c
Time: 2015-12-30
Author: zundel@squareup.com
File Name: src/python/pants/binaries/binary_util.py
Class Name: BinaryUtil
Method Name: _select_binary_stream


Project Name: instacart/lore
Commit Name: cf23497b8a45aafb296358dad1aa57546bbba64b
Time: 2018-01-09
Author: montanalow@users.noreply.github.com
File Name: lore/io/connection.py
Class Name: Connection
Method Name: insert


Project Name: dnouri/skorch
Commit Name: 0f7823cb6a27b5d7dfab56f06a6601bf2957594b
Time: 2018-08-23
Author: stsievert@users.noreply.github.com
File Name: skorch/net.py
Class Name: NeuralNet
Method Name: __setstate__