original_string: public function get_calculation_outcome($value, $ignoredsubtype = false) {
  
          if (!self::is_a_class($value)) {
              throw new \moodle_exception('errorpredictionformat', 'analytics');
          }
  
          if (in_array($value, $this->ignored_predicted_classes(), false)) {
              // Just in case, if it is ignored the prediction should not even be recorded but if it would, it is ignored now,
              // which should mean that is it nothing serious.
              return self::OUTCOME_VERY_POSITIVE;
          }
  
          // By default binaries are danger when prediction = 1.
          if ($value) {
              return self::OUTCOME_VERY_NEGATIVE;
          }
          return self::OUTCOME_VERY_POSITIVE;
      }
code: public function get_calculation_outcome($value, $ignoredsubtype = false) {
  
          if (!self::is_a_class($value)) {
              throw new \moodle_exception('errorpredictionformat', 'analytics');
          }
  
          if (in_array($value, $this->ignored_predicted_classes(), false)) {
              // Just in case, if it is ignored the prediction should not even be recorded but if it would, it is ignored now,
              // which should mean that is it nothing serious.
              return self::OUTCOME_VERY_POSITIVE;
          }
  
          // By default binaries are danger when prediction = 1.
          if ($value) {
              return self::OUTCOME_VERY_NEGATIVE;
          }
          return self::OUTCOME_VERY_POSITIVE;
      }
code_tokens: public function get_calculation_outcome ( $ value , $ ignoredsubtype = false ) { if ( ! self :: is_a_class ( $ value ) ) { throw new \ moodle_exception ( 'errorpredictionformat' , 'analytics' ) ; } if ( in_array ( $ value , $ this -> ignored_predicted_classes ( ) , false ) ) { // Just in case, if it is ignored the prediction should not even be recorded but if it would, it is ignored now, // which should mean that is it nothing serious. return self :: OUTCOME_VERY_POSITIVE ; } // By default binaries are danger when prediction = 1. if ( $ value ) { return self :: OUTCOME_VERY_NEGATIVE ; } return self :: OUTCOME_VERY_POSITIVE ; }
docstring: Is the calculated value a positive outcome of this target?
  
  @param string $value
  @param string $ignoredsubtype
  @return int
docstring_tokens: Is the calculated value a positive outcome of this target?