original_string: public function subst($query)
      {
          foreach ($this->values as $key => $value)
          {
              $query = preg_replace("/$key(\s|,|$)/", "$value$1", $query);
          }
  
          return $query;
      }
code: public function subst($query)
      {
          foreach ($this->values as $key => $value)
          {
              $query = preg_replace("/$key(\s|,|$)/", "$value$1", $query);
          }
  
          return $query;
      }
code_tokens: public function subst ( $ query ) { foreach ( $ this -> values as $ key => $ value ) { $ query = preg_replace ( "/$key(\s|,|$)/" , "$value$1" , $ query ) ; } return $ query ; }
docstring: Substitute values in query
  
  @param string $query
  @return string
docstring_tokens: Substitute values in query