2d860d3bb02b904bd8f482be76f253d0e26cafb4,mathics/builtin/image.py,DominantColors,apply,#DominantColors#Any#Any#Any#Any#,1285
Before Change
max_coverage = min(num_pixels, int(num_pixels * py_max_color_coverage))
for prototype, coverage, members in dominant:
if len(result) >= at_most:
break
if max_coverage >= coverage > min_coverage:
result.append(Expression("RGBColor", *prototype))
return Expression("List", *result)
After Change
if py_min_color_distance is None:
return
if isinstance(color_coverage, Symbol) and color_coverage.get_name() == "System`Automatic":
py_min_color_coverage = 0.05
py_max_color_coverage = 1.
else:
return
at_most = n.get_int_value()
if at_most > 256:
return
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: mathics/Mathics
Commit Name: 2d860d3bb02b904bd8f482be76f253d0e26cafb4
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: DominantColors
Method Name: apply
Project Name: cesium-ml/cesium
Commit Name: 384e8e0f8a91815568aa3d4c651c8c5e48979262
Time: 2015-12-17
Author: a.crellinquick@gmail.com
File Name: mltsp/util.py
Class Name:
Method Name: cast_model_params
Project Name: brian-team/brian2
Commit Name: 81ac05cfd756e6c43261660b5c6bfb44703ebe36
Time: 2015-03-02
Author: marcel.stimberg@inserm.fr
File Name: brian2/stateupdaters/base.py
Class Name: StateUpdateMethod
Method Name: determine_stateupdater