<commit_before>require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'
require File.dirname(__FILE__) + "/../stream_progress_methods.rb"

class SCM::Git::Fetch < SCM::Git
  include StreamProgressMethods
  def initialize
    chdir_base
  end
  
  def run
    c_branch = current_branch
    branch_remote_config_key = "branch.#{c_branch}.remote"
    branch_remote_merge_key = "branch.#{c_branch}.merge"
    branch_default_source = self[branch_remote_config_key]
    branch_default_merge = self[branch_remote_merge_key]
    sources_with_default = sources
    sources_with_default = ([branch_default_source] + sources_with_default).uniq if branch_default_source
    
    TextMate::UI.request_item(:title => "Fetch", :prompt => "Fetch from which shared repository?", :items => sources_with_default) do |source|
      puts htmlize(command("fetch", source))
    end
  end
  
  def fetch
  end
  
  def process_fetch(stream, callbacks = {})
  end
end
<commit_msg>fetching from ... done msg<commit_after>require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'
require File.dirname(__FILE__) + "/../stream_progress_methods.rb"

class SCM::Git::Fetch < SCM::Git
  include StreamProgressMethods
  def initialize
    chdir_base
  end
  
  def run
    c_branch = current_branch
    branch_remote_config_key = "branch.#{c_branch}.remote"
    branch_remote_merge_key = "branch.#{c_branch}.merge"
    branch_default_source = self[branch_remote_config_key]
    branch_default_merge = self[branch_remote_merge_key]
    sources_with_default = sources
    sources_with_default = ([branch_default_source] + sources_with_default).uniq if branch_default_source
    
    TextMate::UI.request_item(:title => "Fetch", :prompt => "Fetch from which shared repository?", :items => sources_with_default) do |source|
      puts "<h2>Fetching from #{source}</h2>"
      flush
      puts htmlize(command("fetch", source))
      puts "<p>Done.</p>"
      flush
    end
  end
  
  def fetch
  end
  
  def process_fetch(stream, callbacks = {})
  end
end

{'fraction_non_alphanumeric': 0.10866299449173761, 'fraction_numerical': 0.00100150225338007, 'mean_word_length': 4.244094488188976, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '492754', 'n_tokens_mistral': 644, 'n_tokens_neox': 644, 'n_words': 129}