95b93915f158fb77dded9586b41097cb814005d1,skimage/exposure/tests/test_exposure.py,,test_adapthist_borders,#,427
Before Change
// Check last columns are procesed
assert norm_brightness_err(adapted[:, -width], img[:, -width]) > 1e-3
// Check last rows are procesed
assert norm_brightness_err(adapted[-width, :], img[-width, :]) > 1e-3
def test_adapthist_clip_limit():
img_u = data.moon()
After Change
// check borders are processed for different kernel sizes
border_index = -1
for kernel_size in range(51, 71, 2):
adapted = exposure.equalize_adapthist(img, kernel_size, clip_limit=0.5)
// Check last columns are processed
assert norm_brightness_err(adapted[:, border_index],
img[:, border_index]) > 0.1
// Check last rows are processed
assert norm_brightness_err(adapted[border_index, :],
img[border_index, :]) > 0.1
def test_adapthist_clip_limit():
img_u = data.moon()
img_f = util.img_as_float(img_u)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: scikit-image/scikit-image
Commit Name: 95b93915f158fb77dded9586b41097cb814005d1
Time: 2020-05-01
Author: marvin.albert@gmail.com
File Name: skimage/exposure/tests/test_exposure.py
Class Name:
Method Name: test_adapthist_borders
Project Name: scipy/scipy
Commit Name: f53dbe33756a5a71ba0cebb188e40d7e01d39d81
Time: 2016-04-08
Author: endolith@gmail.com
File Name: scipy/special/tests/test_basic.py
Class Name: TestFactorialFunctions
Method Name: test_factorial
Project Name: WheatonCS/Lexos
Commit Name: 4b77e80bd011fe8e6c8779e1459a86927cd954a0
Time: 2019-05-29
Author: jacksonjreed@gmail.com
File Name: test/unit_test/test_scrubber.py
Class Name: TestGetAllPunctuationMap
Method Name: test_get_all_punctuation_map
Project Name: RasaHQ/rasa
Commit Name: f30e10d8ae38849b04b17433f358c0232918c4ed
Time: 2020-10-23
Author: a.lopez@rasa.com
File Name: tests/shared/nlu/training_data/test_training_data.py
Class Name:
Method Name: test_train_test_split
Project Name: WheatonCS/Lexos
Commit Name: 4b77e80bd011fe8e6c8779e1459a86927cd954a0
Time: 2019-05-29
Author: jacksonjreed@gmail.com
File Name: test/unit_test/test_scrubber.py
Class Name: TestGetRemoveDigitsMap
Method Name: test_get_remove_digits_no_store