<commit_before>var restify = require("restify");
var fs = require("fs");


//setup cors

var server = restify.createServer();
var https_options = {
  key: fs.readFileSync('./self-signed/localhost.key'),
  certificate: fs.readFileSync('./self-signed/localhost.crt')
};
var https_server =  restify.createServer(https_options);


https_server.use(restify.acceptParser(server.acceptable));
https_server.use(restify.authorizationParser());
https_server.use(restify.dateParser());
https_server.use(restify.queryParser());
https_server.use(restify.jsonp());
https_server.use(restify.gzipResponse());
https_server.use(restify.bodyParser());
https_server.use(restify.CORS());
https_server.use(restify.fullResponse());
https_server.opts(/.*/, function (req,res,next) {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Methods", req.header("Access-Control-Request-Method"));
    res.header("Access-Control-Allow-Headers", req.header("Access-Control-Request-Headers"));
    res.send(200);
    return next();
});

var server = restify.createServer();
server.use(restify.acceptParser(server.acceptable));
server.use(restify.authorizationParser());
server.use(restify.dateParser());
server.use(restify.queryParser());
server.use(restify.jsonp());
server.use(restify.gzipResponse());
server.use(restify.bodyParser());
server.use(restify.CORS());
server.use(restify.fullResponse());
server.opts(/.*/, function (req,res,next) {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Methods", req.header("Access-Control-Request-Method"));
    res.header("Access-Control-Allow-Headers", req.header("Access-Control-Request-Headers"));
    res.send(200);
    return next();
});
server.get(/(.*)/,restify.serveStatic({
  directory: './public',
  default: 'index.html'
}));

var port = process.env.PORT || 8080;
server.listen(port,function(){
	console.log("Server Started. Press Ctrl+c to quit server")
})


https_server.get(/(.*)/,restify.serveStatic({
  directory: './public',
  default: 'index.html'
}));


https_server.listen(443, function() {
   console.log('%s listening at %s', https_server.name, https_server.url);
});<commit_msg>removed ssl and fs from server.js<commit_after>var restify = require("restify");

//setup cors
var server = restify.createServer();
server.use(restify.acceptParser(server.acceptable));
server.use(restify.authorizationParser());
server.use(restify.dateParser());
server.use(restify.queryParser());
server.use(restify.jsonp());
server.use(restify.gzipResponse());
server.use(restify.bodyParser());
server.use(restify.CORS());
server.use(restify.fullResponse());
//setup cors
server.opts(/.*/, function (req,res,next) {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Methods", req.header("Access-Control-Request-Method"));
    res.header("Access-Control-Allow-Headers", req.header("Access-Control-Request-Headers"));
    res.send(200);
    return next();
});
server.get(/(.*)/,restify.serveStatic({
  directory: './public',
  default: 'index.html'
}));

var port = process.env.PORT || 8080;
server.listen(port, function () {
  console.log("Server Started. Press Ctrl+c to quit server")
});
{'fraction_non_alphanumeric': 0.19428038545228474, 'fraction_numerical': 0.006216972334473112, 'mean_word_length': 5.905579399141631, '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': '2513226', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1029, 'n_words': 146}