<commit_before>module Fastlane
  module Actions
    class CleanCocoapodsCacheAction < Action
      def self.run(params)
        Actions.verify_gem!('cocoapods')

        cmd = ['pod cache clean']

        cmd << params[:name].to_s if params[:name]
        cmd << '--silent' if params[:silent]
        cmd << '--allow-root' if params[:allow_root]
        cmd << '--all'

        Actions.sh(cmd.join(' '))
      end

      def self.description
        'Remove the cache for pods'
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :name,
                                       env_name: "FL_CLEAN_COCOAPODS_CACHE_DEVELOPMENT",
                                       description: "Pod name to be removed from cache",
                                       optional: true,
                                       verify_block: proc do |value|
                                         UI.user_error!("You must specify pod name which should be removed from cache") if value.to_s.empty?
                                       end),
          FastlaneCore::ConfigItem.new(key: :silent,
                                       env_name: "FL_CLEAN_COCOAPODS_CACHE_SILENT",
                                       description: "Show nothing",
                                       type: Boolean,
                                       default_value: false),
          FastlaneCore::ConfigItem.new(key: :allow_root,
                                       env_name: "FL_CLEAN_COCOAPODS_CACHE_ALLOW_ROOT",
                                       description: "Allows CocoaPods to run as root",
                                       type: Boolean,
                                       default_value: false)
        ]
      end

      def self.authors
        ["alexmx"]
      end

      def self.is_supported?(platform)
        [:ios, :mac].include?(platform)
      end

      def self.example_code
        [
          'clean_cocoapods_cache',
          'clean_cocoapods_cache(name: "CACHED_POD")'
        ]
      end

      def self.category
        :building
      end
    end
  end
end
<commit_msg>[clean_cocoapods_cache] Add verbose option (#19188)<commit_after>module Fastlane
  module Actions
    class CleanCocoapodsCacheAction < Action
      def self.run(params)
        Actions.verify_gem!('cocoapods')

        cmd = ['pod cache clean']

        cmd << params[:name].to_s if params[:name]
        cmd << '--verbose' if params[:verbose]
        cmd << '--silent' if params[:silent]
        cmd << '--allow-root' if params[:allow_root]
        cmd << '--all'

        Actions.sh(cmd.join(' '))
      end

      def self.description
        'Remove the cache for pods'
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :name,
                                       env_name: "FL_CLEAN_COCOAPODS_CACHE_DEVELOPMENT",
                                       description: "Pod name to be removed from cache",
                                       optional: true,
                                       verify_block: proc do |value|
                                         UI.user_error!("You must specify pod name which should be removed from cache") if value.to_s.empty?
                                       end),
          FastlaneCore::ConfigItem.new(key: :verbose,
                                       env_name: "FL_CLEAN_COCOAPODS_CACHE_VERBOSE",
                                       description: "Show more debugging information",
                                       type: Boolean,
                                       default_value: false),
          FastlaneCore::ConfigItem.new(key: :silent,
                                       env_name: "FL_CLEAN_COCOAPODS_CACHE_SILENT",
                                       description: "Show nothing",
                                       type: Boolean,
                                       default_value: false),
          FastlaneCore::ConfigItem.new(key: :allow_root,
                                       env_name: "FL_CLEAN_COCOAPODS_CACHE_ALLOW_ROOT",
                                       description: "Allows CocoaPods to run as root",
                                       type: Boolean,
                                       default_value: false)
        ]
      end

      def self.authors
        ["alexmx"]
      end

      def self.is_supported?(platform)
        [:ios, :mac].include?(platform)
      end

      def self.example_code
        [
          'clean_cocoapods_cache',
          'clean_cocoapods_cache(name: "CACHED_POD")'
        ]
      end

      def self.category
        :building
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.07926699339441722, 'fraction_numerical': 0.001065416577881952, 'mean_word_length': 1.173148148148148, 'pattern_counts': {'":': 0, '<': 23, '<?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': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5103437', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1172, 'n_words': 263}