<commit_before>/* eslint-disable no-param-reassign */
export default (table, id, options) => {
  table = table.get(id);

  if ('pluck' in options) {
    // always pluck the id
    options.pluck.id = true;
    table = table.pluck(options.pluck);
  }

  return table;
};<commit_msg>Eliminate param-reassign in `retrieveSingleRecord`<commit_after>export default (table, id, options) => {
  let row = table.get(id);

  if ('pluck' in options) {
    // always pluck the id
    row = row.pluck({
      ...options.pluck,
      id: true,
    });
  }

  return row;
};
{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.0, 'mean_word_length': 2.8620689655172415, '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': '2471071', 'n_tokens_mistral': 199, 'n_tokens_neox': 194, 'n_words': 50}