<commit_before>// Copyright 2013 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package internal

import (
	"strings"
)

func NewElem(filepath string) (string, error) {
	if strings.ContainsRune(filepath, '"') {
		return "", Error{Cause_: ErrQuote, Filepath: filepath}
	}
	if strings.ContainsRune(filepath, ListSeparator) {
		return `"` + filepath + `"`, nil
	}
	return filepath, nil
}<commit_msg>fix typo<commit_after>// Copyright 2013 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package internal

import (
	"strings"
)

func NewElem(filepath string) (string, error) {
	if strings.ContainsRune(filepath, '"') {
		return "", Error{Cause_: ErrQuote, Filepath_: filepath}
	}
	if strings.ContainsRune(filepath, ListSeparator) {
		return `"` + filepath + `"`, nil
	}
	return filepath, nil
}
{'fraction_non_alphanumeric': 0.12266112266112267, 'fraction_numerical': 0.008316008316008316, 'mean_word_length': 4.233695652173913, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6691296', 'n_tokens_mistral': 324, 'n_tokens_neox': 305, 'n_words': 103}