hunk.code_window:                     "Legacy aggressive autoscaling mode "
                       "detected. Replacing it by setting upscaling_speed to "
                       "99999.")
               elif target_utilization_fraction:
                   upscaling_speed = 1 / max(target_utilization_fraction, 0.001)
                   logger.warning(
                       "Legacy target_utilization_fraction config "
                       "detected. Replacing it by setting upscaling_speed to " +
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:                 upscaling_speed = (
                       1 / max(target_utilization_fraction, 0.001) - 1)
  
hunk.file_path: python/ray/autoscaler/_private/autoscaler.py
hunk.type: replace
file: package io.ray.runtime.actor;
  
  import com.google.common.base.Preconditions;
  import io.ray.api.PyActorHandle;
  import io.ray.runtime.generated.Common.Language;
  import java.io.IOException;
  import java.io.ObjectInput;
  
  /**
   * Python actor handle implementation for cluster mode.
   */
  public class NativePyActorHandle extends NativeActorHandle implements PyActorHandle {
  
    NativePyActorHandle(byte[] actorId) {
      super(actorId, Language.PYTHON);
    }
  
    /**
     * Required by FST
     */
    public NativePyActorHandle() {
      super();
    }
  
    @Override
    public String getModuleName() {
      return nativeGetActorCreationTaskFunctionDescriptor(actorId).get(0);
    }
  
    @Override
    public String getClassName() {
      return nativeGetActorCreationTaskFunctionDescriptor(actorId).get(1);
    }
  
    @Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
      super.readExternal(in);
      Preconditions.checkState(getLanguage() == Language.PYTHON);
    }
  }
  