<commit_before>'use strict';

/**
 * Module dependencies
 */
var pollreportsPolicy = require('../policies/pollreports.server.policy'),
  pollreports = require('../controllers/pollreports.server.controller');

module.exports = function(app) {
  // Pollreports Routes
  app.route('/api/pollreports').all(pollreportsPolicy.isAllowed)
    .get(pollreports.list)
    .post(pollreports.create);

  app.route('/api/pollreports/:pollreportId')
    .get(pollreports.read)
    .put(pollreports.update)
    .delete(pollreports.delete);

  // Finish by binding the Pollreport middleware
  app.param('pollreportId', pollreports.pollreportByID);
};
<commit_msg>Commited from lenh at Wed, Jul 12, 2017  1:58:55 PM<commit_after>'use strict';

/**
 * Module dependencies
 */
var pollreportsPolicy = require('../policies/pollreports.server.policy'),
  pollreports = require('../controllers/pollreports.server.controller');

module.exports = function(app) {
  // Pollreports Routes
  app.route('/api/pollreports')
    .get(pollreports.list)
    .post(pollreports.create);

  app.route('/api/pollreports/:pollreportId')
    .get(pollreports.read)
    .put(pollreports.update)
    .delete(pollreports.delete);

  // Finish by binding the Pollreport middleware
  app.param('pollreportId', pollreports.pollreportByID);
};

{'fraction_non_alphanumeric': 0.14934565050038492, 'fraction_numerical': 0.008468052347959968, 'mean_word_length': 4.394190871369295, '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': '6539967', 'n_tokens_mistral': 435, 'n_tokens_neox': 400, 'n_words': 65}