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