e562a9e73a4c41dacf93dedb8bfc8e042132c658,gplearn/tests/test_genetic.py,,test_verbose_output,#,483
Before Change
verbose_output.seek(0)
header = verbose_output.readline().rstrip()
header_fields = ["Gen", "AveFit", "BestFit", "AveLen", "BestLen", "OOBFit",
"TimeLeft"]
true_header = (" ".join(["%10s"] + ["%16s"] * (len(header_fields) - 1)) %
tuple(header_fields))
assert_equal(true_header, header)
n_lines = sum(1 for l in verbose_output.readlines())
assert_equal(10, n_lines)
After Change
header2 = verbose_output.readline().rstrip()
true_header = "-" * 4 + " " + "-" * 25 + " " + "-" * 59 + " " + "-" * 10
assert_equal(true_header, header2)
header3 = verbose_output.readline().rstrip()
header_fields = ("Gen", "Length", "Fitness", "Length", "Fitness",
"Raw Fitness", "OOB Fitness", "Time Left")
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 4
Instances
Project Name: trevorstephens/gplearn
Commit Name: e562a9e73a4c41dacf93dedb8bfc8e042132c658
Time: 2015-04-12
Author: trev.stephens@gmail.com
File Name: gplearn/tests/test_genetic.py
Class Name:
Method Name: test_verbose_output
Project Name: reinforceio/tensorforce
Commit Name: 6273d5bcf7292ca77d7730bcd7102655f7c3bb82
Time: 2017-06-25
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/tests/test_preprocessing.py
Class Name: TestPreprocessing
Method Name: test_preprocessing_grayscale
Project Name: pfnet/optuna
Commit Name: 1013b08791626087e313a1eddf3b5b95eb317c1b
Time: 2020-12-01
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: get_study_direction
Project Name: brilee/MuGo
Commit Name: 06b6715f5c12e9a667c176901a730a896495efc8
Time: 2016-10-10
Author: brian.kihoon.lee@gmail.com
File Name: tests/test_utils.py
Class Name: GoPositionTestCase
Method Name: assertEqualPositions
Project Name: AIRLab-POLIMI/mushroom
Commit Name: f2cfa5fb8e73229a1757acbcc94bab13099de439
Time: 2017-06-05
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/parameters.py
Class Name: Parameter
Method Name: __call__
Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: eb13c2ea02e0e06c06b288e3590ce04cc014ba04
Time: 2019-03-22
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/topicmod/tm_gensim.py
Class Name: MultiprocEvaluationWorkerGensim
Method Name: fit_model
Project Name: ilastik/ilastik
Commit Name: 504cfd6fc4806460178ba00c08b966aad67f23ba
Time: 2012-08-20
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/pixelClassification/opPixelClassification.py
Class Name: OpShapeReader
Method Name: execute