original_string: public function set_excluded($state) {
          if (empty($this->excluded) and $state) {
              $this->excluded = time();
              $this->update();
              return true;
  
          } else if (!empty($this->excluded) and !$state) {
              $this->excluded = 0;
              $this->update();
              return true;
          }
          return false;
      }
code: public function set_excluded($state) {
          if (empty($this->excluded) and $state) {
              $this->excluded = time();
              $this->update();
              return true;
  
          } else if (!empty($this->excluded) and !$state) {
              $this->excluded = 0;
              $this->update();
              return true;
          }
          return false;
      }
code_tokens: public function set_excluded ( $ state ) { if ( empty ( $ this -> excluded ) and $ state ) { $ this -> excluded = time ( ) ; $ this -> update ( ) ; return true ; } else if ( ! empty ( $ this -> excluded ) and ! $ state ) { $ this -> excluded = 0 ; $ this -> update ( ) ; return true ; } return false ; }
docstring: Set the excluded status of grade
  
  @param bool $state requested excluded state
  @return bool True is database state changed
docstring_tokens: Set the excluded status of grade