<commit_before>module Match
  class Nuke
    attr_accessor :params
    attr_accessor :type

    attr_accessor :certs
    attr_accessor :profiles
    attr_accessor :files

    def run(params, type: nil)
      self.params = params
      self.type = type

      params[:workspace] = GitHelper.clone(params[:git_url])

      had_app_identifier = self.params[:app_identifier]
      self.params[:app_identifier] = '' # we don't really need a value here
      FastlaneCore::PrintTable.print_values(config: params,
                                         hide_keys: [:app_identifier, :workspace],
                                             title: "Summary for match nuke #{Match::VERSION}")

      prepare_list
      print_tables

      if params[:readonly]
        UI.user_error!("`match nuke` doesn't delete anything when running with --readonly enabled")
      end

      if (self.certs + self.profiles + self.files).count > 0
        UI.error "---"
        UI.error "Are you sure you want to completely delete and revoke all the"
        UI.error "certificates and provisioning profiles listed above? (y/n)"<commit_msg>Fixed cloning for nuke command<commit_after>module Match
  class Nuke
    attr_accessor :params
    attr_accessor :type

    attr_accessor :certs
    attr_accessor :profiles
    attr_accessor :files

    def run(params, type: nil)
      self.params = params
      self.type = type

      params[:workspace] = GitHelper.clone(params[:git_url], params[:shallow_clone])

      had_app_identifier = self.params[:app_identifier]
      self.params[:app_identifier] = '' # we don't really need a value here
      FastlaneCore::PrintTable.print_values(config: params,
                                         hide_keys: [:app_identifier, :workspace],
                                             title: "Summary for match nuke #{Match::VERSION}")

      prepare_list
      print_tables

      if params[:readonly]
        UI.user_error!("`match nuke` doesn't delete anything when running with --readonly enabled")
      end

      if (self.certs + self.profiles + self.files).count > 0
        UI.error "---"
        UI.error "Are you sure you want to completely delete and revoke all the"
        UI.error "certificates and provisioning profiles listed above? (y/n)"
{'fraction_non_alphanumeric': 0.09046991655687307, 'fraction_numerical': 0.000878348704435661, 'mean_word_length': 2.379821958456973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5659621', 'n_tokens_mistral': 632, 'n_tokens_neox': 610, 'n_words': 178}