<commit_before>module Sitefull
  module Provider
    module Mock
      def regions
        Array.new(5) { |i| OpenStruct.new(id: "region-id-#{i}", name: "region-name-#{i}") }
      end

      def machine_types(_region)
        Array.new(5) { |i| OpenStruct.new(id: "machine-type-id-#{i}", name: "machine-type-name-#{i}") }
      end

      def images(_os)
        Array.new(5) { |i| OpenStruct.new(id: "image-id-#{i}", name: "image-name-#{i}") }
      end

      def create_network
        'network-id'
      end

      def create_key(name)
        OpenStruct.new(name: name, data: 'key-data')
      end

      def create_firewall_rules(_)
      end

      def create_instance(_)
        'instance-id'
      end

      def valid?
        true
      end
    end
  end
end<commit_msg>Fixing CodeClimate issues<commit_after>module Sitefull
  module Provider
    module Mock
      def regions
        mock_list 'region'
      end

      def machine_types(_region)
        mock_list 'machine-type'
      end

      def images(_os)
        mock_list 'image'
      end

      def create_network
        'network-id'
      end

      def create_key(name)
        OpenStruct.new(name: name, data: 'key-data')
      end

      def create_firewall_rules(_)
      end

      def create_instance(_)
        'instance-id'
      end

      def valid?
        true
      end

      private
      def mock_list(prefix)
        Array.new(5) { |i| OpenStruct.new(id: "#{prefix}-id-#{i}", name: "#{prefix}-name-#{i}") }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11984282907662082, 'fraction_numerical': 0.0026195153896529143, 'mean_word_length': 1.8994307400379506, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6183254', 'n_tokens_mistral': 512, 'n_tokens_neox': 506, 'n_words': 115}