<commit_before>var Users = require('../models/Users')

module.exports = {
  /**
   * GET /contact
   * Contact form page.
   */
  getContact: function (req, res) {
    Users.find({}, function (err, foundUsers) {
      if (err) console.error(err)
      res.render(res.locals.brigade.theme.slug + '/views/contact/index', {
        users: foundUsers,
        title: 'Contact',
        brigade: res.locals.brigade
      })
    })
  },

  /**
   * GET /contact/edit
   * Edit Contact page content.
   */
  getContactEdit: function (req, res) {
    res.render(res.locals.brigade.theme.slug + '/views/contact/edit', {<commit_msg>change contact page so that core, coreleads, and superadmins are the only people displayed there.<commit_after>var Users = require('../models/Users')

module.exports = {
  /**
   * GET /contact
   * Contact form page.
   */
  getContact: function (req, res) {
    Users.find({$or: [{'roles.core': true}, {'roles.coreLead': true}, {'roles.superAdmin': true}]}, function (err, foundUsers) {
      if (err) console.error(err)
      res.render(res.locals.brigade.theme.slug + '/views/contact/index', {
        users: foundUsers,
        title: 'Contact',
        brigade: res.locals.brigade
      })
    })
  },

  /**
   * GET /contact/edit
   * Edit Contact page content.
   */
  getContactEdit: function (req, res) {
    res.render(res.locals.brigade.theme.slug + '/views/contact/edit', {
{'fraction_non_alphanumeric': 0.16252661462029808, 'fraction_numerical': 0.0, 'mean_word_length': 2.7007874015748032, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3062172', 'n_tokens_mistral': 470, 'n_tokens_neox': 472, 'n_words': 100}