<commit_before>'use strict';

var util = require('../adminUtil');
var path = require('path');

module.exports = function(req, res) {
    //Get model
    var Model = util.findModel(req);
    if (!Model) {
        return res.notFound();
    }
    var instanceName = util.findInstanceName(req);
    res.view(util.getViewPath('add'), {
        instanceName: instanceName,
        instancePath: path.join(sails.config.admin.routePrefix, instanceName),
        fields: util.getFields(req, Model, 'add')
    });
};<commit_msg>test submodule commit<commit_after>'use strict';

var util = require('../adminUtil');
var path = require('path');

module.exports = function(req, res) {
    //Get model
    var Model = util.findModel(req);
    if (!Model) {
        return res.notFound();
    }

    if (req.method.toUpperCase() === 'POST') {
        console.log('post');
    }

    var instanceName = util.findInstanceName(req);
    res.view(util.getViewPath('add'), {
        instanceName: instanceName,
        instancePath: path.join(sails.config.admin.routePrefix, instanceName),
        fields: util.getFields(req, Model, 'add')
    });
};
{'fraction_non_alphanumeric': 0.16017699115044248, 'fraction_numerical': 0.0, 'mean_word_length': 3.142857142857143, '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': '1492677', 'n_tokens_mistral': 350, 'n_tokens_neox': 347, 'n_words': 72}