Adding current values as a Raw Result and Resetting everything.
333978
def _submit_results(self):
        
        if self._cur_res_id and self._cur_values:
            # Setting DefaultResult just because it is obligatory.
            self._addRawResult(self._cur_res_id, self._cur_values)
            self._reset()
181713
def _update_result(self, result, insertions, dimension_index):
        """"""
        for j, (ind_insertion, value) in enumerate(insertions):
            result = np.insert(
                result, ind_insertion + j + 1, value, axis=dimension_index
            )
        return result
297412
public void reset()
    {
        xMin = Double.NaN;
        xMax = Double.NaN;
        yMin = Double.NaN;
        yMax = Double.NaN;
    }
1148744
def new_value(self, key, value):
        """"""
        data = self.model.get_data()
        data[key] = value
        self.set_data(data)
771472
def _reset_state(self):
        
        self._builders = {}
        self._total_data_size = 0
        self._progress_offset = 0
        self._current_progress_fraction = 0
46188
public void reset()
    {
        _dstack.reset();
        _current1.reset();
        _last1.reset();
        _eof = false;
        _s = 0;
        _p = null;
    }
635851
function() {
      this.bounds.reset();
      for (var i = 0; i < this.slices.length; i++) {
        this.bounds.addValue(this.slices[i].start);
        this.bounds.addValue(this.slices[i].end);
      }
    }
813590
def reset(self):
        '''
        
        '''
        self._current_index = -1
        self._current_value = self._default_value
        self._current_rendered = self._default_rendered
        self.offset = None
500074
synchronized void reset(double value, int updated) {
        ewma = value;
        ewmaStddev = value * SINGLE_VALUE_STDDEV;
        ewmaVariance = ewmaStddev * ewmaStddev;
        consecutiveOutliers = 0;
        lastUpdate = updated;
    }
991305
private void recomputeLoadSums() {
        loadsHaveChanged.set(false);
        for (int d = 0; d < nbDims; d++) {
            int sli = 0;
            int sls = 0;
            for (int b = 0; b < nbBins; b++) {
                sli += loads[d][b].getLB();
                sls += loads[d][b].getUB();
            }
            this.sumLoadInf[d].set(sli);
            this.sumLoadSup[d].set(sls);
        }
    }
1094694
private function _resetValues() {
		$this->lineNumber = 1;

		// Reset the current attributes
		$this->_csLeftParenthesis = 0;
		$this->_fcLeftParenthesis = 0;
		$this->inDoWhile = false;

		$this->statementStack = new StatementStack();

		$this->_inString = false;
		$this->_inControlStatement = false;
		$this->_inFunctionStatement = false;
		$this->_beforeArrayDeclaration = false;
		$this->_inFunction = false;
		$this->_privateFunctions = array();
		$this->_usedFunctions = array();
		$this->_variables = array();
		$this->_privateFunctionsStartLines = array();
		$this->_inFuncCall = false;
		$this->_nbFunctionParameters = 0;
		$this->_justAfterFuncStmt = false;
		$this->_justAfterControlStmt = false;
		$this->_functionStartLine = 0;
		$this->_functionReturns = false;
		$this->_functionThrows = false;
		$this->_functionVisibility = 'PUBLIC';
		$this->_functionStatic = false;
		$this->_currentStatement = false;
		$this->_inClassStatement = false;
		$this->_inInterfaceStatement = false;

		$this->__constantDef = false;

		$this->_ncssFileClasses = 0;
		$this->_ncssFileInterfaces = 0;
		$this->_ncssFileFunctions = 0;
		$this->_ncssFileLinesOfCode = 0;
		$this->_ncssFilePhpdoc = 0;
		$this->_ncssFileLinesPhpdoc = 0;
		$this->_ncssFileSingleComment = 0;
		$this->_ncssFileMultiComment = 0;

		$this->_currentFunctionName = null;
		$this->_currentClassname = null;
		$this->_currentInterfacename = null;
		$this->_currentFilename = null;
		$this->_packageName = null;

		$this->_isView = false;
		$this->_isModel = false;
		$this->_isController = false;
		$this->_isClass = false;

		$this->_isLineStart = true;
	}
101126
def reset(self):
        """"""
        self.bar.current = 0
        self.start_time = time.time()
        self.add_progress(0)
1343465
def set_current(self, value):
        '''
        
        '''
        self.current = value
        self.cursor = 0
        self.limit = len(self.current)
        self.limit_backward = 0
        self.bra = self.cursor
        self.ket = self.limit
39252
def result(self, value):
        """"""
        if self._process_result:
            self._result = self._process_result(value)

        self._raw_result = value
66965
protected function reset()
    {
        $this->valid = true;
        $this->fetchmore = true;
        $this->elements = array();
        $this->position = -1;
        $this->current = null;
    }
336864
def update_total(self, n=1):
    """"""
    with self._lock:
      self._pbar.total += n
      self.refresh()
572832
public void reset()
    {
        m_currentValue = null;
        useCurrentValue(false);
        setDerived(false);
        m_notKnown = false;
        setUnknown(m_lastUnknown);
    }