parameters: (self, test, test_name, tests)
docstring: Prune tests where all runs pass or tests that no longer exist and
      truncate all results to maxNumberOfBuilds.
  
      Args:
        test: ResultsAndTimes object for this test.
        test_name: Name of the test.
        tests: The JSON object with all the test results for this builder.
docstring_summary: Prune tests where all runs pass or tests that no longer exist and
      truncate all results to maxNumberOfBuilds.
docstring_tokens: Prune tests where all runs pass or tests that no longer exist and truncate all results to maxNumberOfBuilds .
function: def _NormalizeResultsJSON(self, test, test_name, tests):
      """ Prune tests where all runs pass or tests that no longer exist and
      truncate all results to maxNumberOfBuilds.
  
      Args:
        test: ResultsAndTimes object for this test.
        test_name: Name of the test.
        tests: The JSON object with all the test results for this builder.
      """
      test[self.RESULTS] = self._RemoveItemsOverMaxNumberOfBuilds(
          test[self.RESULTS])
      test[self.TIMES] = self._RemoveItemsOverMaxNumberOfBuilds(
          test[self.TIMES])
  
      is_all_pass = self._IsResultsAllOfType(test[self.RESULTS],
                                             self.PASS_RESULT)
      is_all_no_data = self._IsResultsAllOfType(test[self.RESULTS],
                                                self.NO_DATA_RESULT)
      max_time = max([test_time[1] for test_time in test[self.TIMES]])
  
      # Remove all passes/no-data from the results to reduce noise and
      # filesize. If a test passes every run, but takes > MIN_TIME to run,
      # don't throw away the data.
      if is_all_no_data or (is_all_pass and max_time <= self.MIN_TIME):
        del tests[test_name]
function_tokens: def _NormalizeResultsJSON ( self , test , test_name , tests ) : test [ self . RESULTS ] = self . _RemoveItemsOverMaxNumberOfBuilds ( test [ self . RESULTS ] ) test [ self . TIMES ] = self . _RemoveItemsOverMaxNumberOfBuilds ( test [ self . TIMES ] ) is_all_pass = self . _IsResultsAllOfType ( test [ self . RESULTS ] , self . PASS_RESULT ) is_all_no_data = self . _IsResultsAllOfType ( test [ self . RESULTS ] , self . NO_DATA_RESULT ) max_time = max ( [ test_time [ 1 ] for test_time in test [ self . TIMES ] ] ) # Remove all passes/no-data from the results to reduce noise and # filesize. If a test passes every run, but takes > MIN_TIME to run, # don't throw away the data. if is_all_no_data or ( is_all_pass and max_time <= self . MIN_TIME ) : del tests [ test_name ]