<commit_before>import handReducer from './hand';
import { NEW_GAME } from './game';

function nameReducer(state = '', action) {
  return action.type === NEW_GAME ? action.yourName : state;
}

export default function playerReducer(state = {}, action) {
  return {
    name: nameReducer(state.name, action),
    hand: handReducer(state.hand, action),
  };
}
<commit_msg>Clean up player reducer<commit_after>import { combineReducers } from 'redux';
import hand from './hand';
import character from './character';
import { NEW_GAME } from './game';

function name(state = '', action) {
  return action.type === NEW_GAME ? action.yourName : state;
}

export default combineReducers({
  name,
  character,
  hand,
});

{'fraction_non_alphanumeric': 0.1446629213483146, 'fraction_numerical': 0.0, 'mean_word_length': 4.442748091603053, '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': '331567', 'n_tokens_mistral': 227, 'n_tokens_neox': 221, 'n_words': 61}