original_string: public function is_disabled() {
          $lockedgrade = $lockedgradeitem = 0;
          if (!empty($this->grade->locked)) {
              $lockedgrade = 1;
          }
          if (!empty($this->grade->grade_item->locked)) {
              $lockedgradeitem = 1;
          }
          return ($lockedgrade || $lockedgradeitem);
      }
code: public function is_disabled() {
          $lockedgrade = $lockedgradeitem = 0;
          if (!empty($this->grade->locked)) {
              $lockedgrade = 1;
          }
          if (!empty($this->grade->grade_item->locked)) {
              $lockedgradeitem = 1;
          }
          return ($lockedgrade || $lockedgradeitem);
      }
code_tokens: public function is_disabled ( ) { $ lockedgrade = $ lockedgradeitem = 0 ; if ( ! empty ( $ this -> grade -> locked ) ) { $ lockedgrade = 1 ; } if ( ! empty ( $ this -> grade -> grade_item -> locked ) ) { $ lockedgradeitem = 1 ; } return ( $ lockedgrade || $ lockedgradeitem ) ; }
docstring: Is this input disabled
  
  @return bool
docstring_tokens: Is this input disabled