original_string: public function getActions()
      {
          $actions = [];
          foreach ($this->data['actions'] as $action) {
              $name = $action['name'];
              $time = isset($action['time'])
                  ? $action['time']
                  : 0;
              if (isset($actions[$name])) {
                  $actions[$name]['count'] += 1;
                  $actions[$name]['time'] += $time;
              } else {
                  $actions[$name] = ['name' => $name, 'count' => 1, 'time' => $time];
              }
          }
  
          return array_values($actions);
      }
code: public function getActions()
      {
          $actions = [];
          foreach ($this->data['actions'] as $action) {
              $name = $action['name'];
              $time = isset($action['time'])
                  ? $action['time']
                  : 0;
              if (isset($actions[$name])) {
                  $actions[$name]['count'] += 1;
                  $actions[$name]['time'] += $time;
              } else {
                  $actions[$name] = ['name' => $name, 'count' => 1, 'time' => $time];
              }
          }
  
          return array_values($actions);
      }
code_tokens: public function getActions ( ) { $ actions = [ ] ; foreach ( $ this -> data [ 'actions' ] as $ action ) { $ name = $ action [ 'name' ] ; $ time = isset ( $ action [ 'time' ] ) ? $ action [ 'time' ] : 0 ; if ( isset ( $ actions [ $ name ] ) ) { $ actions [ $ name ] [ 'count' ] += 1 ; $ actions [ $ name ] [ 'time' ] += $ time ; } else { $ actions [ $ name ] = [ 'name' => $ name , 'count' => 1 , 'time' => $ time ] ; } } return array_values ( $ actions ) ; }
docstring: Gets executed actions.
  
  @return array
docstring_tokens: Gets executed actions .