def computeCompressionRate(meta):
 if ((not meta.has('file_size')) or (not meta.get('compr_size', 0))):
  return
 file_size = meta.get('file_size')
 if (not file_size):
  return
 meta.compr_rate = (float(file_size) / meta.get('compr_size'))

def computeCompressionRate ( meta ) : if ( ( not meta . has ( 'file_size' ) ) or ( not meta . get ( 'compr_size' , 0 ) ) ) : return file_size = meta . get ( 'file_size' ) if ( not file_size ) : return meta . compr_rate = ( float ( file_size ) / meta . get ( 'compr_size' ) )
compute compression rate .