<commit_before>import { SET_FEATURE_FLAG, SET_USER_FLAGS } from './index'

/**
 * Sets a feature flag to a value. Not a toggle.
 *
 * @param {string} flag - name of flag
 * @param {Boolean} value - value to set flag to
 */
export function setFeatureFlag (flag, value, source) {
  return {
    type: SET_FEATURE_FLAG,
    flag,
    value
  }
}

export function setUserFlags (userFlags) {<commit_msg>setFeatureFlag no longer needs additional source param<commit_after>import { SET_FEATURE_FLAG, SET_USER_FLAGS } from './index'

/**
 * Sets a feature flag to a value. Not a toggle.
 *
 * @param {string} flag - name of flag
 * @param {Boolean} value - value to set flag to
 */
export function setFeatureFlag (flag, value) {
  return {
    type: SET_FEATURE_FLAG,
    flag,
    value
  }
}

export function setUserFlags (userFlags) {
{'fraction_non_alphanumeric': 0.10253317249698432, 'fraction_numerical': 0.0, 'mean_word_length': 3.510869565217391, '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': '6596890', 'n_tokens_mistral': 257, 'n_tokens_neox': 260, 'n_words': 93}