old_contents: from __future__ import absolute_import
  from git.repo import Repo
  from kenja.detection.extract_method import detect_extract_method
  import argparse
  
  def format_for_umldiff(a_commit, b_commit, org_commit, a_package, b_package, c, m, method, sim):
      target_method_info = ['jedit']
      if a_package:
          target_method_info.append(a_package)
      target_method_info.extend((c, m))
      target_method = '.'.join(target_method_info)
      extracted_method_info = ['jedit']
      if b_package:
          extracted_method_info.append(b_package)
      extracted_method_info.extend((c, method))
      extracted_method = '.'.join(extracted_method_info)
      return '"%s","%s","%s","%s","%s","%s"' % (a_commit, b_commit, org_commit, target_method, extracted_method, sim)
  
  if __name__ == '__main__':
      parser = argparse.ArgumentParser(description='Extract Method Detector')
      parser.add_argument('historage_dir',
              help='path of historage repository dir')
      args = parser.parse_args()
  
      historage = Repo(args.historage_dir)
      extract_method_information = detect_extract_method(historage)
  
      candidate_revisions = set()
      for a_commit, b_commit, org_commit, a_package, b_package, c, m, method, sim in extract_method_information:
          candidate_revisions.add(b_commit)
          print format_for_umldiff(a_commit, b_commit, org_commit, a_package, b_package, c, m, method, sim)
  
      print 'candidates:', len(extract_method_information)
      print 'candidate revisions:', len(candidate_revisions)
new_contents: from __future__ import absolute_import
  from git.repo import Repo
  from kenja.detection.extract_method import detect_extract_method
  import argparse
  
  def format_for_umldiff(package_prefix, a_commit, b_commit, org_commit, a_package, b_package, c, m, method, sim):
      target_method_info = [package_prefix]
      if a_package:
          target_method_info.append(a_package)
      target_method_info.extend((c, m))
      target_method = '.'.join(target_method_info)
      extracted_method_info = [package_prefix]
      if b_package:
          extracted_method_info.append(b_package)
      extracted_method_info.extend((c, method))
      extracted_method = '.'.join(extracted_method_info)
      return '"%s","%s","%s","%s","%s","%s"' % (a_commit, b_commit, org_commit, target_method, extracted_method, sim)
  
  if __name__ == '__main__':
      parser = argparse.ArgumentParser(description='Extract Method Detector')
      parser.add_argument('historage_dir',
              help='path of historage repository dir')
      args = parser.parse_args()
  
      historage = Repo(args.historage_dir)
      extract_method_information = detect_extract_method(historage)
  
      candidate_revisions = set()
      for a_commit, b_commit, org_commit, a_package, b_package, c, m, method, sim in extract_method_information:
          candidate_revisions.add(b_commit)
          print format_for_umldiff('jedit', a_commit, b_commit, org_commit, a_package, b_package, c, m, method, sim)
  
      print 'candidates:', len(extract_method_information)
      print 'candidate revisions:', len(candidate_revisions)
subject: add parameter to format_for_umldiff