old_contents: def abs_sobel_thresh(img, orient='x', sobel_kernel=3, thresh=(0, 255)):
      # Calculate directional gradient
      # Apply threshold
      return grad_binary
  
  def mag_thresh(image, sobel_kernel=3, mag_thresh=(0, 255)):
      # Calculate gradient magnitude
      # Apply threshold
      return mag_binary
  
  def dir_threshold(image, sobel_kernel=3, thresh=(0, np.pi/2)):
      # Calculate gradient direction
      # Apply threshold
      return dir_binary
  
  # Choose a Sobel kernel size
  ksize = 3 # Choose a larger odd number to smooth gradient measurements
  
  # Apply each of the thresholding functions
  gradx = abs_sobel_thresh(image, orient='x', sobel_kernel=ksize, thresh=(0, 255))
  grady = abs_sobel_thresh(image, orient='y', sobel_kernel=ksize, thresh=(0, 255))
  mag_binary = mag_thresh(image, sobel_kernel=ksize, mag_thresh=(0, 255))
  dir_binary = dir_threshold(image, sobel_kernel=ksize, thresh=(0, np.pi/2))
  
  combined = np.zeros_like(dir_binary)
  combined[((gradx == 1) & (grady == 1)) | ((mag_binary == 1) & (dir_binary == 1))] = 1
  
new_contents: def abs_sobel_thresh(img, orient='x', sobel_kernel=3, thresh=(0, 255)):
      # Calculate directional gradient
      # Apply threshold
      return grad_binary
  
  def mag_thresh(image, sobel_kernel=3, mag_thresh=(0, 255)):
      # Calculate gradient magnitude
      # Apply threshold
      return mag_binary
  
  def dir_threshold(image, sobel_kernel=3, thresh=(0, np.pi/2)):
      # Calculate gradient direction
      # Apply threshold
      return dir_binary
  
  # Choose a Sobel kernel size
  ksize = 3 # Choose a larger odd number to smooth gradient measurements
  
  # Apply each of the thresholding functions
  gradx = abs_sobel_thresh(image, orient='x', sobel_kernel=ksize, thresh=(0, 255))
  grady = abs_sobel_thresh(image, orient='y', sobel_kernel=ksize, thresh=(0, 255))
  mag_binary = mag_thresh(image, sobel_kernel=ksize, mag_thresh=(0, 255))
  dir_binary = dir_threshold(image, sobel_kernel=ksize, thresh=(0, np.pi/2))
  
subject: Update preprocess.py