<commit_before>#!/usr/bin/env node

var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var op = require('open');
var path = require('path');

var fileName1 = path.normalize(process.argv[2]),
    fileName2 = path.normalize(process.argv[3]),
    filePath1 = path.join(process.cwd(), fileName1),
    filePath2 = path.join(process.cwd(), fileName2);
   
console.log(filePath1, filePath2);

console.log(process.argv[2]);
console.log(process.cwd());

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

//app.get('/js/bundle.js', function(req, res){
  //  res.sendFile(__dirname + '/js/bundle.js');
//});

io.on('connection', function(socket) {
  console.log('a user connected');
});

var port = process.env.OPENSHIFT_NODEJS_PORT || 8080;
var ip_address = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1';

http.listen(port, ip_address, function(){
    console.log( "Listening on:");
    console.log('http://'+ ip_address  + ':' + port + '/');
    op('http://'+ ip_address  + ':' + port + '/');
});<commit_msg>app.js now serves bundle.js to client.<commit_after>#!/usr/bin/env node

var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var op = require('open');
var path = require('path');
var THREE = require('three');
//var THREE.STLLoader() = require('')

var fileName1 = path.normalize(process.argv[2]),
    fileName2 = path.normalize(process.argv[3]),
    filePath1 = path.join(process.cwd(), fileName1),
    filePath2 = path.join(process.cwd(), fileName2);
   
//console.log(filePath1, filePath2);

//load stl files. In future will modularize and include more formats.


//serve client files

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

app.get('/bundle.js', function(req, res){
    res.sendFile(__dirname + '/bundle.js');
});

io.on('connection', function(socket) {
  console.log('a user connected');
});

var port = process.env.OPENSHIFT_NODEJS_PORT || 8080;
var ip_address = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1';

http.listen(port, ip_address, function(){
    console.log( "Listening on:");
    console.log('http://'+ ip_address  + ':' + port + '/');
    op('http://'+ ip_address  + ':' + port + '/');
});
{'fraction_non_alphanumeric': 0.21105308964316796, 'fraction_numerical': 0.01784160139251523, 'mean_word_length': 4.396713615023474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '990088', 'n_tokens_mistral': 806, 'n_tokens_neox': 798, 'n_words': 157}