Resets the state of the scope.
Useful for automation testing when we want to reset the scope used to install test modules.
437646
@Override
  protected void reset() {
    super.reset();
    mapClassesToNamedBoundProviders.clear();
    mapClassesToUnNamedBoundProviders.clear();
    hasTestModules = false;
    installBindingForScope();
  }
877757
def clear_to_reset(self, config_vars):
        """"""

        super(RemoteBridgeState, self).clear_to_reset(config_vars)
        self.status = BRIDGE_STATUS.IDLE
        self.error = 0
629185
public function reset()
    {
        $this->choiceCounter = 0;
        $this->setExploration(new SplStack());
        $this->setExplorationMarker(array());
        $this->setLastRendering(null);
        $this->setRenderingStack(new SplStack());
        $this->setXmlBaseStack(new SplStack());
        $this->setDocument(new DOMDocument('1.0', 'UTF-8'));
        $this->setStylesheets($this->getDocument()->createDocumentFragment());
        $this->setCurrentInteraction(null);
    }
637859
private function reset_state()
        {
            $this->state['helo'] = false;
            $this->state['mail'] = false;
            $this->state['rcpt'] = false;
        }
809155
public static function reset()
    {
        if (empty(static::$_initialState)) {
            static::$_initialState = get_class_vars(__CLASS__);

            return;
        }
        foreach (static::$_initialState as $key => $val) {
            if ($key !== '_initialState') {
                static::${$key} = $val;
            }
        }
    }
524545
private void resetState() {

        // clear all members so the tag object may be reused
        m_type = null;
        m_name = null;
        m_param = null;
        m_maxElements = null;
        m_tag = null;
        m_tagClass = null;
        m_detailView = false;
        m_detailOnly = false;
        m_width = null;
        m_editableBy = null;
        m_bodyContent = null;
        m_hasModelGroupAncestor = false;
        // reset the current element
        CmsJspStandardContextBean cmsContext = CmsJspStandardContextBean.getInstance(pageContext.getRequest());
        cmsContext.setElement(m_parentElement);
        cmsContext.setContainer(m_parentContainer);
        m_parentElement = null;
        m_parentContainer = null;
    }
520909
function setScope (scope) {
    // throw error if attempting operation on complete audit record
    assert.ok(!this.complete, 'cannot setScope on complete audit record')
    // set scope value
    this.scope = scope
    // allow request is complete
    this.complete = true
    // debug
    debug(this)
    // return set value
    return this.scope
}
176946
def reset_synced(scope: scope_from_relation)
      options = {
        scope:                 scope,
        strategy:              synced_strategy,
        only_updated:          synced_only_updated,
        initial_sync_since:    synced_initial_sync_since,
        timestamp_strategy:    synced_timestamp_strategy,
        synced_endpoint:       synced_endpoint
      }
      Synced::Synchronizer.new(self, options).reset_synced
    end
792282
def reset(self):
        
        state = self.sample()
        if state is None:
            # None indicates that a normal env reset should occur
            return self.env.reset()
        else:
            if self.need_xml:
                # reset the simulation from the model if necessary
                state, xml = state
                self.env.reset_from_xml_string(xml)

            if isinstance(state, tuple):
                state = state[0]

            # force simulator state to one from the demo
            self.sim.set_state_from_flattened(state)
            self.sim.forward()

            return self.env._get_observation()
1307774
private final void reset() {
	backtrackStack.clear();
	actionStack.clear();
	stateStack.clear();
	parserErrors.clear();
	streamPosition = 0;
	stepCounter = 0;
	stateStack.push(0);
	maxPosition = 0;
	shiftIgnoredTokens();
    }
1365811
private void clearState() {

        if (m_state != null) {
            ParamState state = m_state;
            m_state = null;
            state.undoChanges();
        }
    }
1239337
public function reset()
    {
        $this->values[self::SESSIONVERSION] = null;
        $this->values[self::LOCALIDENTITYPUBLIC] = null;
        $this->values[self::REMOTEIDENTITYPUBLIC] = null;
        $this->values[self::ROOTKEY] = null;
        $this->values[self::PREVIOUSCOUNTER] = null;
        $this->values[self::SENDERCHAIN] = null;
        $this->values[self::RECEIVERCHAINS] = [];
        $this->values[self::PENDINGKEYEXCHANGE] = null;
        $this->values[self::PENDINGPREKEY] = null;
        $this->values[self::REMOTEREGISTRATIONID] = null;
        $this->values[self::LOCALREGISTRATIONID] = null;
        $this->values[self::NEEDSREFRESH] = null;
        $this->values[self::ALICEBASEKEY] = null;
    }
3603
def reset(self,):
    

    self.activeState['t-1'].fill(0)
    self.activeState['t'].fill(0)
    self.predictedState['t-1'].fill(0)
    self.predictedState['t'].fill(0)
    self.learnState['t-1'].fill(0)
    self.learnState['t'].fill(0)
    self.confidence['t-1'].fill(0)
    self.confidence['t'].fill(0)

    # Flush the segment update queue
    self.segmentUpdates = {}

    self._internalStats['nInfersSinceReset'] = 0

    #To be removed
    self._internalStats['curPredictionScore'] = 0
    #New prediction score
    self._internalStats['curPredictionScore2']   = 0
    self._internalStats['curFalseNegativeScore'] = 0
    self._internalStats['curFalsePositiveScore'] = 0

    self._internalStats['curMissing'] = 0
    self._internalStats['curExtra'] = 0


    # When a reset occurs, set prevSequenceSignature to the signature of the
    # just-completed sequence and start accumulating histogram for the next
    # sequence.
    self._internalStats['prevSequenceSignature'] = None
    if self.collectSequenceStats:
      if self._internalStats['confHistogram'].sum() > 0:
        sig = self._internalStats['confHistogram'].copy()
        sig.reshape(self.numberOfCols * self.cellsPerColumn)
        self._internalStats['prevSequenceSignature'] = sig
      self._internalStats['confHistogram'].fill(0)

    self.resetCalled = True
1121511
def reset(self):
        # pylint: disable=not-context-manager
        
        logger.info("Scheduling loop reset")
        with self.waiting_results.mutex:
            self.waiting_results.queue.clear()
        self.checks.clear()
        self.actions.clear()
736056
def reset(self, mode=InputMode.INSERT):
        
        # Go back to insert mode.
        self.input_mode = mode

        self.waiting_for_digraph = False
        self.operator_func = None
        self.operator_arg = None
1002110
public void reset() {
        methodMap.clear();
        postBindMap.clear();
        postUnBindMap.clear();
        cellInitedMap.clear();
        cellFlareIdMap.clear();
        mvResolver.reset();
    }
850973
def reset(self):
		
		self.gametree = self.game
		self.nodenum = 0
		self.index = 0
		self.stack = []
		self.node = self.gametree[self.index]
		self._setChildren()
		self._setFlags()