<commit_before>module Postgresql
  module Check
    module Table
      def check(condition, options)
        @base.add_check(@table_name, condition, options)
      end

      def remove_check(options)
        @base.remove_check(@table_name, options)
      end
    end
  end
end<commit_msg>Update ActiveRecord 4.2 internal table @name reference<commit_after>module Postgresql
  module Check
    module Table
      def check(condition, options)
        @base.add_check(check_table_name, condition, options)
      end

      def remove_check(options)
        @base.remove_check(check_table_name, options)
      end

      private
      # @api private
      def check_table_name
        if ActiveRecord::VERSION::STRING > "4.2"
          @name
        else
          @table_name
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06633906633906633, 'fraction_numerical': 0.004914004914004914, 'mean_word_length': 2.353909465020576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6061164', 'n_tokens_mistral': 238, 'n_tokens_neox': 233, 'n_words': 60}