hunk.code_window:         checkpoints_df = checkpoints_df.sort_values(by=sort)
       print_format_output(checkpoints_df)
   def list_experiments(project_path,
                        sort=None,
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:     if output:
           experiment_path = os.path.expanduser(experiment_path)
           output_path = os.path.join(experiment_path, output)
           file_extension = os.path.splitext(output)[1].lower()
           if file_extension in (".p", ".pkl", ".pickle"):
               checkpoints_df.to_pickle(output_path)
           elif file_extension == ".csv":
               checkpoints_df.to_csv(output_path, index=False)
           else:
               raise ValueError("Unsupported filetype: {}".format(output))
           print("Output saved at:", output_path)
  
hunk.file_path: python/ray/tune/commands.py
hunk.type: add
file: package org.ray.runtime.task;
  
  import org.ray.api.id.UniqueId;
  
  /**
   * Represents a function argument in task spec.
   * Either `id` or `data` should be null, when id is not null, this argument will be
   * passed by reference, otherwise it will be passed by value.
   */
  public class FunctionArg {
  
    /**
     * The id of this argument (passed by reference).
     */
    public final UniqueId id;
    /**
     * Serialized data of this argument (passed by value).
     */
    public final byte[] data;
  
    private FunctionArg(UniqueId id, byte[] data) {
      this.id = id;
      this.data = data;
    }
  
    /**
     * Create a FunctionArg that will be passed by reference.
     */
    public static FunctionArg passByReference(UniqueId id) {
      return new FunctionArg(id, null);
    }
  
    /**
     * Create a FunctionArg that will be passed by value.
     */
    public static FunctionArg passByValue(byte[] data) {
      return new FunctionArg(null, data);
    }
  
    @Override
    public String toString() {
      if (id != null) {
        return "<id>: " + id.toString();
      } else {
        return "<data>: " + data.length;
      }
    }
  }
  