7cba3f6ddc209449b60f5471554802a1f03e211f,test/test_imgaug.py,Test_ConcavePolygonRecoverer,test__fit_best_valid_polygon,#Test_ConcavePolygonRecoverer#,5727

Before Change


        points = [(0.0, 0.0), (1.0, 0.0), (1.0, 1.0), (0.0, 1.0)]
        points_fit = cpr._fit_best_valid_polygon(points)
        assert np.allclose(points, points_fit)
        assert ia.Polygon(points_fit).is_valid

        // square-like, but top line has one point in its center which"s
        // y-coordinate is below the bottom line
        points = [(0.0, 0.0), (0.45, 0.0), (0.5, 1.5), (0.55, 0.0), (1.0, 0.0),

After Change



        cpr = _ConcavePolygonRecoverer()
        points = [(0.0, 0.0), (1.0, 0.0), (1.0, 1.0), (0.0, 1.0)]
        points_fit = cpr._fit_best_valid_polygon(points, random_state=np.random.RandomState(0))
        assert points_fit == sm.xrange(len(points))

        // square-like, but top line has one point in its center which"s
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: aleju/imgaug
Commit Name: 7cba3f6ddc209449b60f5471554802a1f03e211f
Time: 2019-03-02
Author: kontakt@ajung.name
File Name: test/test_imgaug.py
Class Name: Test_ConcavePolygonRecoverer
Method Name: test__fit_best_valid_polygon


Project Name: automl/SMAC3
Commit Name: 32ae80fe65595a38fd378bd3b2abaa3a8beeae01
Time: 2019-12-02
Author: ashraaghav@gmail.com
File Name: test/test_initial_design/test_initial_design.py
Class Name: TestSingleInitialDesign
Method Name: test_multi_config_design


Project Name: scikit-optimize/scikit-optimize
Commit Name: 4932bf681c905a28d1f19e28d7e3b328e8496d30
Time: 2016-08-01
Author: otomo.yuhei@gmail.com
File Name: skopt/learning/tests/test_gbrt.py
Class Name:
Method Name: test_gbrt_in_parallel