<commit_before>var eyes = require('eyes'),
    haibu = require('haibu');

// Create a new client for communicating with the haibu server
var client = new haibu.drone.Client({
  host: process.env.HOST || '127.0.0.1',
  port: 9002
});

// A basic package.json for a node.js application on Haibu
var app = {
   "user": "mikemorris",
   "name": "beercamp",
   "repository": {
     "type": "git",
     "url": "https://github.com/mikemorris/beercamp.git"
   },
   "scripts": {
     "start": "server.js"
   },
   "engine": {
     "node": "0.8.x"
   }
};

// Attempt to start up a new application
client.start(app, function (err, result) {
  if (err) {
    console.log('Error spawning app: ' + app.name);
    return eyes.inspect(err);
  }
  
  console.log('Successfully spawned app:');
  eyes.inspect(result);
});<commit_msg>updating haibu deploy script<commit_after>var eyes = require('eyes'),
    haibu = require('haibu');

// Create a new client for communicating with the haibu server
var client = new haibu.drone.Client({
  host: process.env.HOST || '127.0.0.1',
  port: 9002
});

// A basic package.json for a node.js application on Haibu
var app = {
  "user": "mikemorris",
  "name": "beercamp",
  "repository": {
   "type": "git",
   "url": "https://github.com/mikemorris/beercamp.git"
  },
  "scripts": {
   "start": "server.js"
  },
  "engine": {
   "node": "0.8.x"
  },
  "dependencies": {
    "socket.io": "0.9.x",
    "node-static": "0.6.x",
    "underscore": "1.4.x",
    "async": "0.1.x",
    "redis": "0.8.x",
    "node-uuid": "1.4.x",
    "box2dweb-commonjs": "2.1.x"
  },
  "analyze": true
};

// Attempt to start up a new application
client.start(app, function (err, result) {
  if (err) {
    console.log('Error spawning app: ' + app.name);
    return eyes.inspect(err);
  }
  
  console.log('Successfully spawned app:');
  eyes.inspect(result);
});
{'fraction_non_alphanumeric': 0.19290703922622246, 'fraction_numerical': 0.02095647501343364, 'mean_word_length': 3.0743982494529543, 'pattern_counts': {'":': 27, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6901222', 'n_tokens_mistral': 731, 'n_tokens_neox': 720, 'n_words': 166}