Clears the text.

        raise:  NoAccess - ``Metadata.isRequired()`` or
                ``Metadata.isReadOnly()`` is ``true``
        *compliance: mandatory -- This method must be implemented.*
340700
def clear_text(self):
        
        # Implemented from template for osid.repository.AssetForm.clear_title_template
        if (self.get_text_metadata().is_read_only() or
                self.get_text_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['text'] = dict(self._text_default)
1117393
def clear_content(self, content):
        
        content = _unicode(content)
        return self.wrapper_match.sub("", content)
866631
def clear(self):
        '''
        
        '''

        self.tags = []
        '''the current list of tags which have been opened in the XML file'''

        self.chars = {}
        '''the chars held by each tag, indexed by their tag name'''

        self.attribs = {}
        '''the attributes of each tag, indexed by their tag name'''

        self.handler = None
        ''' the method which will handle the current tag, and the data currently in the class '''

        self.piece = PieceTree.PieceTree()
        '''the class tree top'''

        self.isDynamic = False
        '''Indicator of whether the current thing being processed is a dynamic'''

        self.data["note"] = None
        self.data["direction"] = None
        self.data["expression"] = None
        self.data["degree"] = None
        self.data["frame_note"] = None
        self.data["staff_id"] = 1
        self.data["voice"] = 1
        self.data["handleType"] = ""
65780
def clean(text, cls=None, **kwargs):
    
    cls = cls or Scrubber
    scrubber = cls()
    return scrubber.clean(text, **kwargs)
1158235
def close(self, clear=True):
        
        Cache().set_cursor_position(
            self.path, self.editor.textCursor().position())
        self.editor._original_text = ''
        if clear:
            self.editor.clear()
        self._path = ''
        self.mimetype = ''
        self._encoding = locale.getpreferredencoding()
512380
def _clear(self):
        
        self.__names.clear()
        self.__queue.clear()
        self.__context = None
643830
@Override
	public void clearBody()
    {
    	assertDeserializationLevel(MessageSerializationLevel.FULL);
        bodyIsReadOnly = false;
        body.clear();
        readPos = 0;
        currentByteInputStream = null;
    }
1374692
def clear(self, flush=True):
        

        if self.enabled:
            self.manager.write(flush=flush, position=self.position)
32740
def remove_empty_text(utterances: List[Utterance]) -> List[Utterance]:
    
    return [utter for utter in utterances if utter.text.strip() != ""]
168241
protected function clear()
    {
        $this->innerHtml = null;
        $this->outerHtml = null;
        $this->text      = null;
    }
1268065
def clear_description(self):
        
        if (self.get_domain_metadata().is_read_only() or
                self.get_domain_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['domain'] = self._domain_metadata['default_string_values'][0]
1233500
public function clear()
    {
        $this->assertOpened();
        foreach ($this->contents as $key => $value) {
            unset($this->contents[$key]);
        }
    }
207580
def clear_data(self):
        
        if (self.get_data_metadata().is_read_only() or
                self.get_data_metadata().is_required()):
            raise errors.NoAccess()
        if self._my_map['data'] == self._data_default:
            return
        dbase = JSONClientValidated('repository',
                                    runtime=self._runtime).raw()
        filesys = gridfs.GridFS(dbase)
        filesys.delete(self._my_map['data'])
        self._my_map['data'] = self._data_default
        del self._my_map['base64']
370979
def reset(self, clear=False):
        
        if self._executing:
            self._executing = False
            self._request_info['execute'] = {}
        self._reading = False
        self._highlighter.highlighting_on = False

        if clear:
            self._control.clear()
            if self._display_banner:
                if self.kernel_banner:
                    self._append_plain_text(self.kernel_banner)
                self._append_plain_text(self.banner)

        # update output marker for stdout/stderr, so that startup
        # messages appear after banner:
        self._show_interpreter_prompt()
816905
@SuppressWarnings("unused")
    public void clearCompletionText() {
        //Respect currentCompletionText in case hint is visible or if other checks are added.
        if (currentCompletionText().length() == 0){
            return;
        }

        Range currentRange = getCurrentCandidateTokenRange();
        internalEditInProgress = true;
        getText().delete(currentRange.start, currentRange.end);
        internalEditInProgress = false;
    }
436902
def clear_data(self):
        
        self.clear_annotation_data()
        self.terms = {}
        self._alt_id = {}
        self._syn2id = {}
        self._name2id = {}
        self._flattened = False
589472
def clear_content(self):
        
        for child in self[:]:
            if child.tag == qn('w:pPr'):
                continue
            self.remove(child)