parameters: (data, avg, times)
return_statement: return averaged
docstring: Average trace entries (every avg entries)
docstring_summary: Average trace entries (every avg entries)
docstring_tokens: Average trace entries ( every avg entries )
function: def avgData(data, avg, times):
      ''' Average trace entries (every avg entries) '''
  
      averaged = []
      accumulator = []
      r = 0
  
      for row in data:
          if r == 0:
              for m in row:
                  accumulator.append(m)
          else:
              for m in row[times:]:
                  accumulator[t] += m
  
          r += 1
          if r == avg:
              for t in range(times, len(row)):
                  accumulator[t] /= avg
              averaged.append(accumulator)
              accumulator = []
              r = 0
  
      return averaged
function_tokens: def avgData ( data , avg , times ) : averaged = [ ] accumulator = [ ] r = 0 for row in data : if r == 0 : for m in row : accumulator . append ( m ) else : for m in row [ times : ] : accumulator [ t ] += m r += 1 if r == avg : for t in range ( times , len ( row ) ) : accumulator [ t ] /= avg averaged . append ( accumulator ) accumulator = [ ] r = 0 return averaged