ad589ffdb43ec55d3465451ef9c7602faa28589e,autosklearn/util/backend.py,Backend,save_datamanager,#Backend#Any#,116

Before Change


        lock_path = filepath + ".lock"
        with lockfile.LockFile(lock_path):
            if not os.path.exists(filepath):
                with open(filepath, "wb") as fh:
                    pickle.dump(datamanager, fh, -1)

        return filepath

After Change



    def save_datamanager(self, datamanager):
        self._make_internals_directory()
        filepath = self._get_datamanager_pickle_filename()

        lock_path = filepath + ".lock"
        with lockfile.LockFile(lock_path):
            if not os.path.exists(filepath):
                with tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(
                        filepath), delete=False) as fh:
                    pickle.dump(datamanager, fh, -1)
                    tempname = fh.name
                os.rename(tempname, filepath)

        return filepath

    def load_datamanager(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: automl/auto-sklearn
Commit Name: ad589ffdb43ec55d3465451ef9c7602faa28589e
Time: 2016-02-10
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/util/backend.py
Class Name: Backend
Method Name: save_datamanager


Project Name: automl/auto-sklearn
Commit Name: ad589ffdb43ec55d3465451ef9c7602faa28589e
Time: 2016-02-10
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/util/backend.py
Class Name: Backend
Method Name: save_predictions_as_npy


Project Name: automl/auto-sklearn
Commit Name: ad589ffdb43ec55d3465451ef9c7602faa28589e
Time: 2016-02-10
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/util/backend.py
Class Name: Backend
Method Name: save_model


Project Name: automl/auto-sklearn
Commit Name: ad589ffdb43ec55d3465451ef9c7602faa28589e
Time: 2016-02-10
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/util/backend.py
Class Name: Backend
Method Name: save_ensemble