original_docstring:  Uses ctags to generate TAGS file in cmt directory based on cmt show uses
      
docstring: Uses ctags to generate TAGS file in cmt directory based on cmt show uses
docstring_tokens: Uses ctags to generate TAGS file in cmt directory based on cmt show uses
code: def main():
      """ Uses ctags to generate TAGS file in cmt directory based on cmt show uses
      """
      parser = OptionParser()
  
      parser.add_option('--cpp',
                        dest='cpp',
                        action='store_true',
                        default=False,
                        help='tag only c/cpp files (default)')
      parser.add_option('--python',
                        dest='python',
                        action='store_true',
                        default=False,
                        help='tag only python files')
      parser.add_option('--java',
                        dest='java',
                        action='store_true',
                        default=False,
                        help='tag only java files')
      parser.add_option('-n',
                        dest='dry_run',
                        action='store_true',
                        default=False,
                        help='dry run')
  
      (opts, args) = parser.parse_args()
  
      # get the cmt show uses dictionary of programs and paths
      use_dict = parse_uses()
  
      # build the commands
      find_cmd = build_find_cmd(opts, list(use_dict.itervalues()))
      tags_cmd = build_tags_cmd()
  
      print 'Creating TAGS file based on dependencies:'
      print use_dict
  
      if not opts.dry_run:
          find_proc = subprocess.Popen(find_cmd, stdout=subprocess.PIPE)
          tags_proc = subprocess.Popen(tags_cmd, stdin=find_proc.stdout)
  
          tags_proc.communicate()
code_tokens: def main ( ) : parser = OptionParser ( ) parser . add_option ( '--cpp' , dest = 'cpp' , action = 'store_true' , default = False , help = 'tag only c/cpp files (default)' ) parser . add_option ( '--python' , dest = 'python' , action = 'store_true' , default = False , help = 'tag only python files' ) parser . add_option ( '--java' , dest = 'java' , action = 'store_true' , default = False , help = 'tag only java files' ) parser . add_option ( '-n' , dest = 'dry_run' , action = 'store_true' , default = False , help = 'dry run' ) ( opts , args ) = parser . parse_args ( ) use_dict = parse_uses ( ) find_cmd = build_find_cmd ( opts , list ( use_dict . itervalues ( ) ) ) tags_cmd = build_tags_cmd ( ) print 'Creating TAGS file based on dependencies:' print use_dict if not opts . dry_run : find_proc = subprocess . Popen ( find_cmd , stdout = subprocess . PIPE ) tags_proc = subprocess . Popen ( tags_cmd , stdin = find_proc . stdout ) tags_proc . communicate ( )
short_docstring: Uses ctags to generate TAGS file in cmt directory based on cmt show uses
short_docstring_tokens: Uses ctags to generate TAGS file in cmt directory based on cmt show uses
comment: """ Uses ctags to generate TAGS file in cmt directory based on cmt show uses
      """$SEP$# get the cmt show uses dictionary of programs and paths$SEP$# build the commands