<commit_before>'use strict'

const forumsDb = require('./../db/forumsDb')

module.exports = {
  'index': index, // <=> get_index
  'index_id': index_id,  // <=> get_index_id 
  'index_id_teams': index_id_members
}

/* GET forums listing. */
function index() {
  return { 
    title: 'Forums',
    forums: forumsDb 
  }
}

/* GET forum details. */
function index_id(id) {
  const forum = forumsDb[id]
  // To Do: if error throw error
  return { 
    title: 'Details',
    forum: forum 
  }
}

/* GET members */
function index_id_members(id) {
  const forum = forumsDb[id]
  return { 
    title: forum.groupname + " Members",
    members: forum.members 
  }
}<commit_msg>Fix property name<commit_after>'use strict'

const forumsDb = require('./../db/forumsDb')

module.exports = {
  'index': index, // <=> get_index
  'index_id': index_id,  // <=> get_index_id 
  'index_id_members': index_id_members
}

/* GET forums listing. */
function index() {
  return { 
    title: 'Forums',
    forums: forumsDb 
  }
}

/* GET forum details. */
function index_id(id) {
  const forum = forumsDb[id]
  // To Do: if error throw error
  return { 
    title: 'Details',
    forum: forum 
  }
}

/* GET members */
function index_id_members(id) {
  const forum = forumsDb[id]
  return { 
    title: forum.groupname + " Members",
    members: forum.members 
  }
}
{'fraction_non_alphanumeric': 0.1488095238095238, 'fraction_numerical': 0.0, 'mean_word_length': 2.9212827988338192, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3670682', 'n_tokens_mistral': 492, 'n_tokens_neox': 466, 'n_words': 114}