original_string: public function regeneratePassword()
      {
          $clean_password = generatePassword(6, 4);
          $password = md5($clean_password);
          $this->db()->executeUpdate(
              "UPDATE {$this->table} SET password = ? WHERE ID = ?",
              array($password, $this->getId())
          );
  
          return $clean_password;
      }
code: public function regeneratePassword()
      {
          $clean_password = generatePassword(6, 4);
          $password = md5($clean_password);
          $this->db()->executeUpdate(
              "UPDATE {$this->table} SET password = ? WHERE ID = ?",
              array($password, $this->getId())
          );
  
          return $clean_password;
      }
code_tokens: public function regeneratePassword ( ) { $ clean_password = generatePassword ( 6 , 4 ) ; $ password = md5 ( $ clean_password ) ; $ this -> db ( ) -> executeUpdate ( "UPDATE {$this->table} SET password = ? WHERE ID = ?" , array ( $ password , $ this -> getId ( ) ) ) ; return $ clean_password ; }
docstring: Regenerates and sets the new password for a User.
  
  @return String password : The new Password.
docstring_tokens: Regenerates and sets the new password for a User .