Filtering for trait code snippet equal python3 calculate_resize.py