<commit_before>H5G
---
An attempt to write a DSL to generate HTML in JavaScript.


Examples:

    div({'id': 'content', 'class': 'main content'})
      .h1('The Caption').x()
      .content('Some text.')
      .hr()
      .content('Some more text with an ')
      .i({'class': 'emphasize'}, 'important word').x()
      .content(' and even more text.')
    .x()

    document.writeln(h);


---


    table()
      .tr().th('A').x().th('B').x().x()
      for (var i = 1; i <= 5; i++) {
        h.tr({'class': i % 2 ? 'odd' : 'even'}).td('' + i).x().td('' + i * 2).x().x()
      }
    h.x()
     
    document.writeln(h);
<commit_msg>again<commit_after>H5G
---
An attempt to write a DSL to generate HTML in JavaScript.


Examples:

```javascript
div({'id': 'content', 'class': 'main content'})
  .h1('The Caption').x()
  .content('Some text.')
  .hr()
  .content('Some more text with an ')
  .i({'class': 'emphasize'}, 'important word').x()
  .content(' and even more text.')
.x()

document.writeln(h);
```

```javascript
table()
  .tr().th('A').x().th('B').x().x()
  for (var i = 1; i <= 5; i++) {
    h.tr({'class': i % 2 ? 'odd' : 'even'}).td('' + i).x().td('' + i * 2).x().x()
  }
h.x()
 
document.writeln(h);
```

{'fraction_non_alphanumeric': 0.2641975308641975, 'fraction_numerical': 0.009876543209876543, 'mean_word_length': 2.5976331360946747, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6282946', 'n_tokens_mistral': 492, 'n_tokens_neox': 467, 'n_words': 118}