<commit_before>var https,express,app,compression,helmet,morgan,mongoose,router;
global._=require("lodash");
global.Promise=require("bluebird");
global.config=require("./config/config");
https=require("https");
express=require("express");
compression=require("compression");
helmet=require("helmet");
morgan=require("morgan")("dev");
mongoose=require("mongoose");
Promise.promisifyAll(mongoose.Model);
Promise.promisifyAll(mongoose.Model.prototype);
Promise.promisifyAll(mongoose.Query.prototype);
app=express();
app.disable("x-powered-by");
app.enable("strict routing");
app.set("view engine","jade");
app.use(morgan);
app.use(helmet.frameguard("deny"));
app.use(helmet.nosniff());

app.use("/api",require("./api"));
app.use(compression());
app.use(
  function(req,res,next){
    var n=req.url.indexOf(".");
    if(n===-1){res.sendFile(__dirname+"/public/index.html");}
    else{next();}
  },
  express.static("./public")
);
app.use(function(err,req,res,next){
  console.error(err.stack);
  return res.sendStatus(err.status||500);
});
mongoose.connect("mongodb://"+config.db.host+":27017/"+config.db.database);
https.createServer(config.ssl,app).listen(config.port);
console.log("listening on port %s",config.port);<commit_msg>express url für api<commit_after>var https,express,app,compression,helmet,morgan,mongoose,router;
global._=require("lodash");
global.Promise=require("bluebird");
global.config=require("./config/config");
https=require("https");
express=require("express");
compression=require("compression");
helmet=require("helmet");
morgan=require("morgan")("dev");
mongoose=require("mongoose");
Promise.promisifyAll(mongoose.Model);
Promise.promisifyAll(mongoose.Model.prototype);
Promise.promisifyAll(mongoose.Query.prototype);
app=express();
app.disable("x-powered-by");
app.enable("strict routing");
app.set("view engine","jade");
app.use(morgan);
app.use(helmet.frameguard("deny"));
app.use(helmet.nosniff());

app.use("/statistikwbt/api",require("./api"));
app.use(compression());
app.use(
  function(req,res,next){
    var n=req.url.indexOf(".");
    if(n===-1){res.sendFile(__dirname+"/public/index.html");}
    else{next();}
  },
  express.static("./public")
);
app.use(function(err,req,res,next){
  console.error(err.stack);
  return res.sendStatus(err.status||500);
});
mongoose.connect("mongodb://"+config.db.host+":27017/"+config.db.database);
https.createServer(config.ssl,app).listen(config.port);
console.log("listening on port %s",config.port);
{'fraction_non_alphanumeric': 0.21957137080469066, 'fraction_numerical': 0.007278608976951072, 'mean_word_length': 8.552123552123552, 'pattern_counts': {'":': 2, '<': 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': '2687457', 'n_tokens_mistral': 866, 'n_tokens_neox': 863, 'n_words': 86}