<commit_before><?xml version="1.0"?>
<ruleset name="ObjectCalisthenics">
    <description>Object Calisthenics coding standard.</description>

    <!-- Import PSR-2 coding standard (base) -->
    <rule ref="PSR2"/>

    <!-- Rule #1: Only one indentation level per function/method -->
    <rule ref="ObjectCalisthenics.Metrics.OneIndentationLevel"/>

    <!-- Rule #2: There is no "else" -->
    <rule ref="ObjectCalisthenics.ControlStructures.NoElse"/>

    <!-- Rule #3: Encapsulate all primitive types and strings -->
    <!-- Cannot be implemented, since it requires to be encapsulated ONLY if they have behavior -->

    <!-- Rule #4: Only one object operator (->) per line -->
    <rule ref="ObjectCalisthenics.CodeAnalysis.OneObjectOperatorPerLine"/>

    <!-- Rule #5: Do not abbreviate -->
    <rule ref="ObjectCalisthenics.NamingConventions.VariableLength"/>
    <rule ref="ObjectCalisthenics.NamingConventions.FunctionLength"/>
    <rule ref="ObjectCalisthenics.NamingConventions.ConstantLength"/>
    <rule ref="ObjectCalisthenics.NamingConventions.ClassLength"/>

    <!-- Rule #6: Keep your classes small -->
    <!-- 15 classes per namespace -->
    <!-- Cannot be implemented, since PHPCS can only be executed over files -->
    <!-- 200 LOC for interfaces, classes and traits -->
    <rule ref="ObjectCalisthenics.Files.InterfaceLength"/>
    <rule ref="ObjectCalisthenics.Files.ClassLength"/>
    <rule ref="ObjectCalisthenics.Files.TraitLength"/>
    <!-- 10 methods per class -->
    <rule ref="ObjectCalisthenics.Metrics.MethodPerClassLimit"/>
    <!-- 20 LOC for methods -->
    <rule ref="ObjectCalisthenics.Files.FunctionLength"/>

    <!-- Rule #7: Limit the number of object instances per class (2 to 5) -->
    <rule ref="ObjectCalisthenics.CodeAnalysis.InstancePropertyPerClassLimit"/>

    <!-- Rule #8: Use first class Collections -->
    <rule ref="ObjectCalisthenics.CodeAnalysis.ArrayPropertyPerClassLimit"/>

    <!-- Rule #9: Use getters/setter -->
    <rule ref="ObjectCalisthenics.Classes.PropertyVisibility"/>

    <!-- Rule #10: Document your code -->
    <rule ref="Squiz.Commenting.DocCommentAlignment"/>
    <rule ref="Squiz.Commenting.ClassComment"/>
    <rule ref="Squiz.Commenting.VariableComment"/>
    <rule ref="Squiz.Commenting.FunctionComment"/>
</ruleset><commit_msg>Commented out class comment since it was erroring incorrectly.<commit_after><?xml version="1.0"?>
<ruleset name="ObjectCalisthenics">
    <description>Object Calisthenics coding standard.</description>

    <!-- Import PSR-2 coding standard (base) -->
    <rule ref="PSR2"/>

    <!-- Rule #1: Only one indentation level per function/method -->
    <rule ref="ObjectCalisthenics.Metrics.OneIndentationLevel"/>

    <!-- Rule #2: There is no "else" -->
    <rule ref="ObjectCalisthenics.ControlStructures.NoElse"/>

    <!-- Rule #3: Encapsulate all primitive types and strings -->
    <!-- Cannot be implemented, since it requires to be encapsulated ONLY if they have behavior -->

    <!-- Rule #4: Only one object operator (->) per line -->
    <rule ref="ObjectCalisthenics.CodeAnalysis.OneObjectOperatorPerLine"/>

    <!-- Rule #5: Do not abbreviate -->
    <rule ref="ObjectCalisthenics.NamingConventions.VariableLength"/>
    <rule ref="ObjectCalisthenics.NamingConventions.FunctionLength"/>
    <rule ref="ObjectCalisthenics.NamingConventions.ConstantLength"/>
    <rule ref="ObjectCalisthenics.NamingConventions.ClassLength"/>

    <!-- Rule #6: Keep your classes small -->
    <!-- 15 classes per namespace -->
    <!-- Cannot be implemented, since PHPCS can only be executed over files -->
    <!-- 200 LOC for interfaces, classes and traits -->
    <rule ref="ObjectCalisthenics.Files.InterfaceLength"/>
    <rule ref="ObjectCalisthenics.Files.ClassLength"/>
    <rule ref="ObjectCalisthenics.Files.TraitLength"/>
    <!-- 10 methods per class -->
    <rule ref="ObjectCalisthenics.Metrics.MethodPerClassLimit"/>
    <!-- 20 LOC for methods -->
    <rule ref="ObjectCalisthenics.Files.FunctionLength"/>

    <!-- Rule #7: Limit the number of object instances per class (2 to 5) -->
    <rule ref="ObjectCalisthenics.CodeAnalysis.InstancePropertyPerClassLimit"/>

    <!-- Rule #8: Use first class Collections -->
    <rule ref="ObjectCalisthenics.CodeAnalysis.ArrayPropertyPerClassLimit"/>

    <!-- Rule #9: Use getters/setter -->
    <rule ref="ObjectCalisthenics.Classes.PropertyVisibility"/>

    <!-- Rule #10: Document your code -->
    <rule ref="Squiz.Commenting.DocCommentAlignment"/>
    <!--rule ref="Squiz.Commenting.ClassComment"/-->
    <rule ref="Squiz.Commenting.VariableComment"/>
    <rule ref="Squiz.Commenting.FunctionComment"/>
</ruleset>
{'fraction_non_alphanumeric': 0.1454778156996587, 'fraction_numerical': 0.011092150170648464, 'mean_word_length': 3.6425742574257427, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 2, '>': 89, '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': '7406601', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1288, 'n_words': 345}