original_string: public function predictions_exist(\context $context) {
          global $DB;
  
          // Filters out previous predictions keeping only the last time range one.
          $select = "modelid = :modelid AND contextid = :contextid";
          $params = array('modelid' => $this->model->id, 'contextid' => $context->id);
          return $DB->record_exists_select('analytics_predictions', $select, $params);
      }
code: public function predictions_exist(\context $context) {
          global $DB;
  
          // Filters out previous predictions keeping only the last time range one.
          $select = "modelid = :modelid AND contextid = :contextid";
          $params = array('modelid' => $this->model->id, 'contextid' => $context->id);
          return $DB->record_exists_select('analytics_predictions', $select, $params);
      }
code_tokens: public function predictions_exist ( \ context $ context ) { global $ DB ; // Filters out previous predictions keeping only the last time range one. $ select = "modelid = :modelid AND contextid = :contextid" ; $ params = array ( 'modelid' => $ this -> model -> id , 'contextid' => $ context -> id ) ; return $ DB -> record_exists_select ( 'analytics_predictions' , $ select , $ params ) ; }
docstring: Whether predictions exist for this context.
  
  @param \context $context
  @return bool
docstring_tokens: Whether predictions exist for this context .