<commit_before>import {ADD_NAME} from '../consts/action-types.jsx'

const reducer = (state = initialState, action) => {
  switch (action.type) {
    case ADD_NAME:
    return Object.assign({}, state, { names: state.names.concat(action.title) } )
  }
  return state
}
<commit_msg>allow adding same name more then once<commit_after>import {ADD_NAME} from '../consts/action-types.jsx'

const reducer = (state = initialState, action) => {
  switch (action.type) {
    case ADD_NAME:
    return state.names.includes(action.title)?
    		Object.assign({}, state):
    		Object.assign({}, state, { names: state.names.concat(action.title) } )
  }
  return state
}

{'fraction_non_alphanumeric': 0.15091463414634146, 'fraction_numerical': 0.0, 'mean_word_length': 3.760869565217391, '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': '5592388', 'n_tokens_mistral': 218, 'n_tokens_neox': 217, 'n_words': 49}