<commit_before><?xml version="1.0"?>
<!--
  ~ Open Source Software published under the Apache Licence, Version 2.0.
  -->

<ruleset name="VocabHunter PMD Configuration"
         xmlns="http://pmd.sf.net/ruleset/1.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
         xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">

    <description>VocabHunter PMD Configuration</description>

    <rule ref="rulesets/java/basic.xml"/>

    <rule ref="rulesets/java/braces.xml"/>

    <rule ref="rulesets/java/clone.xml"/>

    <rule ref="rulesets/java/codesize.xml">
        <exclude name="TooManyMethods"/>
        <exclude name="TooManyFields"/>
    </rule>

    <rule ref="rulesets/java/controversial.xml/UnnecessaryConstructor"/>
    <rule ref="rulesets/java/controversial.xml/AssignmentInOperand"/>
    <rule ref="rulesets/java/controversial.xml/DontImportSun"/>
    <rule ref="rulesets/java/controversial.xml/SuspiciousOctalEscape"/>
    <rule ref="rulesets/java/controversial.xml/UnnecessaryParentheses"/>
    <rule ref="rulesets/java/controversial.xml/AvoidUsingNativeCode"/>
    <rule ref="rulesets/java/controversial.xml/AvoidAccessibilityAlteration"/>
    <rule ref="rulesets/java/controversial.xml/OneDeclarationPerLine"/>

    <rule ref="rulesets/java/coupling.xml">
        <exclude name="CouplingBetweenObjects"/>
        <exclude name="ExcessiveImports"/>
        <exclude name="LoosePackageCoupling"/>
        <exclude name="LawOfDemeter"/>
    </rule>

    <rule ref="rulesets/java/design.xml">
        <exclude name="AccessorMethodGeneration"/>
    </rule><commit_msg>Improved the PMD rule definition<commit_after><?xml version="1.0"?>
<!--
  ~ Open Source Software published under the Apache Licence, Version 2.0.
  -->

<ruleset name="VocabHunter PMD Configuration"
         xmlns="http://pmd.sf.net/ruleset/1.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
         xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">

    <description>VocabHunter PMD Configuration</description>

    <rule ref="rulesets/java/basic.xml"/>

    <rule ref="rulesets/java/braces.xml"/>

    <rule ref="rulesets/java/clone.xml"/>

    <rule ref="rulesets/java/codesize.xml">
        <exclude name="TooManyMethods"/>
        <exclude name="TooManyFields"/>
    </rule>

    <rule ref="rulesets/java/controversial.xml">
        <exclude name="NullAssignment"/>
        <exclude name="OnlyOneReturn"/>
        <exclude name="AtLeastOneConstructor"/>
        <exclude name="DataflowAnomalyAnalysis"/>
        <exclude name="UseConcurrentHashMap"/>
        <exclude name="AvoidLiteralsInIfCondition"/>
        <exclude name="CallSuperInConstructor"/>
        <exclude name="AvoidPrefixingMethodParameters"/>
        <exclude name="DefaultPackage"/>
    </rule>

    <rule ref="rulesets/java/coupling.xml">
        <exclude name="CouplingBetweenObjects"/>
        <exclude name="ExcessiveImports"/>
        <exclude name="LoosePackageCoupling"/>
        <exclude name="LawOfDemeter"/>
    </rule>

    <rule ref="rulesets/java/design.xml">
        <exclude name="AccessorMethodGeneration"/>
    </rule>
{'fraction_non_alphanumeric': 0.1547337278106509, 'fraction_numerical': 0.008875739644970414, 'mean_word_length': 3.4781456953642382, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 2, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 31}, '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': '1166477', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1059, 'n_words': 146}