original_string: protected function _calculateThreshold($k, $bias)
      {
          if ($k <= ($bias + static::TMIN)) {
              return static::TMIN;
          } elseif ($k >= ($bias + static::TMAX)) {
              return static::TMAX;
          }
          return $k - $bias;
      }
code: protected function _calculateThreshold($k, $bias)
      {
          if ($k <= ($bias + static::TMIN)) {
              return static::TMIN;
          } elseif ($k >= ($bias + static::TMAX)) {
              return static::TMAX;
          }
          return $k - $bias;
      }
code_tokens: protected function _calculateThreshold ( $ k , $ bias ) { if ( $ k <= ( $ bias + static :: TMIN ) ) { return static :: TMIN ; } elseif ( $ k >= ( $ bias + static :: TMAX ) ) { return static :: TMAX ; } return $ k - $ bias ; }
docstring: Calculate the bias threshold to fall between TMIN and TMAX.
  
  @param integer $k
  @param integer $bias
  
  @return integer
docstring_tokens: Calculate the bias threshold to fall between TMIN and TMAX .