77156ff454c92468892dc64300878a3242fc57de,test/augmentables/test_lines.py,TestLineStringsOnImage,test_clip_out_of_image,#TestLineStringsOnImage#,1630
Before Change
assert observed.line_strings[0].coords_almost_equals(
ls1.clip_out_of_image((100, 100, 3))
)
assert observed.line_strings[1].coords_almost_equals(
ls2.clip_out_of_image((100, 100, 3))
)
assert observed.shape == (100, 100, 3)
lsoi = LineStringsOnImage([], shape=(100, 100, 3))
observed = lsoi.clip_out_of_image()
After Change
ls2 = LineString([(10, 10)])
lsoi = LineStringsOnImage([ls1, ls2], shape=(100, 100, 3))
observed = lsoi.clip_out_of_image()
expected = []
expected.extend(ls1.clip_out_of_image((100, 100, 3)))
expected.extend(ls2.clip_out_of_image((100, 100, 3)))
assert len(lsoi.line_strings) == len(expected)
for ls_obs, ls_exp in zip(observed.line_strings, expected):
assert ls_obs.coords_almost_equals(ls_exp)
assert observed.shape == (100, 100, 3)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: aleju/imgaug
Commit Name: 77156ff454c92468892dc64300878a3242fc57de
Time: 2019-04-09
Author: kontakt@ajung.name
File Name: test/augmentables/test_lines.py
Class Name: TestLineStringsOnImage
Method Name: test_clip_out_of_image
Project Name: Qiskit/qiskit-aqua
Commit Name: 5f528564c794893911d4d65699f05fdb72342926
Time: 2020-09-12
Author: 47442626+a-matsuo@users.noreply.github.com
File Name: qiskit/optimization/applications/ising/tsp.py
Class Name:
Method Name: get_tsp_solution
Project Name: pantsbuild/pants
Commit Name: e9bf50c354ed3d79a2dc6bd7354de2f9c5fd62c2
Time: 2015-07-27
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/codegen/tasks/test_ragel_gen.py
Class Name: RagelGenTest
Method Name: test_ragel_gen
Project Name: Hironsan/anago
Commit Name: e1209a057354bdb521afe37b878e27a77f227427
Time: 2018-05-31
Author: hiroki.nakayama.py@gmail.com
File Name: tests/test_utils.py
Class Name: TestUtils
Method Name: test_batch_iter