def printCurrentState(self) :
		"""prints the current state stored in the recorder"""
		if self.length > 0 :
			print "\n==>rec: ggplot2, commit %s, pid: %s:" % (self.length, os.getpid())
			for setName, scores in self.bestScores.iteritems() :
				print "  |-%s set" % setName
				for outputName in scores :
					if self.currentScores[setName][outputName] == self.bestScores[setName][outputName][0] :
						highlight = "+best+"
					else :
						score, epoch = self.bestScores[setName][outputName]
						highlight = (score, epoch) % "(best: %s @ commit: %s)"
					
					print "    |->%s: %s %s" % (outputName, self.currentScores[setName][outputName], highlight)
		else :
			print "==>rec: ggplot2, nothing to show yet"
		
		sys.stdout.flush()
dataset/ETHPy150Open tariqdaouda/Mariana/Mariana/training/recorders.py/printCurrentState/swapped operands of `%`