<commit_before>module.exports = function createItemUrl (url, user, callback) {

    var models          = require('../../models');
    var itemTypes       = require('../../models/item/itemTypes.json');
    var request         = require('request'); 
    const cheerio       = require('cheerio')
    
    var host = getHost(url);
    request(url, function (error, response, html) {
        if (error || response.statusCode != 200)
            return callback(error);

        var $ = cheerio.load(html);
        
        var itemUrl = new models.ItemUrl();
<commit_msg>server side: fix item creation<commit_after>module.exports = function createItemUrl (url, user, callback) {

    var models          = require('../../models');
    var itemTypes       = require('../../models/item/itemTypes.json');
    var request         = require('request'); 
    const cheerio       = require('cheerio')
    
    var host = getHost(url);
    request(url, function (error, response, html) {
        if (error)
            return callback(error);

        var $ = cheerio.load(html);
        
        var itemUrl = new models.ItemUrl();

{'fraction_non_alphanumeric': 0.1391614629794826, 'fraction_numerical': 0.0026761819803746653, 'mean_word_length': 2.1875, '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': '4616988', 'n_tokens_mistral': 310, 'n_tokens_neox': 300, 'n_words': 78}