original_string: protected function extractCompletions($response)
      {
          $aggregations = isset($response['aggregations']) ? $response['aggregations'] : [];
  
          return array_map(function ($option) {
              return $option['key'];
          }, $aggregations['autocomplete']['buckets']);
      }
code: protected function extractCompletions($response)
      {
          $aggregations = isset($response['aggregations']) ? $response['aggregations'] : [];
  
          return array_map(function ($option) {
              return $option['key'];
          }, $aggregations['autocomplete']['buckets']);
      }
code_tokens: protected function extractCompletions ( $ response ) { $ aggregations = isset ( $ response [ 'aggregations' ] ) ? $ response [ 'aggregations' ] : [ ] ; return array_map ( function ( $ option ) { return $ option [ 'key' ] ; } , $ aggregations [ 'autocomplete' ] [ 'buckets' ] ) ; }
docstring: Extract autocomplete options
  
  @param $response
  @return array
docstring_tokens: Extract autocomplete options