<commit_before>module Pod
  class Command
    module Project
      def self.options
        [
          ["--no-clean",     "Leave SCM dirs like `.git' and `.svn' intact after downloading"],
          ["--no-doc",       "Skip documentation generation with appledoc"],
          ["--no-integrate", "Skip integration of the Pods libraries in the Xcode project(s)"],
          ["--no-update",    "Skip running `pod repo update` before install"],
        ].concat(super)
      end

      def initialize(argv)
        config.clean             = argv.flag?('clean', true)
        config.generate_docs     = argv.flag?('doc', true)
        config.integrate_targets = argv.flag?('integrate', true)
        config.skip_repo_update  = !argv.flag?('update', true)
        super
      end

      def run_install_with_update(update)
        sandbox   = Sandbox.new(config.project_pods_root)
        installer = Installer.new(sandbox, config.podfile, config.lockfile)
        installer.update_mode = update
        installer.install!
      end
    end

    class Install < Command<commit_msg>[Command::Project] Include options in subcommands.<commit_after>module Pod
  class Command
    module Project
      module Options
        def options
          [
            ["--no-clean",     "Leave SCM dirs like `.git' and `.svn' intact after downloading"],
            ["--no-doc",       "Skip documentation generation with appledoc"],
            ["--no-integrate", "Skip integration of the Pods libraries in the Xcode project(s)"],
            ["--no-update",    "Skip running `pod repo update` before install"],
          ].concat(super)
        end
      end

      def self.included(base)
        base.extend Options
      end

      def initialize(argv)
        config.clean             = argv.flag?('clean', true)
        config.generate_docs     = argv.flag?('doc', true)
        config.integrate_targets = argv.flag?('integrate', true)
        config.skip_repo_update  = !argv.flag?('update', true)
        super
      end

      def run_install_with_update(update)
        sandbox   = Sandbox.new(config.project_pods_root)
        installer = Installer.new(sandbox, config.podfile, config.lockfile)
        installer.update_mode = update
        installer.install!
      end
    end

    class Install < Command
{'fraction_non_alphanumeric': 0.10947002606429192, 'fraction_numerical': 0.0, 'mean_word_length': 2.180939226519337, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5607121', 'n_tokens_mistral': 654, 'n_tokens_neox': 637, 'n_words': 167}