1d9ed965c3ea6e7b8ef45dbea919a7260680cd65,tests/test_pickle.py,,test_pickle,#,13

Before Change


    assert ft_clf.predict([["woof lol"]])[0] == 0
    assert ft_clf.predict([["meow lolz"]])[0] == 1

    pic_fpath = os.path.expanduser("~/.temp/ttemp_ft_model.ft")
    with open(pic_fpath, "wb+") as bfile:
        pickle.dump(ft_clf, bfile)
    with open(pic_fpath, "rb") as bfile:
        ft_clf2 = pickle.load(bfile)

After Change


    assert ft_clf.predict([["woof lol"]])[0] == 0
    assert ft_clf.predict([["meow lolz"]])[0] == 1

    fd, pic_fpath = tempfile.mkstemp()
    with open(pic_fpath, "wb+") as bfile:
        pickle.dump(ft_clf, bfile)
    with open(pic_fpath, "rb") as bfile:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: shaypal5/skift
Commit Name: 1d9ed965c3ea6e7b8ef45dbea919a7260680cd65
Time: 2019-01-02
Author: chris.rouffer@assentcompliance.com
File Name: tests/test_pickle.py
Class Name:
Method Name: test_pickle


Project Name: nipy/dipy
Commit Name: 749855e9d1b5bd1aa7b46db144503922fbc0a336
Time: 2013-08-06
Author: matthieu.dumont@usherbrooke.ca
File Name: doc/examples/brain_extraction_dwi.py
Class Name:
Method Name:


Project Name: shaypal5/skift
Commit Name: 1d9ed965c3ea6e7b8ef45dbea919a7260680cd65
Time: 2019-01-02
Author: chris.rouffer@assentcompliance.com
File Name: tests/test_pickle.py
Class Name:
Method Name: test_pickle_unfitted