<commit_before>export type PropList = string[] | { [propAlias: string]: string }

function mapProps(store: object, propNames: PropList, mapProp: (store: object, propName: string) => Function): object {
  const isArray = propNames instanceof Array;

  return Object.keys(propNames).reduce(
    (result, key) => {
      const propAlias = isArray ? propNames[key] : key;
      const propName = propNames[key];
<commit_msg>Some code style refactoring<commit_after>export type PropList = string[] | { [propAlias: string]: string }

function mapProps(store: object, propNames: PropList, mapProp: (store: object, propName: string) => Function): object {
  const isArray = Array.isArray(propNames)

  return Object.keys(propNames).reduce(
    (result, key) => {
      const propAlias = isArray ? propNames[key] : key
      const propName = propNames[key]

{'fraction_non_alphanumeric': 0.12278630460448642, 'fraction_numerical': 0.0, 'mean_word_length': 4.691275167785235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2679866', 'n_tokens_mistral': 249, 'n_tokens_neox': 247, 'n_words': 73}