<commit_before>var gulp   = require('gulp');
var jshint = require('gulp-jshint');
var less   = require('gulp-less');
var path   = require('path');
var app    = require('./app');
var debug  = require('debug')('podplay:server');
var http   = require('http');


// compile less stylesheets
gulp.task('style', function() {
  return gulp.src('./styles/**/*.less')
    .pipe(less({
      paths: [ path.join(__dirname, 'styles', 'includes') ]
    }))
    .pipe(gulp.dest('./public/stylesheets'));
});

// lint javascript
gulp.task('lint', function() {
  return gulp.src('./public/**/*.js')
    .pipe(jshint())
    .pipe(jshint.reporter('default')); // maybe install a better reporter
});

// run the express server
gulp.task('serve', function() {
  var port = '8080';
  app.set('port', port);

  var server = http.createServer(app);

  server.listen(port);
  console.log('server running on port ' + port);
  server.on('error', function(error) {

    if (error.syscall !== 'listen') {
      throw error;
    }

    switch (error.code) {
      case 'EACCES':
        console.error(bind + ' requires elevated privileges');
        process.exit(1);
        break;
      case 'EADDRINUSE':<commit_msg>Changed port back to 80 for master branch<commit_after>var gulp   = require('gulp');
var jshint = require('gulp-jshint');
var less   = require('gulp-less');
var path   = require('path');
var app    = require('./app');
var debug  = require('debug')('podplay:server');
var http   = require('http');


// compile less stylesheets
gulp.task('style', function() {
  return gulp.src('./styles/**/*.less')
    .pipe(less({
      paths: [ path.join(__dirname, 'styles', 'includes') ]
    }))
    .pipe(gulp.dest('./public/stylesheets'));
});

// lint javascript
gulp.task('lint', function() {
  return gulp.src('./public/**/*.js')
    .pipe(jshint())
    .pipe(jshint.reporter('default')); // maybe install a better reporter
});

// run the express server
gulp.task('serve', function() {
  var port = '80';
  app.set('port', port);

  var server = http.createServer(app);

  server.listen(port);
  console.log('server running on port ' + port);
  server.on('error', function(error) {

    if (error.syscall !== 'listen') {
      throw error;
    }

    switch (error.code) {
      case 'EACCES':
        console.error(bind + ' requires elevated privileges');
        process.exit(1);
        break;
      case 'EADDRINUSE':
{'fraction_non_alphanumeric': 0.19217970049916805, 'fraction_numerical': 0.004159733777038269, 'mean_word_length': 3.2793594306049823, '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': '2517191', 'n_tokens_mistral': 802, 'n_tokens_neox': 767, 'n_words': 178}