<commit_before>module LetsCert

  # Mixin for IOPmugin subclasses that handle files
  # @author <NAME>
  module FileIOPluginMixin

    # Load data from file named +#name+
    # @return [Hash]
    def load
      logger.debug { "Loading #{@name}" }

      begin
        content = File.read(@name)
      rescue Errno::ENOENT => ex
        logger.info { "no #{@name} file" }
        return self.class.empty_data
      end

      load_from_content(content)
    end

    # @abstract<commit_msg>FileIOPluginMixin#load: remove useless ex variable assignment in rescue clause.<commit_after>module LetsCert

  # Mixin for IOPmugin subclasses that handle files
  # @author <NAME>
  module FileIOPluginMixin

    # Load data from file named +#name+
    # @return [Hash]
    def load
      logger.debug { "Loading #{@name}" }

      begin
        content = File.read(@name)
      rescue Errno::ENOENT
        logger.info { "no #{@name} file" }
        return self.class.empty_data
      end

      load_from_content(content)
    end

    # @abstract
{'fraction_non_alphanumeric': 0.09555984555984556, 'fraction_numerical': 0.0, 'mean_word_length': 2.5513698630136985, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '817727', 'n_tokens_mistral': 322, 'n_tokens_neox': 317, 'n_words': 90}