original_string: public function emit($val, $key = null)
      {
          $this->_result[$key === null ? $this->_counter : $key] = $val;
          $this->_counter++;
      }
code: public function emit($val, $key = null)
      {
          $this->_result[$key === null ? $this->_counter : $key] = $val;
          $this->_counter++;
      }
code_tokens: public function emit ( $ val , $ key = null ) { $ this -> _result [ $ key === null ? $ this -> _counter : $ key ] = $ val ; $ this -> _counter ++ ; }
docstring: Appends a new record to the final list of results and optionally assign a key
  for this record.
  
  @param mixed $val The value to be appended to the final list of results
  @param string|null $key and optional key to assign to the value
  @return void
docstring_tokens: Appends a new record to the final list of results and optionally assign a key for this record .