<commit_before>Small program to render random texts from XML-file. See main.xml for example usage. More features planned.

Features:

A sentence will choose from the different alternatives:

    <sentence>
      This is a
      <alt> sentence.</alt>
      <alt> joke.</alt>
    </sentence>

When an alternative is chosen, you can set a flag to be used later:

    <sentence>
      This is a
      <alt setFlag="flag1"> sentence.</alt>
      <alt> joke.</alt>
    </sentence>

A flag can _only_ be set once!<commit_msg>Doc about flags in README.<commit_after>Small program to render random texts from XML-file. See main.xml for example usage. More features planned.

Features:

A sentence will choose from the different alternatives:

    <sentence>
      This is a
      <alt> sentence.</alt>
      <alt> joke.</alt>
    </sentence>

When an alternative is chosen, you can set a flag to be used later:

    <sentence>
      This is a
      <alt setFlag="flag1"> sentence.</alt>
      <alt> joke.</alt>
    </sentence>

A flag can _only_ be set once! The following story will throw an exception:

    <story>
      <sentence>
        This is a 
        <alt setFlag="flag1"> sentence.</alt>
      </sentence>
      <sentence>
        This is another 
        <alt setFlag="flag1"> sentence.</alt>
      </sentence>
    </story>

    Problem with sentence 'This is another'
    Fatal error: exception Main.Flag_already_set("flag1")
{'fraction_non_alphanumeric': 0.1000699790062981, 'fraction_numerical': 0.0034989503149055285, 'mean_word_length': 2.5839598997493733, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4644290', 'n_tokens_mistral': 425, 'n_tokens_neox': 402, 'n_words': 168}