<commit_before># Lookup table for compressing data
tableTo =

  # User
  email:      "@"
  password:   "X"
  has_pro:    "$"
  created_at: ":"
  updated_at: "#"

  data_Task: "dT"
  data_List: "dL"
  data_Time: "dX"

  # Class names
  Task: "T"
  List: "L"
  Time: "M"

  # Properties
  name:      "n"
  completed: "c"
  id:        "i"
  priority:  "p"
  date:      "d"
  deleted:   "x"
  notes:     "o"
  tasks:     "t"
  list:      "l"

tableFrom = {}

for k, v of tableTo
  tableFrom[v] = k

# Get a value from the table
get = (name, table) ->
  table[name] or name

# Replace an obj with values from the table
replace = (obj, table) ->
  out = {}
  for key, value of obj
    if typeof value is "object" and not Array.isArray(obj)
      for cKey, cValue of value
        out[get(key, table)] = replace(value, table)
    else<commit_msg>Stop converting arrays into objects<commit_after># Lookup table for compressing data
tableTo =

  # User
  email:      "@"
  password:   "X"
  has_pro:    "$"
  created_at: ":"
  updated_at: "#"

  data_Task: "dT"
  data_List: "dL"
  data_Time: "dX"

  # Class names
  Task: "T"
  List: "L"
  Time: "M"

  # Properties
  name:      "n"
  completed: "c"
  id:        "i"
  priority:  "p"
  date:      "d"
  deleted:   "x"
  notes:     "o"
  tasks:     "t"
  list:      "l"

tableFrom = {}

for k, v of tableTo
  tableFrom[v] = k

# Get a value from the table
get = (name, table) ->
  table[name] or name

# Replace an obj with values from the table
replace = (obj, table) ->
  out = {}
  for key, value of obj
    if typeof value is "object" and not Array.isArray(value)
      for cKey, cValue of value
        out[get(key, table)] = replace(value, table)
    else
{'fraction_non_alphanumeric': 0.13396004700352526, 'fraction_numerical': 0.0, 'mean_word_length': 2.358974358974359, 'pattern_counts': {'":': 2, '<': 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': '6913211', 'n_tokens_mistral': 666, 'n_tokens_neox': 658, 'n_words': 207}