original_string: private function computeBody(Query $query): StringStream
      {
          $statement = [
              'statement' => $query->cypher(),
              'resultDataContents' => ['graph', 'row'],
          ];
  
          if ($query->hasParameters()) {
              $parameters = [];
  
              foreach ($query->parameters() as $parameter) {
                  $parameters[$parameter->key()] = $parameter->value();
              }
  
              $statement['parameters'] = $parameters;
          }
  
          return new StringStream(Json::encode([
              'statements' => [$statement],
          ]));
      }
code: private function computeBody(Query $query): StringStream
      {
          $statement = [
              'statement' => $query->cypher(),
              'resultDataContents' => ['graph', 'row'],
          ];
  
          if ($query->hasParameters()) {
              $parameters = [];
  
              foreach ($query->parameters() as $parameter) {
                  $parameters[$parameter->key()] = $parameter->value();
              }
  
              $statement['parameters'] = $parameters;
          }
  
          return new StringStream(Json::encode([
              'statements' => [$statement],
          ]));
      }
code_tokens: private function computeBody ( Query $ query ) : StringStream { $ statement = [ 'statement' => $ query -> cypher ( ) , 'resultDataContents' => [ 'graph' , 'row' ] , ] ; if ( $ query -> hasParameters ( ) ) { $ parameters = [ ] ; foreach ( $ query -> parameters ( ) as $ parameter ) { $ parameters [ $ parameter -> key ( ) ] = $ parameter -> value ( ) ; } $ statement [ 'parameters' ] = $ parameters ; } return new StringStream ( Json :: encode ( [ 'statements' => [ $ statement ] , ] ) ) ; }
docstring: Build the json payload to be sent to the server
docstring_tokens: Build the json payload to be sent to the server