<commit_before>var express = require('express');
var fs = require("fs");
var less = require("less");
var Path = require("path");
var http = require('http');
var url = require("url");
var prompt = require("prompt")

var argv = require('optimist').argv;

var devDomain = null;

var Server = {}
var Builder = require("./builder");


module.exports = Server;
  
Server.prompt =  function(){
  prompt.start();
  prompt.get( [ { name: 'domain', description: 'Domain: ( If you are on nitrous.io type the preview domain with out http:// or trailing slashes / ) ' }], 
   function (err, result) {
     Server.startServer( result.domain  )
     .fail( function(err){console.error(err); } )
   }
  );
},

Server.startServer = function( domain, callback  ){
  Server.serverCallback = callback;
  
  var app = express();    
  var pck = require( Path.join( process.cwd(), "3vot.json" )  );
  var profile = pck.profile;
  // all environments
  app.set('port', process.env.PORT || 3000);
  app.use(express.logger('dev'));
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);

  devDomain = domain || "localhost:" + app.get('port');

  app.get("/", function(req,res){
    res.send("<h1>Congratulations 3VOT Local Server is Running</h1><h2>Now head to your app @ /YOURORG/YOURAPP</h2>");
  });<commit_msg>server.js does not require an fail promise<commit_after>var express = require('express');
var fs = require("fs");
var less = require("less");
var Path = require("path");
var http = require('http');
var url = require("url");
var prompt = require("prompt")

var argv = require('optimist').argv;

var devDomain = null;

var Server = {}
var Builder = require("./builder");


module.exports = Server;
  
Server.prompt =  function(){
  prompt.start();
  prompt.get( [ { name: 'domain', description: 'Domain: ( If you are on nitrous.io type the preview domain with out http:// or trailing slashes / ) ' }], 
   function (err, result) {
     Server.startServer( result.domain  )
   }
  );
},

Server.startServer = function( domain, callback  ){
  Server.serverCallback = callback;
  
  var app = express();    
  var pck = require( Path.join( process.cwd(), "3vot.json" )  );
  var profile = pck.profile;
  // all environments
  app.set('port', process.env.PORT || 3000);
  app.use(express.logger('dev'));
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);

  devDomain = domain || "localhost:" + app.get('port');

  app.get("/", function(req,res){
    res.send("<h1>Congratulations 3VOT Local Server is Running</h1><h2>Now head to your app @ /YOURORG/YOURAPP</h2>");
  });
{'fraction_non_alphanumeric': 0.17685009487666034, 'fraction_numerical': 0.007590132827324478, 'mean_word_length': 3.9642184557438793, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '174750', 'n_tokens_mistral': 872, 'n_tokens_neox': 841, 'n_words': 220}