<commit_before>module Serverspec
  module Type
    class Package < Base
      def installed?(provider, version)
        if provider.nil?
          @runner.check_installed(@name, version)
        else
          check_method = "check_installed_by_#{provider}".to_sym

          unless @runner.respond_to?(check_method) || commands.respond_to?(check_method)
            raise ArgumentError.new("`be_installed` matcher doesn't support #{provider}")
          end

          @runner.send(check_method, @name, version)
        end
      end
<commit_msg>Change the method name to call specinfra<commit_after>module Serverspec
  module Type
    class Package < Base
      def installed?(provider, version)
        if provider.nil?
          @runner.check_package_installed(@name, version)
        else
          check_method = "check_installed_by_#{provider}".to_sym

          unless @runner.respond_to?(check_method) || commands.respond_to?(check_method)
            raise ArgumentError.new("`be_installed` matcher doesn't support #{provider}")
          end

          @runner.send(check_method, @name, version)
        end
      end

{'fraction_non_alphanumeric': 0.09211691762621789, 'fraction_numerical': 0.0, 'mean_word_length': 2.7293729372937294, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1660383', 'n_tokens_mistral': 315, 'n_tokens_neox': 311, 'n_words': 70}