/*
Clears the javascript scripts previously loaded into the page.
552925
function (guid) {
        var headChildren = document.getElementsByTagName('head')[0].children;
        var childrenToRemove = [];

        for (var i = 0; i < headChildren.length; i++) {
            if (headChildren[i].attributes != null && headChildren[i].attributes['ortcScriptId'] && headChildren[i].attributes['ortcScriptId'].value == guid) {
                childrenToRemove.push(i);
            }
        }

        for (var child in childrenToRemove) {
            document.getElementsByTagName('head')[0].removeChild(headChildren[childrenToRemove[child]]);
        }
    }
1128961
function clearChoiceListeners() {
  const lis = document.querySelectorAll('li');
  Array.from(lis).forEach(li => {
    if (li.clearListener) li.clearListener();
  })
}
845369
function remove_inline_scripts(){
      for (var i = 0; i < scripts.length; i++) {
        if (scripts[i].length && scripts[i] !== "\n") {
          html = html.replace(scripts[i], "");
        }
      }
    }
424676
function clear() {
    /* clear browser console */
    if (shouldLogToConsole && console && console.clear) {
      console.clear();
    }
    /* clear app console */
    if (shouldLogToElement) {
      element.value = '';
      element.scrollTop = element.scrollHeight;
    }
  }
244060
def clear(self) -> None:
        """"""
        self.click()
        for i in self.text:
            self._parent.send_keyevents(Keys.DEL)
545505
public void clear() {
    for( Placeholder p : _placeholders.values() ) {
      p.start.removeTill(p.end);
    }
  }
285771
protected function clear(): void
    {
        $this->innerHtml = null;
        $this->outerHtml = null;
        $this->text      = null;
        $this->textWithChildren = null;

        if (is_null($this->parent) === false) {
            $this->parent->clear();
        }
    }
235117
public void clearSprites ()
    {
        _metamgr.clearSprites();

        if (_actionHandler != null) {
            removeMouseListener(_actionHandler);
            removeMouseMotionListener(_actionHandler);
            _actionSpriteCount = 0;
        }
    }
1372905
function clearAjax() {
  each(function(request) {
    try {
      request.onload = noop;
      request.onerror = noop;
      request.onabort = noop;
      request.onreadystatechange = noop;
      each(function(added) {
        request[added[0]].apply(request, added[1]);
      }, request._queue || []);
      request.abort();
    } catch (e) {
      // Ignore error
    }
  }, requests);
  requests.length = [];
}
1178941
function reset () {
  clear(instances);
  clear(modules);
  clear(components);
  delete renderer.Document;
  delete renderer.Element;
  delete renderer.Comment;
  delete renderer.sendTasks;
}
190057
void clear() {
        nextId = 0;
        collectionIds = new HashMap<String, List<Long>>();
        events = new HashMap<Long, String>();
    }
722754
public function clear() {
        $this->statusCode = self::HTTP_OK;
        $this->headers = [];
        $this->cookies = [];
        $this->content = null;
        $this->sent = false;
    }
33267
public void clear() {
        valueBoxBase.setText("");
        clearStatusText();

        if (getPlaceholder() == null || getPlaceholder().isEmpty()) {
            label.removeStyleName(CssName.ACTIVE);
        }
    }
894102
def clear(self):
        """"""
        self._functions=[]
        self._args=[]
        self._kwargs=[]
        self._kind=[]
873829
protected void clearCaches() {
        DescriptorFactory.clearInstance();
        ObjectTypeFactory.clearInstance();
        TypeQualifierApplications.clearInstance();
        TypeQualifierAnnotation.clearInstance();
        TypeQualifierValue.clearInstance();
        // Make sure the codebases on the classpath are closed
        AnalysisContext.removeCurrentAnalysisContext();
        Global.removeAnalysisCacheForCurrentThread();
        IO.close(classPath);
    }
438342
def clear_globals_reload_modules(self):
        """"""

        self.code_array.clear_globals()
        self.code_array.reload_modules()

        # Clear result cache
        self.code_array.result_cache.clear()
858639
public function clear()
	{
		$cvars = get_class_vars(__CLASS__);

		$this->_updatedkeys = array();

		foreach ($cvars as $key => $value)
		{
			if ($key{0} != '_')
			{
				unset($this->$key);

				$this->$key = null;
			}
		}

		$this->_updatedkeys = array();
	}