original_docstring: 
      Download and extract the STL-10 dataset
      :return: None
      
docstring: Download and extract the STL-10 dataset
docstring_tokens: Download and extract the STL - 10 dataset
code: def download_and_extract():
      """
      Download and extract the STL-10 dataset
      :return: None
      """
      dest_directory = DATA_DIR
      if not os.path.exists(dest_directory):
          os.makedirs(dest_directory)
      filename = DATA_URL.split('/')[-1]
      filepath = os.path.join(dest_directory, filename)
      if not os.path.exists(filepath):
          def _progress(count, block_size, total_size):
              sys.stdout.write('\rDownloading %s %.2f%%' % (filename,
                                                            float(count * block_size) / float(total_size) * 100.0))
              sys.stdout.flush()
  
          filepath, _ = urllib.urlretrieve(DATA_URL, filepath, reporthook=_progress)
          print('Downloaded', filename)
          tarfile.open(filepath, 'r:gz').extractall(dest_directory)
code_tokens: def download_and_extract ( ) : dest_directory = DATA_DIR if not os . path . exists ( dest_directory ) : os . makedirs ( dest_directory ) filename = DATA_URL . split ( '/' ) [ - 1 ] filepath = os . path . join ( dest_directory , filename ) if not os . path . exists ( filepath ) : def _progress ( count , block_size , total_size ) : sys . stdout . write ( '\rDownloading %s %.2f%%' % ( filename , float ( count * block_size ) / float ( total_size ) * 100.0 ) ) sys . stdout . flush ( ) filepath , _ = urllib . urlretrieve ( DATA_URL , filepath , reporthook = _progress ) print ( 'Downloaded' , filename ) tarfile . open ( filepath , 'r:gz' ) . extractall ( dest_directory )
short_docstring: Download and extract the STL-10 dataset
short_docstring_tokens: Download and extract the STL - 10 dataset
comment: """
      Download and extract the STL-10 dataset
      :return: None
      """