<commit_before>// [START app]
/*global require, module, static */
/*jslint node: true */
"use strict";
/*var database = require("./own_modules/database.js");*/

var express = require('express');
var app = express();
var path = require('path');

/*app.get('/auth/', function(req, res) {
  res.sendFile(path.join(__dirname, '/www/public', 'register.html'));
});*/
var server = app.listen('80', function () {
  console.log('App listening on port %s', server.address().port);
  console.log('Press Ctrl+C to quit.');
});

app.use(express.static(__dirname + '/www/'));

app.get('/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/welcome.html'));
});

app.get('/login/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/login.html'));
});

app.get('/join/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/register.html'));
});

app.get('/create/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/create-hub.html'));
});
// [END app]

// Starts all hub destructs after server restart and listens for new hubs that will get destructed
/*database.startAllHubDestructs();*/


//      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//
// ----    For testing all values are in currently set to seconds   ------
//
//      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/*

// 40 hours destruction time
database.createHub("Awesome Hub - 1", "http://marcadian.com", 1, true, 40);


// 20 hours destruction time
database.createHub("Awesome Hub - 2", "http://marcadian.io", 1, true, 20);

// No destruction time
database.createHub("Awesome Hub - 2", "http://marcadian.io", 1, true);

*/<commit_msg>Added hub for test views<commit_after>// [START app]
/*global require, module, static */
/*jslint node: true */
"use strict";
/*var database = require("./own_modules/database.js");*/

var express = require('express');
var app = express();
var path = require('path');

/*app.get('/auth/', function(req, res) {
  res.sendFile(path.join(__dirname, '/www/public', 'register.html'));
});*/
var server = app.listen('80', function () {
  console.log('App listening on port %s', server.address().port);
  console.log('Press Ctrl+C to quit.');
});

app.use(express.static(__dirname + '/www/'));

app.get('/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/welcome.html'));
});

app.get('/login/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/login.html'));
});

app.get('/join/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/register.html'));
});

app.get('/create/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/create-hub.html'));
});

app.get('/hub/', function (req, res) {
  res.status(200).sendFile(path.join(__dirname, '/www/html/hub.html'));
});
// [END app]

// Starts all hub destructs after server restart and listens for new hubs that will get destructed
/*database.startAllHubDestructs();*/


//      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//
// ----    For testing all values are in currently set to seconds   ------
//
//      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/*

// 40 hours destruction time
database.createHub("Awesome Hub - 1", "http://marcadian.com", 1, true, 40);


// 20 hours destruction time
database.createHub("Awesome Hub - 2", "http://marcadian.io", 1, true, 20);

// No destruction time
database.createHub("Awesome Hub - 2", "http://marcadian.io", 1, true);

*/
{'fraction_non_alphanumeric': 0.26911399392768426, 'fraction_numerical': 0.016284846812034227, 'mean_word_length': 4.206896551724138, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 13, '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': '1897881', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1150, 'n_words': 270}