def _decode_stat_data(self, chunk):
for date_str, statistics in chunk.iteritems():<EOL><INDENT>date_obj = datetime.datetime.strptime(<EOL>date_str.split("<STR_LIT:.>")[<NUM_LIT:0>], '<STR_LIT>')<EOL>chunk_date = int(time.mktime(date_obj.timetuple()))<EOL>instances = <NUM_LIT:0><EOL>for benchmark_name, benchmark in statistics.iteritems():<EOL><INDENT>if not benchmark_name.startswith("<STR_LIT>"):<EOL><INDENT>continue<EOL><DEDENT>for method, meth_obj in benchmark.iteritems():<EOL><INDENT>if "<STR_LIT>" in meth_obj:<EOL><INDENT>instances += meth_obj["<STR_LIT>"][<NUM_LIT:2>]<EOL><DEDENT><DEDENT><DEDENT>offset = chunk_date - <NUM_LIT:1> - self.start_time<EOL>reqps = <NUM_LIT:0><EOL>if <NUM_LIT:0> <= offset < len(self.phantom_info.steps):<EOL><INDENT>reqps = self.phantom_info.steps[offset][<NUM_LIT:0>]<EOL><DEDENT>yield self.stats_item(chunk_date - <NUM_LIT:1>, instances, reqps)<EOL><DEDENT>
Return all items found in this chunk