def getWindowAnalyzeFileGivenText(fileName, gcodeText, repository=None):
 print ''
 print ''
 print ('Statistics are being generated for the file ' + archive.getSummarizedFileName(fileName))
 if (repository == None):
  repository = settings.getReadRepository(StatisticRepository())
 skein = StatisticSkein()
 statisticGcode = skein.getCraftedGcode(gcodeText, repository)
 if repository.printStatistics.value:
  print statisticGcode
 if repository.saveStatistics.value:
  archive.writeFileMessageEnd('.txt', fileName, statisticGcode, 'The statistics file is saved as ')

def getWindowAnalyzeFileGivenText ( fileName , gcodeText , repository = None ) : print '' print '' print ( 'Statistics are being generated for the file ' + archive . getSummarizedFileName ( fileName ) ) if ( repository == None ) : repository = settings . getReadRepository ( StatisticRepository ( ) ) skein = StatisticSkein ( ) statisticGcode = skein . getCraftedGcode ( gcodeText , repository ) if repository . printStatistics . value : print statisticGcode if repository . saveStatistics . value : archive . writeFileMessageEnd ( '.txt' , fileName , statisticGcode , 'The statistics file is saved as ' )
write scalable vector graphics for a gcode file given the settings .