<commit_before>// Copyright 2015 Google. All rights reserved. Use of this source code is
// governed by a BSD-style license that can be found in the LICENSE file.

part of wip;

/// Implementation of the
/// https://developer.chrome.com/devtools/docs/protocol/1.1/dom
class WipDom extends WipDomain {
  WipDom(WipConnection connection) : super(connection) {
    connection._registerDomain('DOM', this);

    _register('DOM.attributeModified', _attributeModified);
    _register('DOM.attributeRemoved', _attributeRemoved);
    _register('DOM.characterDataModified', _characterDataModified);
    _register('DOM.childNodeCountUpdated', _childNodeCountUpdated);
    _register('DOM.childNodeInserted', _childNodeInserted);
    _register('DOM.childNodeRemoved', _childNodeRemoved);
    _register('DOM.documentUpdated', _documentUpdated);
    _register('DOM.setChildNodes', _setChildNodes);
  }

  Future enable() => _sendSimpleCommand('Console.enable');
  Future disable() => _sendSimpleCommand('Console.disable');
  Future clearMessages() => _sendSimpleCommand('Console.clearMessages');<commit_msg>Delete leftover WipConsole methods.<commit_after>// Copyright 2015 Google. All rights reserved. Use of this source code is
// governed by a BSD-style license that can be found in the LICENSE file.

part of wip;

/// Implementation of the
/// https://developer.chrome.com/devtools/docs/protocol/1.1/dom
class WipDom extends WipDomain {
  WipDom(WipConnection connection) : super(connection) {
    connection._registerDomain('DOM', this);

    _register('DOM.attributeModified', _attributeModified);
    _register('DOM.attributeRemoved', _attributeRemoved);
    _register('DOM.characterDataModified', _characterDataModified);
    _register('DOM.childNodeCountUpdated', _childNodeCountUpdated);
    _register('DOM.childNodeInserted', _childNodeInserted);
    _register('DOM.childNodeRemoved', _childNodeRemoved);
    _register('DOM.documentUpdated', _documentUpdated);
    _register('DOM.setChildNodes', _setChildNodes);
  }
{'fraction_non_alphanumeric': 0.11469712015888779, 'fraction_numerical': 0.005958291956305859, 'mean_word_length': 5.563517915309446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '5583857', 'n_tokens_mistral': 563, 'n_tokens_neox': 545, 'n_words': 127}