<commit_before>module Push
  module Daemon
    module DatabaseReconnectable
      def adaptor_errors
        errors = [ActiveRecord::StatementInvalid, ActiveRecord::ConnectionNotEstablished]
        errors << PG::Error if defined?(PG::Error)
        errors << PGError if defined?(PGError)
        errors << Mysql2::Error if defined?(Mysql2)
        errors
      end<commit_msg>prevent duplicate errors from being loaded<commit_after>module Push
  module Daemon
    module DatabaseReconnectable
      def adaptor_errors
        errors = [ActiveRecord::StatementInvalid, ActiveRecord::ConnectionNotEstablished]
        if defined?(::PG::Error)
          errors << ::PG::Error
        elsif defined?(::PGError)
          errors << ::PGError
        end
        errors << ::Mysql2::Error if defined?(::Mysql2)
        errors
      end
{'fraction_non_alphanumeric': 0.09156626506024096, 'fraction_numerical': 0.004819277108433735, 'mean_word_length': 3.0144927536231885, 'pattern_counts': {'":': 0, '<': 15, '<?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': '4216884', 'n_tokens_mistral': 220, 'n_tokens_neox': 222, 'n_words': 55}