<commit_before>let express = require('express');
let app = express();
let mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/testingSkilletHub');
let port = process.env.PORT || 3000;
let tags = require(`${__dirname}/tags.js`);
let Tag = require(`${__dirname}/schemas.js`).Tag;

require('./middleware.js')(app, express);
require('./routes.js')(app, express);

app.listen(port, function() {
  console.log('Now running on port: ', port);

  Tag.find().then(results => {
    return results.length < 1 ? Tag.create(tags.tags) : 'existing';
  }).then(result => {
    if (result !== 'existing') {
      console.log('Tags inserted');
    }
  }).catch(error => {
    console.log(error);
  });<commit_msg>Deploy server<commit_after>let express = require('express');
let app = express();
let mongoose = require('mongoose');
mongoose.connect('mongodb://deploy:<EMAIL>:55626/skillethub');
let port = process.env.PORT || 3000;
let tags = require(`${__dirname}/tags.js`);
let Tag = require(`${__dirname}/schemas.js`).Tag;

require('./middleware.js')(app, express);
require('./routes.js')(app, express);

app.listen(port, function() {
  console.log('Now running on port: ', port);

  Tag.find().then(results => {
    return results.length < 1 ? Tag.create(tags.tags) : 'existing';
  }).then(result => {
    if (result !== 'existing') {
      console.log('Tags inserted');
    }
  }).catch(error => {
    console.log(error);
  });
{'fraction_non_alphanumeric': 0.21089385474860337, 'fraction_numerical': 0.01047486033519553, 'mean_word_length': 4.5115384615384615, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, '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': '2047459', 'n_tokens_mistral': 474, 'n_tokens_neox': 463, 'n_words': 91}