<commit_before>module.exports = {
  /**
   * Return ordered list of Backbone.js Models. This output can be fed into
   * SailsBackbone.parse().
   *
   * @see <https://github.com/tjwebb/sails-backbone#browser-client>
   */
  index: function (req, res) {
    sails.log('backbonemodels.index');
    process.nextTick(function () {
      sails.log('about to query backbone models');
      BackboneModel.find(_.extend({ limit: 999 }, req.query))
        .then(function (models) {
          sails.log('models queried');
          res.json(_.pluck(models, 'json'));
        })
        .catch(function (error) {
          sails.log(error);
          sails.log.error(error);
          res.json(500, error);
        });
    });<commit_msg>remove logs; cleanup<commit_after>module.exports = {
  /**
   * Return ordered list of Backbone.js Models. This output can be fed into
   * SailsBackboneClient.parse().
   *
   * @see <https://github.com/tjwebb/sails-backbone#browser-client>
   */
  index: function (req, res) {
    BackboneModel
      .find(_.extend({ limit: 999 }, req.query))
      .then(function (models) {
        res.json(_.pluck(models, 'json'));
      })
      .catch(function (error) {
        sails.log.error(error);
        res.status(500).json(error);
      });
{'fraction_non_alphanumeric': 0.15918045705279749, 'fraction_numerical': 0.009456264775413711, 'mean_word_length': 2.4794520547945207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2222904', 'n_tokens_mistral': 423, 'n_tokens_neox': 409, 'n_words': 78}