<commit_before>module MGit
  class CloneCommand < Command
    def execute(args)
      log = System.git("clone #{args.join(' ')}", raise: true)
      
      m = [log.stdout, log.stderr].find do |l|
        /Cloning into '(.*)'/.match(l.split("\n").first)
      end

      fail 'Failed to determine repository directory.' unless m
      
      Command.execute('add', [m[1]])
    end

    def arity
      [1, nil]
    end

    def usage
      'clone [options] <url> [<directory>]'
    end

    def description
      'clone repository and add to mgit'
    end

    register_command :clone

    private

    def option?(arg)
      arg.start_with?('-')
    end
  end
end<commit_msg>Clone: Remove unused method.<commit_after>module MGit
  class CloneCommand < Command
    def execute(args)
      log = System.git("clone #{args.join(' ')}", raise: true)
      
      m = [log.stdout, log.stderr].find do |l|
        /Cloning into '(.*)'/.match(l.split("\n").first)
      end

      fail 'Failed to determine repository directory.' unless m
      
      Command.execute('add', [m[1]])
    end

    def arity
      [1, nil]
    end

    def usage
      'clone [options] <url> [<directory>]'
    end

    def description
      'clone repository and add to mgit'
    end

    register_command :clone
  end
end
{'fraction_non_alphanumeric': 0.1295296838858905, 'fraction_numerical': 0.0030840400925212026, 'mean_word_length': 2.1658536585365855, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '1750673', 'n_tokens_mistral': 423, 'n_tokens_neox': 406, 'n_words': 121}