hunk.code_window: @cli.command()
   @click.argument("experiment_path", required=True, type=str)
   @click.option(
       '--sort', default=None, type=str, help='Select which column to sort on.')
   def list_trials(experiment_path, sort):
       """Lists trials in the directory subtree starting at the given path."""
  
hunk.labels: keep keep keep keep replace replace keep
hunk.after_edit:     "--sort", default=None, type=str, help="Select which column to sort on.")
   @click.option(
       "--output",
       "-o",
       default=None,
       type=str,
       help="Output information to a pickle file.")
   def list_trials(experiment_path, sort, output):
  
hunk.file_path: python/ray/tune/scripts.py
hunk.type: replace
file: package org.ray.runtime;
  
  import com.google.common.base.Preconditions;
  import org.ray.api.RuntimeContext;
  import org.ray.api.id.UniqueId;
  import org.ray.runtime.config.RunMode;
  import org.ray.runtime.task.TaskSpec;
  
  public class RuntimeContextImpl implements RuntimeContext {
  
    private AbstractRayRuntime runtime;
  
    public RuntimeContextImpl(AbstractRayRuntime runtime) {
      this.runtime = runtime;
    }
  
    @Override
    public UniqueId getCurrentDriverId() {
      return runtime.getWorkerContext().getCurrentDriverId();
    }
  
    @Override
    public UniqueId getCurrentActorId() {
      Worker worker = runtime.getWorker();
      Preconditions.checkState(worker != null && !worker.getCurrentActorId().isNil(),
          "This method should only be called from an actor.");
      return worker.getCurrentActorId();
    }
  
    @Override
    public boolean wasCurrentActorReconstructed() {
      TaskSpec currentTask = runtime.getWorkerContext().getCurrentTask();
      Preconditions.checkState(currentTask != null && currentTask.isActorCreationTask(),
          "This method can only be called from an actor creation task.");
      if (isSingleProcess()) {
        return false;
      }
  
      return ((RayNativeRuntime) runtime).actorExistsInGcs(getCurrentActorId());
    }
  
    @Override
    public String getRayletSocketName() {
      return runtime.getRayConfig().rayletSocketName;
    }
  
    @Override
    public String getObjectStoreSocketName() {
      return runtime.getRayConfig().objectStoreSocketName;
    }
  
    @Override
    public boolean isSingleProcess() {
      return RunMode.SINGLE_PROCESS == runtime.getRayConfig().runMode;
    }
  
  }
  