original_docstring: unzip all the file in the root directory
docstring: unzip all the file in the root directory
docstring_tokens: unzip all the file in the root directory
code: def uncompress_file(self, num_zipfiles):
          uncompress_tool = uncompressor(
              urls=urls, savepath=self.dataset_root, print_progress=True)
          """unzip all the file in the root directory"""
          zipfiles = glob.glob(os.path.join(self.dataset_root, "*.zip"))
  
          assert len(zipfiles) == num_zipfiles, print(
              "The file directory should include {} zip file, but there is only {}"
              .format(num_zipfiles, len(zipfiles)))
  
          for f in zipfiles:
              extract_path = os.path.join(self.raw_data_path,
                                          f.split("/")[-1].split('.')[0])
              uncompress_tool._uncompress_file(
                  f, extract_path, delete_file=False, print_progress=True)
code_tokens: def uncompress_file ( self , num_zipfiles ) : uncompress_tool = uncompressor ( urls = urls , savepath = self . dataset_root , print_progress = True ) zipfiles = glob . glob ( os . path . join ( self . dataset_root , "*.zip" ) ) assert len ( zipfiles ) == num_zipfiles , print ( "The file directory should include {} zip file, but there is only {}" . format ( num_zipfiles , len ( zipfiles ) ) ) for f in zipfiles : extract_path = os . path . join ( self . raw_data_path , f . split ( "/" ) [ - 1 ] . split ( '.' ) [ 0 ] ) uncompress_tool . _uncompress_file ( f , extract_path , delete_file = False , print_progress = True )
short_docstring: unzip all the file in the root directory
short_docstring_tokens: unzip all the file in the root directory
comment: """unzip all the file in the root directory"""