else: sizeFailureSeqDecisions += [len(execution['decisions'])] index += 1 average['nbPassedSeqLaps'] += [nbPassedSeqLaps] average['nbDetectedDecision'] += [len(data['searchSpace'])] average['nbExploredDecision'] += [len(exploredDecisions)] average['nbExploredLocation'] += [len(exploredLocations)] average['totalSize'] += [len(data['executions'])] if len(sizeCorrectSeqDecisions) > 0: average['minSizeCorrectSeqDecision'] += [min(sizeCorrectSeqDecisions)] average['maxSizeCorrectSeqDecision'] += [max(sizeCorrectSeqDecisions)] average['medSizeCorrectSeqDecision'] += [med(sizeCorrectSeqDecisions)] if len(sizeFailureSeqDecisions) > 0: average['minSizeFailureSeqDecision'] += [min(sizeFailureSeqDecisions)] average['maxSizeFailureSeqDecision'] += [max(sizeFailureSeqDecisions)] average['medSizeFailureSeqDecision'] += [med(sizeFailureSeqDecisions)] print "%s & %s & %s & %s & %s & %s & %s & %s & %s & %s \\\\" % ( "{:15}".format(bugTitle), numToStr(len(exploredLocations)), numToStr(len(data['executions'])), numToStr(nbPassedSeqLaps), numToStr(min(sizeCorrectSeqDecisions) if len(sizeCorrectSeqDecisions) > 0 else None), numToStr(med(sizeCorrectSeqDecisions) if len(sizeCorrectSeqDecisions) > 0 else None), numToStr(max(sizeCorrectSeqDecisions) if len(sizeCorrectSeqDecisions) > 0 else None), numToStr(min(sizeFailureSeqDecisions) if len(sizeFailureSeqDecisions) > 0 else None),
maxLearn = learn if learn < minLearn: minLearn = learn diffLearn = maxLearn - minLearn if diffLearn <= 5: nbBeforeStabilization = index - 7 if len(exploredDecisions) > maxExploredDecision: maxExploredDecision = len(exploredDecisions) nbLapsBeforeMaxDecision = index + 1 if len(sizeCorrectSeqDecisions) is not 0: seedMinSizeCorrectSeqDecisions += [min(sizeCorrectSeqDecisions)] seedMaxSizeCorrectSeqDecisions += [max(sizeCorrectSeqDecisions)] seedMedSizeCorrectSeqDecisions += [med(sizeCorrectSeqDecisions)] if len(sizeFailureSeqDecisions) is not 0: seedMinFailureSeqDecisions += [min(sizeFailureSeqDecisions)] seedMaxFailureSeqDecisions += [max(sizeFailureSeqDecisions)] seedMedFailureSeqDecisions += [med(sizeFailureSeqDecisions)] if nbBeforeSuccess != -1: seedNbBeforeSuccess += [nbBeforeSuccess] if nbBeforeStabilization != -1: seedNbBeforeStabilization += [nbBeforeStabilization] seedNbBeforeMaxExploration += [nbLapsBeforeMaxDecision] seedCountPassedLaps += [countPassedLaps] seedNbPassedSeqLaps += [nbPassedSeqLaps] seedExploredDecisions += [len(exploredDecisions)] seedExploredSeqDecisions += [len(exploredSeqDecisions)] seedExploredLocations += [len(exploredLocations)]