<commit_before>Feature:

 As someone working on a dynamic website
 In order to keep the HTML free from logic
 I want 'nate' to transform plain HTML based on data I supply

 Scenario Outline: match and inject data
   Given the plain HTML fragment "<ul><li class='character'></li></ul>"
    When <data> is injected
    Then the plain HTML fragment is <transformed>

   Examples:
     | data                                            | transformed |
     | {'.character' => 'Leonard'}                     | <ul><li class="character">Leonard</li></ul> |
     | {'.character' => ['Leonard','Sheldon','Penny']} | <ul><li class="character">Leonard</li><li class="character">Sheldon</li><li class="character">Penny</li></ul> |
<commit_msg>Added single value injection feature.<commit_after>Feature:

 As someone working on a dynamic website
 In order to keep the HTML free from logic
 I want 'nate' to transform plain HTML based on data I supply

 Scenario Outline: match and inject data
   Given the plain HTML fragment "<ul><li class='character'></li></ul>"
    When <data> is injected
    Then the plain HTML fragment is <transformed>

   Examples:
     | data                                            | transformed |
     | {'.character' => 'Leonard'}                     | <ul><li class="character">Leonard</li></ul> |
     | {'.character' => ['Leonard','Sheldon','Penny']} | <ul><li class="character">Leonard</li><li class="character">Sheldon</li><li class="character">Penny</li></ul> |

  Scenario Outline: match and inject a single data value
    Given the plain HTML fragment "<div class='section'><span class='content'></span></div>"
     When <data> is injected
     Then the plain HTML fragment is <transformed>
    
    Examples:
      | data                             | transformed                                                             |
      | {'.section' => 'Hello Section' } | <div class="section">Hello Section</div>                              |
      | {'.content' => 'Hello Content'}  | <div class="section"><span class="content">Hello Content</span></div> |

{'fraction_non_alphanumeric': 0.13621103117505995, 'fraction_numerical': 0.0, 'mean_word_length': 2.459369817578773, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1176696', 'n_tokens_mistral': 545, 'n_tokens_neox': 523, 'n_words': 180}