<commit_before>import parser from '../parser';
import writer from '../cli/lib/writer';

const change = ({ type, msg, cwd, parserInstance = parser(cwd), write = writer({ parserInstance }) }) => {
    return parserInstance
        .change(parserInstance.SEPARATORS[type], msg)
        .then(write);
};

export default change;

export const TYPE = {
    ADDED : 'Added',
    CHANGED : 'Changed',
    FIXED : 'Fixed',
    SECURITY : 'Security',
    DEPRECATED : 'Deprecated',
    REMOVED : 'Removed'
};<commit_msg>Fixed issue with CHANGE_TYPES not matching parser instance SEPARATORS<commit_after>import parser from '../parser';
import writer from '../cli/lib/writer';

const change = ({ type, msg, cwd, parserInstance = parser(cwd), write = writer({ parserInstance }) }) => {
    return parserInstance
        .change(parserInstance.SEPARATORS[type], msg)
        .then(write);
};

export default change;

export const TYPE = {
    ADDED : 'added',
    CHANGED : 'changed',
    FIXED : 'fixed',
    SECURITY : 'security',
    DEPRECATED : 'deprecated',
    REMOVED : 'removed'
};
{'fraction_non_alphanumeric': 0.1449814126394052, 'fraction_numerical': 0.0, 'mean_word_length': 3.4688796680497926, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3171502', 'n_tokens_mistral': 329, 'n_tokens_neox': 329, 'n_words': 90}