parameters: (dpath,ga,bestin)
docstring: this function performs heavy mutation on the current generation.
docstring_summary: this function performs heavy mutation on the current generation.
docstring_tokens: this function performs heavy mutation on the current generation .
function: def heavyMutate(dpath,ga,bestin):
      ''' this function performs heavy mutation on the current generation.
  '''
      files=os.listdir(dpath)
      print "starting heavy mutation..."
      for fl in files:
          if fl in bestin:
              continue
          tpath=os.path.join(dpath,fl)
          fd=open(tpath,'r+b')
          p=fd.read()
          ch=ga.double_full_mutate(p,fl)
          ch=taint_based_change(ch,fl)
          fd.seek(0)
          fd.truncate()
          fd.write(ch)
          fd.close()
function_tokens: def heavyMutate ( dpath , ga , bestin ) : files = os . listdir ( dpath ) print "starting heavy mutation..." for fl in files : if fl in bestin : continue tpath = os . path . join ( dpath , fl ) fd = open ( tpath , 'r+b' ) p = fd . read ( ) ch = ga . double_full_mutate ( p , fl ) ch = taint_based_change ( ch , fl ) fd . seek ( 0 ) fd . truncate ( ) fd . write ( ch ) fd . close ( )