on release we reset the press data
969552
def on_release(self, event):
        ''
        if self.press is None:
            return
        # print(self.press)
        x0, y0, btn = self.press
        if btn == 1:
            color = 'r'
        elif btn == 2:
            color = 'b'  # noqa

        # plt.axes(self.ax)
        # plt.plot(x0, y0)
        # button Mapping
        btn = self.button_map[btn]

        self.set_seeds(y0, x0, self.actual_slice, btn)
        # self.fig.canvas.draw()
        # pdb.set_trace();
        self.press = None
        self.update_slice()
1335042
public void reset() {
        targetFile = null;
        title = null;
        defaultTitle = null;
        inTitleElement = false;
        termStack.clear();
        topicIdStack.clear();
        indexTermSpecList.clear();
        indexSeeSpecList.clear();
        indexSeeAlsoSpecList.clear();
        indexSortAsSpecList.clear();
        topicSpecList.clear();
        indexTermList.clear();
        processRoleStack.clear();
        processRoleLevel = 0;
        titleMap.clear();
    }
764953
public void clearAndReport() {
    synchronized (metrics) {
      for (Codec codec : Codec.getCodecs()) {
        String id = codec.id;
        int extra = 0;
        Map<Integer, MetricsLongValue> codecStatsMap =
          metrics.codecToMisplacedBlocks.get(id);
        // Reset the values.
        for (Entry<Integer, MetricsLongValue> e: codecStatsMap.entrySet()) {
          e.getValue().set(0);
        }
        for (Entry<Integer, Long> e : blockHistograms.get(id).entrySet()) {
          if (e.getKey() < RaidNodeMetrics.MAX_MONITORED_MISPLACED_BLOCKS - 1) {
            MetricsLongValue v = codecStatsMap.get(e.getKey());
            v.set(e.getValue());
          } else {
            extra += e.getValue();
          }
        }
        MetricsLongValue v = codecStatsMap.get(
            RaidNodeMetrics.MAX_MONITORED_MISPLACED_BLOCKS - 1);
        v.set(extra);
      }
    }
    lastBlockHistograms = blockHistograms;
    lastBlockHistogramsPerRack = blockHistogramsPerRack;
    lastUpdateFinishTime = RaidNode.now();
    lastUpdateUsedTime = lastUpdateFinishTime - lastUpdateStartTime;
    LOG.info("Reporting metrices:\n" + toString());
    createEmptyHistograms();
  }
707115
private function reset() : void
    {
        $this->id = null;
        $this->data = [];
        $this->inRequest = false;
    }
785226
public void reset() {
		tick = 0;
		first = true;
		tracker.reset();
		keyToWorld.reset();
		currToKey.reset();
		currToWorld.reset();
		worldToCurrCam3D.reset();
	}
547589
private function cleanupDeadProcesses()
    {
        $processes = ezpContentPublishingProcess::fetchProcesses( ezpContentPublishingProcess::STATUS_WORKING );
        foreach( $processes as $process )
        {
            if ( !$process->isAlive() )
            {
                $process->reset();
            }
        }
    }
750847
def clear_published(self):
        
        metadata = Metadata(**settings.METADATA['published'])
        if metadata.is_read_only() or metadata.is_required():
            raise NoAccess()
        self._my_map['published'] = False
718126
function reset() {
		self.media.hide().empty();
		self.win.attr('class', 'el-finder-ql').css('z-index', self.fm.zIndex);
		self.title.empty();
		self.ico.removeAttr('style').show();
		self.add.hide().empty();
		self._hash = '';
	}
1036629
private function setNews()
    {
        $Params = $this->getURLParams();
        /** @var array $segmentFilter Array containing the filter for current or any item */
        $segmentFilter = $this->setupFilter($Params);
        $news = $this->Newsitems()
            ->filter($segmentFilter)
            ->exclude(array('PublishFrom:GreaterThan' => SS_Datetime::now()->format('Y-m-d')))
            ->first();
        $this->current_item = $news;
    }
527245
private function reset() : void
    {
        $this->content = [];

        $this->scheme = null;
        $this->brand_label = null;
        $this->brand_uri = null;
    }
326489
public function resetReportStatuses(){
        foreach($this->options as $op=>$junk){
            if(preg_match("#ReportProcessingStatusList#",$op)){
                unset($this->options[$op]);
            }
        }
    }
22210
public function onAfterUnpublish()
    {
        foreach ($this->owner->Fields() as $field) {
            $field->deleteFromStage(Versioned::LIVE);
        }
    }
1258700
protected void localRelease() {
        super.localRelease();
        if(bodyContent != null)
            bodyContent.clearBody();
        _padText = null;
        _maxRepeat = null;
        _minRepeat = null;
    }
1253430
function resetstat(req, res) {
  this.stats.reset();
  res.send(null, Constants.OK);
}
807501
public void reset() {
    Arrays.fill(mean, 0.);
    Arrays.fill(nmea, 0.);
    if(elements != null) {
      for(int i = 0; i < elements.length; i++) {
        Arrays.fill(elements[i], 0.);
      }
    }
    else {
      elements = new double[mean.length][mean.length];
    }
    wsum = 0.;
  }
574160
function onAfterUnpublish() {
		if (!self::$indexing) return;

		$this->searchService->unindex($this->owner);
		$this->reindex('Stage');
	}
512635
protected void reset() {
        part = Part.ANY;
        vendor = LogicalValue.ANY.getAbbreviation();
        product = LogicalValue.ANY.getAbbreviation();
        version = LogicalValue.ANY.getAbbreviation();
        update = LogicalValue.ANY.getAbbreviation();
        edition = LogicalValue.ANY.getAbbreviation();
        language = LogicalValue.ANY.getAbbreviation();
        swEdition = LogicalValue.ANY.getAbbreviation();
        targetSw = LogicalValue.ANY.getAbbreviation();
        targetHw = LogicalValue.ANY.getAbbreviation();
        other = LogicalValue.ANY.getAbbreviation();
    }