original_docstring: 
      Applies the bias property during the collision between a segment and a disc
      
docstring: Applies the bias property during the collision between a segment and a disc
docstring_tokens: Applies the bias property during the collision between a segment and a disc
code: def segment_apply_bias(
      segment: Segment, dist: float, normal: np.ndarray
  ) -> Tuple[float, np.ndarray]:
      """
      Applies the bias property during the collision between a segment and a disc
      """
      bias_segment = segment.bias
      if bias_segment == 0:
          if dist < 0:
              dist = -dist
              normal = -normal
      elif bias_segment < 0:
          bias_segment = -bias_segment
          dist = -dist
          normal = -normal
          if dist < -bias_segment:
              return np.Infinity, normal
  
      return dist, normal
code_tokens: def segment_apply_bias ( segment : Segment , dist : float , normal : np . ndarray ) -> Tuple [ float , np . ndarray ] : bias_segment = segment . bias if bias_segment == 0 : if dist < 0 : dist = - dist normal = - normal elif bias_segment < 0 : bias_segment = - bias_segment dist = - dist normal = - normal if dist < - bias_segment : return np . Infinity , normal return dist , normal
short_docstring: Applies the bias property during the collision between a segment and a disc
short_docstring_tokens: Applies the bias property during the collision between a segment and a disc
comment: """
      Applies the bias property during the collision between a segment and a disc
      """