<commit_before><?xml version="1.0" encoding="UTF-8" standalone="no"?>

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

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

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

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

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

    <rule ref="rulesets/java/codesize.xml" />
    <rule ref="rulesets/java/codesize.xml/CyclomaticComplexity">
        <properties>
            <property name="reportLevel" value="20" />
        </properties>
    </rule>
    <rule ref="rulesets/java/codesize.xml/TooManyMethods">
        <properties>
            <property name="maxmethods" value="25" />
        </properties>
    </rule>

    <rule ref="rulesets/java/comments.xml">
        <exclude name="CommentRequired" />
    </rule>

    <rule ref="rulesets/java/controversial.xml">
        <!-- while ((x = update()) != null) { process(x); } -->
        <exclude name="AssignmentInOperand" />
        <exclude name="AvoidLiteralsInIfCondition" />
        <exclude name="AvoidPrefixingMethodParameters" />
        <exclude name="DataflowAnomalyAnalysis" />
        <exclude name="NullAssignment" />
        <exclude name="OnlyOneReturn" />
    </rule>

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

    <rule ref="rulesets/java/design.xml">
        <exclude name="AvoidReassigningParameters" />
        <!-- if (x != y) { short code block } else { long code block } -->
        <exclude name="ConfusingTernary" />
        <exclude name="SwitchStmtsShouldHaveDefault" />
        <!-- Android listeners contain a lot of such switch statements -->
        <exclude name="TooFewBranchesForASwitchStatement" />
    </rule>

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

    <rule ref="rulesets/java/finalizers.xml" />
<commit_msg>update PMD file<commit_after><?xml version="1.0" encoding="UTF-8" standalone="no"?>

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

    <description>POM rule set file</description>

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

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

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

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

    <rule ref="rulesets/java/codesize.xml" />
    <rule ref="rulesets/java/codesize.xml/CyclomaticComplexity">
        <properties>
            <property name="reportLevel" value="20" />
        </properties>
    </rule>
    <rule ref="rulesets/java/codesize.xml/TooManyMethods">
        <properties>
            <property name="maxmethods" value="25" />
        </properties>
    </rule>

    <rule ref="rulesets/java/comments.xml">
        <exclude name="CommentRequired" />
    </rule>

    <rule ref="rulesets/java/controversial.xml">
        <!-- while ((x = update()) != null) { process(x); } -->
        <exclude name="AssignmentInOperand" />
        <exclude name="AtLeastOneConstructor" />
        <exclude name="AvoidLiteralsInIfCondition" />
        <exclude name="AvoidPrefixingMethodParameters" />
        <exclude name="DataflowAnomalyAnalysis" />
        <exclude name="NullAssignment" />
        <exclude name="OnlyOneReturn" />
    </rule>

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

    <rule ref="rulesets/java/design.xml">
        <exclude name="AvoidReassigningParameters" />
        <!-- if (x != y) { short code block } else { long code block } -->
        <exclude name="ConfusingTernary" />
        <exclude name="SwitchStmtsShouldHaveDefault" />
        <!-- Android listeners contain a lot of such switch statements -->
        <exclude name="TooFewBranchesForASwitchStatement" />
    </rule>

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

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

{'fraction_non_alphanumeric': 0.16724177593742812, 'fraction_numerical': 0.008281573498964804, 'mean_word_length': 2.9065588499550765, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 2, '>': 92, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 36}, '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': '6952386', 'n_tokens_mistral': 1452, 'n_tokens_neox': 1371, 'n_words': 214}