<commit_before>
import { Raw } from '../expression'

/**
 * A handler function for template strings
 * 
 * @param {Array} parts
 * @param {Array} args
 * @return {Raw}
 */
export default function makeRaw(parts = [], ...args) {
  // TODO check for undefined values
  return new Raw(parts.join('?'), args)
}<commit_msg>Update raw helper<commit_after>
import { Raw } from '../expression'
import { isString } from 'lodash'

/**
 * A handler function for template strings
 * 
 * @param {Array} parts
 * @param {Array} args
 * @return {Raw}
 */
export default function makeRaw(parts = [], ...args) {
  if ( isString(parts) ) parts = parts.splice('?')

  // TODO check for undefined values
  return new Raw(parts.join('?'), args)
}
{'fraction_non_alphanumeric': 0.16160220994475138, 'fraction_numerical': 0.0, 'mean_word_length': 3.588607594936709, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3708018', 'n_tokens_mistral': 223, 'n_tokens_neox': 217, 'n_words': 76}