<commit_before>module Inch
  module Evaluation
    module Role
      module Method
        class WithoutParameters < Base
        end
        class WithManyParameters < Base
          # +priority
          def priority
            +2
          end
        end
        class WithManyLines < Base
          # +priority
          def priority
            +2
          end
        end
        class WithBangName < Base
          # +priority
          def priority
            +3
          end
        end
        class HasAlias < Base
          # +priority
          def priority
            +2
          end
        end

        class WithReturnType < Base
        end
        class WithoutReturnType < Missing
          def suggestion
            "Describe the return type of '#{object.name}'"
          end
        end

        class Overridden < Base
          # This role doesnot assign a score.
          def score
            nil
          end

          # This role sets a min_score.
          def min_score
            @value.to_f
          end
        end
      end
    end
  end
end<commit_msg>Change priority of overriding methods<commit_after>module Inch
  module Evaluation
    module Role
      module Method
        class WithoutParameters < Base
        end
        class WithManyParameters < Base
          # +priority
          def priority
            +2
          end
        end
        class WithManyLines < Base
          # +priority
          def priority
            +2
          end
        end
        class WithBangName < Base
          # +priority
          def priority
            +3
          end
        end
        class HasAlias < Base
          # +priority
          def priority
            +2
          end
        end

        class WithReturnType < Base
        end
        class WithoutReturnType < Missing
          def suggestion
            "Describe the return type of '#{object.name}'"
          end
        end

        class Overridden < Base
          # It seems more important to document the overridden method,
          # than the overriding one
          def priority
            -2
          end

          # This role doesnot assign a score.
          def score
            nil
          end

          # This role sets a min_score.
          def min_score
            @value.to_f
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.03269069572506287, 'fraction_numerical': 0.0037720033528918693, 'mean_word_length': 1.0332197614991483, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5609617', 'n_tokens_mistral': 565, 'n_tokens_neox': 550, 'n_words': 204}