original_docstring: 
  		Perform analysis and interpretation.
  
  		Returns a descriptive string containing the results and attempted interpretation.
  		
docstring: Perform analysis and interpretation.
  Returns a descriptive string containing the results and attempted interpretation.
docstring_tokens: Perform analysis and interpretation . Returns a descriptive string containing the results and attempted interpretation .
code: def analyze(self):
  		'''
  		Perform analysis and interpretation.
  
  		Returns a descriptive string containing the results and attempted interpretation.
  		'''
  		i = 0
  		num_error = 0
  		analyzer_results = []
  
  		if self.binwalk:
  			self.binwalk.display.header(file_name=self.fp.name, description=self.DESCRIPTION)
  
  		chi = ChiSquare()
  
  		while i < self.length:
  			j = 0
  			(d, dlen) = self.fp.read_block()
  
  			while j < dlen:
  				chi.reset()
  
  				data = d[j:j+self.BLOCK_SIZE]
  				if len(data) < self.BLOCK_SIZE:
  					break
  
  				chi.update(data)
  
  				if chi.chisq() >= self.CHI_CUTOFF:
  					num_error += 1
  				
  				j += self.BLOCK_SIZE
  
  			i += dlen
  
  		if num_error > 0:
  			verdict = 'Moderate entropy data, best guess: compressed'
  		else:
  			verdict = 'High entropy data, best guess: encrypted'
  
  		result = [{'offset' : self.start, 'description' : '%s, size: %d, %d low entropy blocks' % (verdict, self.length, num_error)}]
  
  		if self.binwalk:
  			self.binwalk.display.results(self.start, result)
  			self.binwalk.display.footer()
  
  		return result
code_tokens: def analyze ( self ) : i = 0 num_error = 0 analyzer_results = [ ] if self . binwalk : self . binwalk . display . header ( file_name = self . fp . name , description = self . DESCRIPTION ) chi = ChiSquare ( ) while i < self . length : j = 0 ( d , dlen ) = self . fp . read_block ( ) while j < dlen : chi . reset ( ) data = d [ j : j + self . BLOCK_SIZE ] if len ( data ) < self . BLOCK_SIZE : break chi . update ( data ) if chi . chisq ( ) >= self . CHI_CUTOFF : num_error += 1 j += self . BLOCK_SIZE i += dlen if num_error > 0 : verdict = 'Moderate entropy data, best guess: compressed' else : verdict = 'High entropy data, best guess: encrypted' result = [ { 'offset' : self . start , 'description' : '%s, size: %d, %d low entropy blocks' % ( verdict , self . length , num_error ) } ] if self . binwalk : self . binwalk . display . results ( self . start , result ) self . binwalk . display . footer ( ) return result
short_docstring: Perform analysis and interpretation.
short_docstring_tokens: Perform analysis and interpretation .
comment: '''
  		Perform analysis and interpretation.
  
  		Returns a descriptive string containing the results and attempted interpretation.
  		'''