<commit_before>  // Browser
  // ---------------------------------------------------------------------------

  /**
   * Assert subject is the window global
   * @return {Boolean}
   */
  matchers.toBeWindow = function() {
    return typeof window !== 'undefined' && this.actual === window;
  };

  /**
   * Assert subject is the document global
   * @return {Boolean}
   */
  matchers.toBeDocument = function() {
    return typeof document !== 'undefined' && this.actual === document;
  };

  /**
   * Assert subject is an HTML Element
   * @return {Boolean}
   */
  matchers.toBeHtmlNode = function() {
    return priv.isHtmlElementOfType(this.actual, 1);
  };

  /**
   * Assert subject is an HTML Text Element
   * @return {Boolean}
   */
  matchers.toBeHtmlTextNode = function() {
    return priv.isHtmlElementOfType(this.actual, 3);
  };

  /**
   * Assert subject is an HTML Text Element
   * @return {Boolean}
   */
  matchers.toBeHtmlCommentNode = function() {
    return priv.isHtmlElementOfType(this.actual, 8);
  };<commit_msg>JSDoc Browser Matchers.<commit_after>  // Browser
  // ---------------------------------------------------------------------------

  /**
   * @name toBeWindow
   *
   * @description
   * Assert subject is a browser Window global, whether that be the parent window or those created
   * within iframes or other windows.
   *
   * @example
   * expect(window).toBeWindow();
   * expect({}).not.toBeWindow();
   *
   * @return {Boolean}
   */
  matchers.toBeWindow = function() {
    return this.actual && typeof this.actual === 'object' && this.actual.window === this.actual;
  };

  /**
   * @name toBeDocument
   *
   * @description
   * Assert subject is a browser Window global, whether that be the parent window or those created
   * within iframes or other windows.
   *
   * @example
   * expect(window.document).toBeDocument();
   * expect({}).not.toBeDocument();
   *
   * @return {Boolean}
   */
  matchers.toBeDocument = function() {
    return this.actual && typeof this.actual === 'object' && this.actual instanceof window.HTMLDocument;
  };

  /**
   * @name toBeHtmlNode
   *
   * @description
   * Assert subject is an HTML Element.
   *
   * @example
   * expect(document.createElement('div')).toBeHtmlNode();
   * expect('<div>a string of html</div>').not.toBeHtmlNode();
   * expect(document.createTextNode('i am DOM text')).not.toBeHtmlNode();
   *
   * @return {Boolean}
   */
  matchers.toBeHtmlNode = function() {
    return priv.isHtmlElementOfType(this.actual, 1);
  };

  /**
   * @name toBeHtmlTextNode
   *
   * @description
   * Assert subject is an HTML Text Element.
   *
   * @example
   * expect(document.createTextNode('i am DOM text')).toBeHtmlTextNode();
   * expect(document.querySelector('title').firstChild).toBeHtmlTextNode();
   * expect(document.createElement('div')).not.toBeHtmlTextNode();
   * expect('<div>a string of html</div>').not.toBeHtmlTextNode();
   *
   * @return {Boolean}
   */
  matchers.toBeHtmlTextNode = function() {
    return priv.isHtmlElementOfType(this.actual, 3);
  };

  /**
   * @name toBeHtmlCommentNode
   *
   * @description
   * Assert subject is an HTML Comment Element.
   *
   * @example
   * expect(document.createComment('i am a comment')).toBeHtmlCommentNode();
   * expect(document.createElement('div')).not.toBeHtmlCommentNode();
   * expect('<--a string of html-->').not.toBeHtmlCommentNode();
   *
   * @return {Boolean}
   */
  matchers.toBeHtmlCommentNode = function() {
    return priv.isHtmlElementOfType(this.actual, 8);
  };
{'fraction_non_alphanumeric': 0.18304702900591382, 'fraction_numerical': 0.0016896648831315122, 'mean_word_length': 2.6656346749226008, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2043256', 'n_tokens_mistral': 1050, 'n_tokens_neox': 1037, 'n_words': 237}