<commit_before>/**
 * @fileOverview Application Bare CRUD methods
 */
var ControllerCrud = require('../controller-crud');
var ApplicationEntity = require('../../entities/application.ent');

/**
 * Application Bare CRUD methods
 *
 * @contructor
 * @extends {kansas.ControllerCrud}
 */
module.exports = ControllerCrud.extendSingleton(ApplicationEntity, '/application', {
  idField: '_id',
  nameField: 'name',
  urlField: 'name',
});
<commit_msg>update app ctrl to new crude API<commit_after>/**
 * @fileOverview Application Bare CRUD methods
 */
var ControllerCrud = require('../controller-crud');

/**
 * Application Bare CRUD methods
 *
 * @contructor
 * @extends {kansas.ControllerCrud}
 */
module.exports = ControllerCrud.extend(function() {
  this.setOptions({
    idField: '_id',
    nameField: 'name',
    urlField: 'name',
  });
});

{'fraction_non_alphanumeric': 0.1605231866825208, 'fraction_numerical': 0.0, 'mean_word_length': 4.397435897435898, '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': '4133825', 'n_tokens_mistral': 262, 'n_tokens_neox': 259, 'n_words': 59}