Remove STX and ETX sentinels.
193166
function removeAnchors(text) {
        if(text.charAt(0) == '\x02')
            text = text.substr(1);
        if(text.charAt(text.length - 1) == '\x03')
            text = text.substr(0, text.length - 1);
        return text;
    }
713893
def teardown(self):
        """"""

        for proxy in self._proxies.values():
            proxy.restore_original_object()

        for patch in self._patches.values():
            patch.restore_original_object()
60800
public void remove(BitSet other)
    {
        int idx = Math.min(wlen, other.wlen);
        long [] thisArr = this.bits;
        long [] otherArr = other.bits;
        while (--idx >= 0)
        {
            thisArr[idx] &= ~otherArr[idx];
        }
    }
1117782
def _cleanup(self):
        '''
        
        '''
        self._ack_listener = None
        self._nack_listener = None
        self._broker_cancel_cb_map = None
        super(RabbitBasicClass, self)._cleanup()
657063
def cleanup(self):
        """"""
        for _id, shard in self._shards.items():
            if shard.get('isServer', False):
                Servers().remove(shard['_id'])
            if shard.get('isReplicaSet', False):
                ReplicaSets().remove(shard['_id'])

        for mongos in self._routers:
            Servers().remove(mongos)

        for config_id in self._configsvrs:
            self.configdb_singleton.remove(config_id)

        self._configsvrs = []
        self._routers = []
        self._shards = {}
122719
def cleanup(self):
        """"""
        for item in self.server_map:
            self.member_del(item, reconfig=False)
        self.server_map.clear()
719249
def clean(self):
        """"""
        terms = list(self)

        for t in terms:
            self.doc.remove_term(t)
1145882
def unselectByIdx(self, rowIdxs):
        ''
        self.unselect((self.rows[i] for i in rowIdxs), progress=False)
724026
def removeItem(self, index):
        """"""
        self._stim.removeComponent(index.row(), index.column())
434326
def remove_for_target(self, target, products):
    
    for product in products:
      self._products_by_target[target].discard(product)
790708
def clear_symbols(self, index):
        """"""
        try:
            del self.table[index:]
        except Exception:
            self.error()
        self.table_len = len(self.table)
225411
def remove_priors(self):
        """"""

        for src in self.roi.sources:

            for par in self.like[src.name].funcs["Spectrum"].params.values():
                par.removePrior()
91876
def clear(*signals):
    
    signals = signals if signals else receivers.keys()

    for signal in signals:
        receivers[signal].clear()
788683
public synchronized void removeMPReadTransactions() {
        TransactionTask  task = m_backlog.peekFirst();
        while (task != null && task.getTransactionState().isReadOnly()) {
            task.getTransactionState().setDone();
            flush(task.getTxnId());
            task = m_backlog.peekFirst();
        }
    }
39983
def remove(self, elem):
    """"""
    self._values.remove(elem)
    self._message_listener.Modified()
1077420
def clear_es():
        """"""
        # TODO: should receive a catalog slug.
        ESHypermap.es.indices.delete(ESHypermap.index_name, ignore=[400, 404])
        LOGGER.debug('Elasticsearch: Index cleared')
158945
def remove(self, idxs):
        
        import utool as ut
        keep_idxs = ut.index_complement(idxs, len(self))
        return self.take(keep_idxs)