<commit_before># coding: utf-8

module Thinreports
  module Layout

    module Version
      REQUIRED_RULES = ['>= 0.7.7.0', '< 1.0.0']

      # @param [String] version
      # @return [Boolean]
      def self.compatible?(version)
        compare(version, *REQUIRED_RULES)
      end

      # @param [String] base
      # @param [Array<String>] rules
      # @return [Boolean]
      def self.compare(base, *rules)
        rules.all? do |rule|
          op, ver = rule.split(' ')
          comparable_version(base).send(op.to_sym, comparable_version(ver))
        end
      end

      # @return [String]
      def self.inspect_required_rules
        '(' + REQUIRED_RULES.join(' and ') + ')'
      end

      # @param [String] version
      # @return [String]<commit_msg>Drop support old format that is generated with Editor v0.7 or lower<commit_after># coding: utf-8

module Thinreports
  module Layout

    module Version
      REQUIRED_RULES = ['>= 0.8.0', '< 1.0.0']

      # @param [String] version
      # @return [Boolean]
      def self.compatible?(version)
        compare(version, *REQUIRED_RULES)
      end

      # @param [String] base
      # @param [Array<String>] rules
      # @return [Boolean]
      def self.compare(base, *rules)
        rules.all? do |rule|
          op, ver = rule.split(' ')
          comparable_version(base).send(op.to_sym, comparable_version(ver))
        end
      end

      # @return [String]
      def self.inspect_required_rules
        '(' + REQUIRED_RULES.join(' and ') + ')'
      end

      # @param [String] version
      # @return [String]
{'fraction_non_alphanumeric': 0.1297229219143577, 'fraction_numerical': 0.010705289672544081, 'mean_word_length': 2.2296747967479673, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7568311', 'n_tokens_mistral': 526, 'n_tokens_neox': 509, 'n_words': 120}