<commit_before>//server.js homie



var express    = require('express');        
var app        = express();                 
var bodyParser = require('body-parser');
//var sonus = require('./node_modules/voice/sonus.js');
//var wordList = require('./node_modules/voice/wordList.js');
//var pocketSphinx = require('./node_modules/voice/pocketsphinx.js');
var BinaryServer = require('binaryjs').BinaryServer;
var fs = require('fs');
var http = require('http');





// this will let us get the data from a POST
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());

var port = process.env.PORT || 9000;       

// routes for api
var router = express.Router();              


router.get('/', function(req, res) {
    console.log("We made it");
    res.sendfile('public/index.html');
});




// more routes for our API will happen here



router.post('/audio', function(req, res) {
   
    console.log("Your audio is being translated");
    
    
    
    
    
    
});


// REGISTER OUR ROUTES -------------------------------
// all of our routes will be prefixed with /api
app.use('/api', router);

var server = http.createServer(app).listen(port);

// START THE SERVER
// =============================================================================

console.log('Magic happens on port ' + port);<commit_msg>Added A binary server object called BS<commit_after>//server.js homie



var express    = require('express');        
var app        = express();                 
var bodyParser = require('body-parser');
//var sonus = require('./node_modules/voice/sonus.js');
//var wordList = require('./node_modules/voice/wordList.js');
//var pocketSphinx = require('./node_modules/voice/pocketsphinx.js');
var BinaryServer = require('binaryjs').BinaryServer;
var fs = require('fs');
var http = require('http');





// this will let us get the data from a POST
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());

var bs = new BinaryServer({port: 3000});

var port = process.env.PORT || 9000;       

// routes for api
var router = express.Router();              


router.get('/', function(req, res) {
    console.log("We made it");
    res.sendfile('public/index.html');
});




// more routes for our API will happen here



router.post('/audio', function(req, res) {
   
    console.log("Your audio is being translated");
    
    
    
    
    
    
});


// REGISTER OUR ROUTES -------------------------------
// all of our routes will be prefixed with /api
app.use('/api', router);


var server = http.createServer(app).listen(port);

// START THE SERVER
// =============================================================================

console.log('Magic happens on port ' + port);
{'fraction_non_alphanumeric': 0.22226277372262773, 'fraction_numerical': 0.004379562043795621, 'mean_word_length': 2.8551336146272854, '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': '38996', 'n_tokens_mistral': 815, 'n_tokens_neox': 757, 'n_words': 212}