<commit_before>module MultiRepo
  class Repo
    attr_accessor :working_copy
    
    def initialize(working_copy)
      @working_copy = working_copy
    end
    
    def exists?
      Dir.exist?("#{@working_copy}/.git")
    end
    
    def fetch
      Git.run(@working_copy, "fetch", true)
      $?.exitstatus == 0
    end
    
    def clone(remote_url)
      Git.run("clone #{remote_url} #{@working_copy}", true)
      $?.exitstatus == 0
    end
    
    def branch(name)
      Branch.new(self, name)
    end
  end
end<commit_msg>We can now obtain Remote instances from a Repo.<commit_after>require_relative "branch"
require_relative "remote"

module MultiRepo
  class Repo
    attr_accessor :working_copy
    
    def initialize(working_copy)
      @working_copy = working_copy
    end
    
    def exists?
      Dir.exist?("#{@working_copy}/.git")
    end
    
    def fetch
      Git.run(@working_copy, "fetch", true)
      $?.exitstatus == 0
    end
    
    def clone(remote_url)
      Git.run("clone #{remote_url} #{@working_copy}", true)
      $?.exitstatus == 0
    end
    
    def branch(name)
      Branch.new(self, name)
    end
    
    def remote(name)
      Remote.new(self, name)
    end
  end
end
{'fraction_non_alphanumeric': 0.10773026315789473, 'fraction_numerical': 0.003289473684210526, 'mean_word_length': 2.307065217391304, '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': '620590', 'n_tokens_mistral': 405, 'n_tokens_neox': 404, 'n_words': 94}