<commit_before><?xml version="1.0" encoding="utf-8"?>
<!--
A demo rule file for LanguageTool
Copyright (C) 2005 <NAME> (http://www.danielnaber.de)
$Id: grammar.xml,v 1.11 2007-01-25 20:27:43 dnaber Exp $
-->
<rules lang="xx">

  <category name="misc">

    <!-- a trivialdemo rule that matches "foo" followed by "bar" -->
    <rule id="DEMO_RULE" name="Find 'foo bar'">
      <pattern mark_from="0" case_sensitive="no">
        <token>foo</token>
        <token>bar</token>
      </pattern>
      <message>Did you mean <suggestion>fuu bah</suggestion>?</message>
      <example type="correct">This is <marker>fuu bah</marker>.</example>
      <example type="incorrect">This is <marker>foo bar</marker>.</example>
    </rule>

    <rule id="API_OUTPUT_TEST_RULE" name="Find 'foo bar'">
      <pattern mark_from="1" case_sensitive="no">
        <token>ach</token>
        <token>thosnaíos-sa</token>
      </pattern>
      <message>Did you mean <suggestion>fuu bah</suggestion>?</message>
      <example type="correct">This is <marker>fuu bah</marker>.</example>
      <example type="incorrect">This is <marker>foo bar</marker>.</example>
    </rule>

    <rule id="NEGATION_TOKEN" name="test negation">
      <pattern mark_from="1">
        <token>small</token>
        <token negate="yes">test</token>
      </pattern>
      <message>test</message>
      <example type="correct">a small <marker>test</marker></example>
      <example type="incorrect">a small <marker>toast</marker></example>
    </rule>

  </category>

</rules>
<commit_msg>make testcase work again<commit_after><?xml version="1.0" encoding="utf-8"?>
<!--
A demo rule file for LanguageTool
Copyright (C) 2005 <NAME> (http://www.danielnaber.de)
$Id: grammar.xml,v 1.12 2007-01-25 20:38:51 dnaber Exp $
-->
<rules lang="xx">

  <category name="misc">

    <!-- a trivialdemo rule that matches "foo" followed by "bar" -->
    <rule id="DEMO_RULE" name="Find 'foo bar'">
      <pattern mark_from="0" case_sensitive="no">
        <token>foo</token>
        <token>bar</token>
      </pattern>
      <message>Did you mean <suggestion>fuu bah</suggestion>?</message>
      <example type="correct">This is <marker>fuu bah</marker>.</example>
      <example type="incorrect">This is <marker>foo bar</marker>.</example>
    </rule>

    <rule id="API_OUTPUT_TEST_RULE" name="Find 'foo bar'">
      <pattern mark_from="1" case_sensitive="no">
        <token>ach</token>
        <token><PASSWORD></token>
      </pattern>
      <message>Did you mean <suggestion>fuu bah</suggestion>?</message>
      <example type="correct">This is ach <marker>fuu bah</marker>.</example>
      <example type="incorrect">This is ach <marker>thosnaíos-sa</marker>.</example>
    </rule>

    <rule id="NEGATION_TOKEN" name="test negation">
      <pattern mark_from="1">
        <token>small</token>
        <token negate="yes">test</token>
      </pattern>
      <message>test</message>
      <example type="correct">a small <marker>test</marker></example>
      <example type="incorrect">a small <marker>toast</marker></example>
    </rule>

  </category>

</rules>

{'fraction_non_alphanumeric': 0.18105670103092783, 'fraction_numerical': 0.017396907216494846, 'mean_word_length': 3.4676258992805757, 'pattern_counts': {'":': 0, '<': 136, '<?xml version=': 2, '>': 136, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '1201552', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1032, 'n_words': 224}