<commit_before>'use strict';

let Command     = require('../models/command'),
    WebServer   = require('../tasks/server');

class Serve extends Command {
    run(options, args) {
        let params = options['argv']['remain'];

        if(params.length != 0) {
            this.printBasicHelp();
            return;
        }

        let server = new WebServer();
        return server.run([8080, './app']);
   }
}

Serve.nam = 'serve';
Serve.description = 'Serves the React application in the current folder.';
Serve.aliases = ['server', 's'];
Serve.works = 'insideProject';
Serve.availableOptions = [];
Serve.parameters = [];
module.exports = Serve;<commit_msg>Added --port option for the server command<commit_after>'use strict';

let Command     = require('../models/command'),
    WebServer   = require('../tasks/server');

class Serve extends Command {
    run(options, args) {
        let params = options['argv']['remain'];
        let port = options['port'];

        if(params.length != 0) {
            this.printBasicHelp();
            return;
        }

        let server = new WebServer();
        return server.run([port, './app']);
   }
}

Serve.nam = 'serve';
Serve.description = 'Serves the React application in the current folder.';
Serve.aliases = ['server', 's'];
Serve.works = 'insideProject';
Serve.availableOptions = [
 { name: 'port', type: String,  default: '8080', aliases: ['p'] },
];
Serve.parameters = [];
module.exports = Serve;
{'fraction_non_alphanumeric': 0.16678058783321942, 'fraction_numerical': 0.00683526999316473, 'mean_word_length': 2.8526315789473684, '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': '1266757', 'n_tokens_mistral': 441, 'n_tokens_neox': 421, 'n_words': 110}