<commit_before>const mapToFakeStatus = (fakeStatus, fakeResolution) =>
  fakeStatus === 'resolved' ? fakeResolution : fakeStatus;

const needToAlter = [
  'successful',
  'partially_successful',
  'not_held',
  'refused',
  'user_withdrew_costs',
  'user_withdrew',
];

function mapToFakeStatus(realStatus) {
  if (needToAlter.indexOf(realStatus) !== -1) {
    return {
      status: 'resolved',
      resolution: realStatus,
    };
  }

  return {
    status: realStatus,
    resolution: null,
  };
}

const getItemById = id => x => x.id === id;<commit_msg>fix name<commit_after>const mapToRealStatus = (fakeStatus, fakeResolution) =>
  fakeStatus === 'resolved' ? fakeResolution : fakeStatus;

const needToAlter = [
  'successful',
  'partially_successful',
  'not_held',
  'refused',
  'user_withdrew_costs',
  'user_withdrew',
];

function mapToFakeStatus(realStatus) {
  if (needToAlter.indexOf(realStatus) !== -1) {
    return {
      status: 'resolved',
      resolution: realStatus,
    };
  }

  return {
    status: realStatus,
    resolution: null,
  };
}

const getItemById = id => x => x.id === id;
{'fraction_non_alphanumeric': 0.14401440144014402, 'fraction_numerical': 0.0018001800180018, 'mean_word_length': 3.8347826086956522, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1954803', 'n_tokens_mistral': 386, 'n_tokens_neox': 384, 'n_words': 74}