<commit_before>const initialState = {
  id: 1,
  username: 'Law',
  avatar: `http://thecatapi.com/api/images/get?type=gif&r='${Math.random()}`
};

export default function user(state = initialState, action = {}) {
  const { type } = action;

  switch (type) {
  default:
    return state;
  }
}<commit_msg>add human avatar<commit_after>const randGender = ['men', 'women'][Math.floor(Math.random() * 2)];
const baseUrl = 'https://randomuser.me/api/portraits/med/';

const initialState = {
  id: 1,
  username: 'Law',
  avatar: `${baseUrl}${randGender}/${Math.floor(Math.random() * 100) + 1}.jpg`
};

export default function user(state = initialState, action = {}) {
  const { type } = action;

  switch (type) {
  default:
    return state;
  }
}
{'fraction_non_alphanumeric': 0.18413978494623656, 'fraction_numerical': 0.009408602150537635, 'mean_word_length': 4.068027210884353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2863582', 'n_tokens_mistral': 274, 'n_tokens_neox': 260, 'n_words': 56}