Set the state to INACTIVE and clear state variables
558882
private void reset() {
        setState(OADState.INACTIVE);
        currentImage = null;
        firmwareBundle = null;
        nextBlock = 0;
        oadListener = null;
        watchdog.stop();
        oadApproval.reset();
    }
103941
def clear(owner=nil)
      if(owner.nil?)
        @actions.clear
        @new_actions.clear
      else
        @actions.each{|a| @actions.delete(a) if a.owner == owner}
      end
      wakeup if running?
    end
1028615
def clear_to_reset(self, config_vars):
        """"""

        super(TileManagerState, self).clear_to_reset(config_vars)
        self.registered_tiles = self.registered_tiles[:1]
        self.safe_mode = False
        self.debug_mode = False
30924
def reset_state(self):
        
        self.active_message = None
        self.measurement = None
        if self.is_waiting_to_shutdown:
            self.shutdown_connections()
        elif self.is_processing:
            self.set_state(self.STATE_IDLE)
        elif self.is_idle or self.is_connecting or self.is_shutting_down:
            pass
        else:
            LOGGER.critical('Unexepected state: %s', self.state_description)
        LOGGER.debug('State reset to %s (%s in pending)',
                     self.state_description, len(self.pending))
637859
private function reset_state()
        {
            $this->state['helo'] = false;
            $this->state['mail'] = false;
            $this->state['rcpt'] = false;
        }
982461
def clear_all():
    

    frame = inspect.currentframe().f_back
    try:
        if frame.f_globals.get('variables_order'):
            # we should avoid to declare symbols twice !
            del frame.f_globals['variables_order']
        if frame.f_globals.get('parameters_order'):
            # we should avoid to declare symbols twice !
            del frame.f_globals['parameters_order']
    finally:
        del frame
670920
def go_inactive(self, dt=datetime.utcnow().replace(tzinfo=pytz.UTC)):
		
		self.end = dt
		self.save()
787988
public void clear() {
        getElement().clear();
        if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) {
            logUIAction(UIActions.CLEARED);
        }
    }
1211135
void setOutputVarInited() {
    outputVars.pop();
    outputVars.push(OutputVar.create(currOutputVarName, true));
    currOutputVarIsInited = true;
  }
626674
public static function reset()
    {
        if (empty(self::$initialState)) {
            self::$initialState = get_class_vars(Inflector::class);
            return;
        }
        foreach (self::$initialState as $key => $val) {
            if ($key != 'initialState') {
                self::${$key} = $val;
            }
        }
        self::$cache = [];
    }
940984
public static function clearStatus()
    {
        self::_initialize();

        $newState = new ReleaseCurrentState(self::$_clientId);

        self::$_lastState = $newState;

        self::$_runtimeClient->setCurrentState($newState);
    }
510728
function () {
                this._removeOldStates();
                ariaUtilsEvent.removeListener(window, "unload", this._saveStateCB);
                this._storage.setItem(this._STORAGE_KEY, stateMemory);
                this._storage.$dispose();
                this._storage = null;
            }
54342
void internalDeactivate ()
    {
      final String methodName = "internalDeactivate";
      if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
          SibTr.entry(this, TRACE, methodName);
      }

      synchronized (_sessionsByMeUuid) {
        _sessionsByMeUuid.clear();
      }

      super.deactivate();

      if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
        SibTr.exit(this, TRACE, methodName);
      }

    }
1204932
function cleanup()
    {
        // destroy loop variable(s)
        foreach ( $this->LoopVariablesNames as $varName )
            $this->Tpl->unsetVariable( $varName, $this->RootNamespace );
    }
795973
private void clearAllState(
			W window,
			AppendingState<IN, ACC> windowState,
			MergingWindowSet<W> mergingWindows) throws Exception {
		windowState.clear();
		triggerContext.clear();
		processContext.window = window;
		processContext.clear();
		if (mergingWindows != null) {
			mergingWindows.retireWindow(window);
			mergingWindows.persist();
		}
	}
585608
private function resetState()
    {
        $this->state['helo'] = false;
        $this->state['mail'] = false;
        $this->state['rcpt'] = false;
    }
343063
void changeState(State state) {

        m_state = state;
        switch (state) {
            case validationRunning:
                m_cancelButton.setEnabled(false);
                m_okButton.setEnabled(false);
                clearValidationError();
                break;
            case validationFailed:
                m_okButton.setEnabled(false);
                m_cancelButton.setEnabled(true);
                break;
            case validationUnknown:
            default:
                m_cancelButton.setEnabled(true);
                m_okButton.setEnabled(true);
                clearValidationError();
                break;

        }
    }