<commit_before>'use strict'

var fs = require('fs');
var https = require('https');

var express = require('express');
var app = express();
app.use(express.static('public'))

var options = {
  key: fs.readFileSync('security/file.pem'),
  cert: fs.readFileSync('security/file.cert')
};

var serverPort = 3000;

var server = https.createServer(options, app);
var io = require('socket.io')(server);

app.get('/', function(req, res) {
  res.sendFile(__dirname + '/public/views/index.html')
});

io.on('connection', function(socket){
  console.log('New socket connection from secure server!');
  socket.emit('message', 'This message is comming from a secure server!')
});

server.listen(serverPort, function(){
  console.log("Secure server up at port " + serverPort);
});<commit_msg>add buyer and seller routes<commit_after>'use strict'

var fs = require('fs');
var https = require('https');

var express = require('express');
var app = express();
app.use(express.static('public'));

//LOAD HTTPS SERVER
var options = {
    key: fs.readFileSync('security/file.pem'),
    cert: fs.readFileSync('security/file.cert')
};

var serverPort = 3000;

var server = https.createServer(options, app);
var io = require('socket.io')(server);

// ROUTES
app.get('/', function(req, res){
    res.sendFile(__dirname + '/public/views/index.html')
});

app.get('/buyer-chat', function(req, res){
  res.send('buyer chat');
});

app.get('/seller-home', function(req, res){
  res.send('seller home');
});

// SOCKET
io.on('connection', function(socket) {
    console.log('New socket connection from secure server!');

});

// SERVER LISTENING
server.listen(serverPort, function() {
    console.log("Secure server up at port " + serverPort);
});
{'fraction_non_alphanumeric': 0.18520675596971461, 'fraction_numerical': 0.004659289458357601, 'mean_word_length': 4.986062717770035, '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': '426594', 'n_tokens_mistral': 563, 'n_tokens_neox': 553, 'n_words': 134}