hunk.code_window:     def map_(a, s):
           if (
               isinstance(s, gym.spaces.Box)
               and (s.dtype == np.float32 or s.dtype == np.float64)
               and np.all(s.bounded_below)
               and np.all(s.bounded_above)
           ):
  
hunk.labels: keep keep keep replace keep keep keep
hunk.file_path: rllib/utils/spaces/space_utils.py
hunk.type: replace
file: // Copyright 2019-2020 The Ray Authors.
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //  http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  
  #include "ray/common/task/task.h"
  
  #include <sstream>
  
  namespace ray {
  
  RayTask::RayTask(const rpc::Task &message) : task_spec_(message.task_spec()) {
    ComputeDependencies();
  }
  
  RayTask::RayTask(TaskSpecification task_spec) : task_spec_(std::move(task_spec)) {
    ComputeDependencies();
  }
  
  const TaskSpecification &RayTask::GetTaskSpecification() const { return task_spec_; }
  
  const std::vector<rpc::ObjectReference> &RayTask::GetDependencies() const {
    return dependencies_;
  }
  
  void RayTask::ComputeDependencies() { dependencies_ = task_spec_.GetDependencies(); }
  
  std::string RayTask::DebugString() const {
    std::ostringstream stream;
    stream << "task_spec={" << task_spec_.DebugString() << "}";
    return stream.str();
  }
  
  }  // namespace ray
  