<commit_before>import 'package:domelement/core.dart';

void main() {
  DomElement pre = find('#pre1')
    // makes the pre-formatted text editable
    ..attr['contenteditable'] = 'true'
    ..attr['spellcheck'] = 'true'
    // changes some CSS attributes
    ..css['white-space'] = 'pre-line'
    ..css['border'] = '1px solid #666'
    ..css['padding'] = '3px'
    // and saves some data
    ..data['hidden-text'] = 'This text is invisible';

  // prints some attributes info
  print('Is content editable: ' + pre.attr['contenteditable']);
  print('border: ' + pre.css['border'] + ', padding: ' + pre.css['padding']);
  print('Hidden text: ' + pre.data['hidden-text']);

  // see 'events' folder
  find('#button1').on('click', () {
    // removes all attributes except 'data' and 'style'
    pre.attr..remove('contenteditable')..remove('spellcheck');
  });
  find('#button2').on('click', () => pre.css.clear());
  find('#button3').on('click', () => pre.data.clear());
}
<commit_msg>inlinde docs fix<commit_after>import 'package:domelement/core.dart';

void main() {
  DomElement pre = find('#pre1')
    // makes the pre-formatted text editable
    ..attr['contenteditable'] = 'true'
    ..attr['spellcheck'] = 'true'
    // changes some CSS attributes
    ..css['white-space'] = 'pre-line'
    ..css['border'] = '1px solid #666'
    ..css['padding'] = '3px'
    // and saves some data
    ..data['hidden-text'] = 'This text is invisible';

  // prints some attributes info
  print('Is content editable: ' + pre.attr['contenteditable']);
  print('border: ' + pre.css['border'] + ', padding: ' + pre.css['padding']);
  print('Hidden text: ' + pre.data['hidden-text']);

  // see 'event' examples
  find('#button1').on('click', () {
    // removes all attributes except 'data' and 'style'
    pre.attr..remove('contenteditable')..remove('spellcheck');
  });
  find('#button2').on('click', () => pre.css.clear());
  find('#button3').on('click', () => pre.data.clear());
}

{'fraction_non_alphanumeric': 0.2184959349593496, 'fraction_numerical': 0.009146341463414634, 'mean_word_length': 3.5684454756380513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5493315', 'n_tokens_mistral': 642, 'n_tokens_neox': 634, 'n_words': 138}