e562a9e73a4c41dacf93dedb8bfc8e042132c658,gplearn/tests/test_genetic.py,,test_verbose_output,#,483

Before Change



    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


    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")
    true_header = "%4s %8s %16s %8s %16s %16s %16s %10s" % header_fields
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: mynlp/ccg2lambda
Commit Name: 66a06524eba0b22d14204baeb2ca6d4c9db7d1d0
Time: 2017-05-12
Author: pascual@nii.ac.jp
File Name: scripts/semantic_types.py
Class Name:
Method Name: convert_coq_to_nltk_type


Project Name: mlflow/mlflow
Commit Name: 0cb05ada988cb34e30f5c277ed6ca19afe826935
Time: 2020-07-08
Author: 64800904+zhidongqu-db@users.noreply.github.com
File Name: tests/store/dump_schema.py
Class Name:
Method Name: dump_db_schema