original_string: public function get_most_recent_prediction_range() {
  
          $ranges = $this->get_all_ranges();
  
          // Opposite order as we are interested in the last range that can be used for prediction.
          krsort($ranges);
  
          // We already provided the analysable to the time splitting method, there is no need to feed it back.
          foreach ($ranges as $rangeindex => $range) {
              if ($this->ready_to_predict($range)) {
                  // We need to maintain the same indexes.
                  return array($rangeindex => $range);
              }
          }
  
          return array();
      }
code: public function get_most_recent_prediction_range() {
  
          $ranges = $this->get_all_ranges();
  
          // Opposite order as we are interested in the last range that can be used for prediction.
          krsort($ranges);
  
          // We already provided the analysable to the time splitting method, there is no need to feed it back.
          foreach ($ranges as $rangeindex => $range) {
              if ($this->ready_to_predict($range)) {
                  // We need to maintain the same indexes.
                  return array($rangeindex => $range);
              }
          }
  
          return array();
      }
code_tokens: public function get_most_recent_prediction_range ( ) { $ ranges = $ this -> get_all_ranges ( ) ; // Opposite order as we are interested in the last range that can be used for prediction. krsort ( $ ranges ) ; // We already provided the analysable to the time splitting method, there is no need to feed it back. foreach ( $ ranges as $ rangeindex => $ range ) { if ( $ this -> ready_to_predict ( $ range ) ) { // We need to maintain the same indexes. return array ( $ rangeindex => $ range ) ; } } return array ( ) ; }
docstring: Returns the most recent range that can be used to predict.
  
  This method is only called when calculating predictions.
  
  @return array
docstring_tokens: Returns the most recent range that can be used to predict .