original_string: protected function aggregateCpu($processes)
      {
          $cpus = array();
  
          foreach ($processes as $process) {
              if (isset($cpus[$process->getName()])) {
                  $cpus[$process->getName()] += $process->getCpu();
              }
              else {
                  $cpus[$process->getName()] = $process->getCpu();
              }
          }
  
          return $cpus;
      }
code: protected function aggregateCpu($processes)
      {
          $cpus = array();
  
          foreach ($processes as $process) {
              if (isset($cpus[$process->getName()])) {
                  $cpus[$process->getName()] += $process->getCpu();
              }
              else {
                  $cpus[$process->getName()] = $process->getCpu();
              }
          }
  
          return $cpus;
      }
code_tokens: protected function aggregateCpu ( $ processes ) { $ cpus = array ( ) ; foreach ( $ processes as $ process ) { if ( isset ( $ cpus [ $ process -> getName ( ) ] ) ) { $ cpus [ $ process -> getName ( ) ] += $ process -> getCpu ( ) ; } else { $ cpus [ $ process -> getName ( ) ] = $ process -> getCpu ( ) ; } } return $ cpus ; }
docstring: Aggregate CPU for processes with the same name
  
  @param $processes Process[]
docstring_tokens: Aggregate CPU for processes with the same name