Clears the error status.
333150
@RequirePOST
    public synchronized void doClearError(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
        getACL().checkPermission(getPermission());

        if(workerThread!=null && !workerThread.isRunning())
            workerThread = null;
        rsp.sendRedirect(".");
    }
610488
def _clear_output(self):
        
        # If progress output was being written, clear it from the screen.
        if self.progress_output:
            sys.stderr.write("\r".ljust(self.last_line_len))
            sys.stderr.write("\r")
            sys.stderr.flush()
278269
public void clear(){
		this.errors.clearErrorMessages();;

		this.warnings.clear();
		this.infos.clear();

		this.scDir = 0;
		this.scDirUnreadable = 0;
		this.scFiles = 0;
		this.scFilesUnreadable = 0;
	}
68734
private function cleanUp()
    {
        if ($this->quiet) {
            $errors = explode(PHP_EOL, ob_get_clean());
            $shown = [];

            foreach ($errors as $error) {
                if ($error && !in_array($error, $shown)) {
                    out($error, 'error');
                    $shown[] = $error;
                }
            }
        }

        if (file_exists($this->tmpPharPath)) {
            @unlink($this->tmpPharPath);
        }
        if (file_exists($this->tmpPubkeyPath)) {
            @unlink($this->tmpPharPath);
        }
    }
529703
public void clearExceptionData() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "clearExceptionData");
        getHdr2().setChoiceField(JsHdr2Access.EXCEPTION, JsHdr2Access.IS_EXCEPTION_EMPTY);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "clearExceptionData");
    }
74731
def clear(self) -> None:
        
        r = self.__api.delete('containers')
        if r.status_code != 204:
            self.__api.handle_erroneous_response(r)
1255907
def clear(self, results=True, errors=True):
        '''
        
        '''
        if results:
            self.results = []
        if errors:
            self.errors = []
1337527
protected function _clearStatProperties()
	{
		$this->_statErrors               = 0;
		$this->_statMigrationsTotal      = 0;
		$this->_statMigrationForCommit   = 0;
		$this->_statMigrationForRollback = 0;
		$this->_statMigrationRejected    = 0;
		$this->_statMigrationApplied     = 0;
	}
1371323
def clear_system_status
      unless BarkestCore::GlobalStatus.locked?
        # open, truncate, and close.
        File.open(BarkestCore::WorkPath.system_status_file,'w').close
      end
    end
1125469
public function clearExpired()
    {
        if (! $this->enabled) {
            return;
        }
        $error = false;

        set_error_handler(function () use (&$error) {
            $error = true;
        }, E_WARNING);
        foreach (glob($this->getPath() . '/*.dat') as $file) {
            if (filemtime($file) < time()) {
                unlink($file);
            }
        }
        restore_error_handler();

        return ! $error;
    }
1191526
private void clearPipelineError() {
        File dir = new File(buildDirectory, "pipeline");
        if (dir.isDirectory()) {
            try {
                FileUtils.cleanDirectory(dir);
            } catch (IOException e) {
                getLog().warn("Cannot clean the pipeline directory", e);
            }
        }
    }
1126685
private function reset(): void
    {
        $this->values = [];
        $this->bg_colors = [];
        $this->striped = false;
        $this->animate = false;
        $this->height = null;
    }
536075
function clear(): void {
        $queue = $this->queue;
        $this->queue = array();
        
        while($item = \array_shift($queue)) {
            unset($item);
        }
    }
980432
def clear(self):
        """"""
        for key in list(self.queue.keys()):
            if self.queue[key]['status'] in ['done', 'failed']:
                del self.queue[key]
        self.write()
492331
public function clearAll()
    {
        $this->clearErrors();
        $this->clearWarnings();
        $this->clearProgWarnings();
        $this->clearDebugMessages();
        $this->clearInfos();
        
        unset(self::$session_vars["focus_element"]);
        unset(self::$session_vars["error_element"]);
        unset(self::$session_vars["active_tab"]);
    }
679844
public static void clearBegunTxOnThread() {
        final Stack<BegunTx<?>> stack = threadLocal.get();
        if (stack != null) {
            stack.pop(); // remove latest
            if (stack.isEmpty()) {
                perfectlyClear();
            }
        }
    }
274047
def reset_error_status(self):
        
        try:
            return self.feature_error or self.scenario_error
        finally:
            self.feature_error = False
            self.scenario_error = False