original_string: public function has_manual_award_criteria() {
          foreach ($this->criteria as $criterion) {
              if ($criterion->criteriatype == BADGE_CRITERIA_TYPE_MANUAL) {
                  return true;
              }
          }
          return false;
      }
code: public function has_manual_award_criteria() {
          foreach ($this->criteria as $criterion) {
              if ($criterion->criteriatype == BADGE_CRITERIA_TYPE_MANUAL) {
                  return true;
              }
          }
          return false;
      }
code_tokens: public function has_manual_award_criteria ( ) { foreach ( $ this -> criteria as $ criterion ) { if ( $ criterion -> criteriatype == BADGE_CRITERIA_TYPE_MANUAL ) { return true ; } } return false ; }
docstring: Checks if badge has manual award criteria set.
  
  @return bool A status indicating badge can be awarded manually
docstring_tokens: Checks if badge has manual award criteria set .