incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmue...@apache.org
Subject [49/51] [partial] Apache-ization, port to node.js
Date Wed, 15 Feb 2012 17:42:38 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/node_modules/qs/test/stringify.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/qs/test/stringify.js b/weinre.server/node_modules/express/node_modules/qs/test/stringify.js
new file mode 100644
index 0000000..c2195cb
--- /dev/null
+++ b/weinre.server/node_modules/express/node_modules/qs/test/stringify.js
@@ -0,0 +1,103 @@
+
+/**
+ * Module dependencies.
+ */
+
+var qs = require('../')
+  , should = require('should')
+  , str_identities = {
+    'basics': [
+      { str: 'foo=bar', obj: {'foo' : 'bar'}},
+      { str: 'foo=%22bar%22', obj: {'foo' : '\"bar\"'}},
+      { str: 'foo=', obj: {'foo': ''}},
+      { str: 'foo=1&bar=2', obj: {'foo' : '1', 'bar' : '2'}},
+      { str: 'my%20weird%20field=q1!2%22\'w%245%267%2Fz8)%3F', obj: {'my weird field': "q1!2\"'w$5&7/z8)?"}},
+      { str: 'foo%3Dbaz=bar', obj: {'foo=baz': 'bar'}},
+      { str: 'foo=bar&bar=baz', obj: {foo: 'bar', bar: 'baz'}}
+    ],
+    'escaping': [
+      { str: 'foo=foo%20bar', obj: {foo: 'foo bar'}},
+      { str: 'cht=p3&chd=t%3A60%2C40&chs=250x100&chl=Hello%7CWorld', obj: {
+          cht: 'p3'
+        , chd: 't:60,40'
+        , chs: '250x100'
+        , chl: 'Hello|World'
+      }}
+    ],
+    'nested': [
+      { str: 'foo[]=bar&foo[]=quux', obj: {'foo' : ['bar', 'quux']}},
+      { str: 'foo[]=bar', obj: {foo: ['bar']}},
+      { str: 'foo[]=1&foo[]=2', obj: {'foo' : ['1', '2']}},
+      { str: 'foo=bar&baz[]=1&baz[]=2&baz[]=3', obj: {'foo' : 'bar', 'baz' : ['1', '2', '3']}},
+      { str: 'foo[]=bar&baz[]=1&baz[]=2&baz[]=3', obj: {'foo' : ['bar'], 'baz' : ['1', '2', '3']}},
+      { str: 'x[y][z]=1', obj: {'x' : {'y' : {'z' : '1'}}}},
+      { str: 'x[y][z][]=1', obj: {'x' : {'y' : {'z' : ['1']}}}},
+      { str: 'x[y][z]=2', obj: {'x' : {'y' : {'z' : '2'}}}},
+      { str: 'x[y][z][]=1&x[y][z][]=2', obj: {'x' : {'y' : {'z' : ['1', '2']}}}},
+      { str: 'x[y][][z]=1', obj: {'x' : {'y' : [{'z' : '1'}]}}},
+      { str: 'x[y][][z][]=1', obj: {'x' : {'y' : [{'z' : ['1']}]}}},
+      { str: 'x[y][][z]=1&x[y][][w]=2', obj: {'x' : {'y' : [{'z' : '1', 'w' : '2'}]}}},
+      { str: 'x[y][][v][w]=1', obj: {'x' : {'y' : [{'v' : {'w' : '1'}}]}}},
+      { str: 'x[y][][z]=1&x[y][][v][w]=2', obj: {'x' : {'y' : [{'z' : '1', 'v' : {'w' : '2'}}]}}},
+      { str: 'x[y][][z]=1&x[y][][z]=2', obj: {'x' : {'y' : [{'z' : '1'}, {'z' : '2'}]}}},
+      { str: 'x[y][][z]=1&x[y][][w]=a&x[y][][z]=2&x[y][][w]=3', obj: {'x' : {'y' : [{'z' : '1', 'w' : 'a'}, {'z' : '2', 'w' : '3'}]}}},
+      { str: 'user[name][first]=tj&user[name][last]=holowaychuk', obj: { user: { name: { first: 'tj', last: 'holowaychuk' }}}}
+    ],
+    'errors': [
+      { obj: 'foo=bar',     message: 'stringify expects an object' },
+      { obj: ['foo', 'bar'], message: 'stringify expects an object' }
+    ],
+    'numbers': [
+      { str: 'limit[]=1&limit[]=2&limit[]=3', obj: { limit: [1, 2, '3'] }},
+      { str: 'limit=1', obj: { limit: 1 }}
+    ]
+  };
+  
+
+// Assert error
+function err(fn, msg){
+  var err;
+  try {
+    fn();
+  } catch (e) {
+    should.equal(e.message, msg);
+    return;
+  }
+  throw new Error('no exception thrown, expected "' + msg + '"');
+}
+
+function test(type) {
+  var str, obj;
+  for (var i = 0; i < str_identities[type].length; i++) {
+    str = str_identities[type][i].str;
+    obj = str_identities[type][i].obj;
+    qs.stringify(obj).should.eql(str);
+  }
+}
+
+module.exports = {
+  'test basics': function() {
+    test('basics');
+  },
+
+  'test escaping': function() {
+    test('escaping');
+  },
+
+  'test nested': function() {
+    test('nested');
+  },
+  
+  'test numbers': function(){
+    test('numbers');
+  },
+
+  'test errors': function() {
+    var obj, message;
+    for (var i = 0; i < str_identities['errors'].length; i++) {
+      message = str_identities['errors'][i].message;
+      obj = str_identities['errors'][i].obj;
+      err(function(){ qs.stringify(obj) }, message);
+    }
+  }
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/foo/app.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/foo/app.js b/weinre.server/node_modules/express/testing/foo/app.js
new file mode 100644
index 0000000..7574676
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/foo/app.js
@@ -0,0 +1,35 @@
+
+/**
+ * Module dependencies.
+ */
+
+var express = require('express')
+  , routes = require('./routes')
+
+var app = module.exports = express.createServer();
+
+// Configuration
+
+app.configure(function(){
+  app.set('views', __dirname + '/views');
+  app.set('view engine', 'jade');
+  app.use(express.bodyParser());
+  app.use(express.methodOverride());
+  app.use(app.router);
+  app.use(express.static(__dirname + '/public'));
+});
+
+app.configure('development', function(){
+  app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); 
+});
+
+app.configure('production', function(){
+  app.use(express.errorHandler()); 
+});
+
+// Routes
+
+app.get('/', routes.index);
+
+app.listen(3000);
+console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/foo/public/stylesheets/style.css
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/foo/public/stylesheets/style.css b/weinre.server/node_modules/express/testing/foo/public/stylesheets/style.css
new file mode 100644
index 0000000..30e047d
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/foo/public/stylesheets/style.css
@@ -0,0 +1,8 @@
+body {
+  padding: 50px;
+  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
+}
+
+a {
+  color: #00B7FF;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/foo/routes/index.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/foo/routes/index.js b/weinre.server/node_modules/express/testing/foo/routes/index.js
new file mode 100644
index 0000000..0b2205c
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/foo/routes/index.js
@@ -0,0 +1,10 @@
+
+/*
+ * GET home page.
+ */
+
+exports.index = function(req, res){
+  res.writeHead(200);
+  req.doesnotexist();
+  // res.render('index', { title: 'Express' })
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/foo/views/index.jade
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/foo/views/index.jade b/weinre.server/node_modules/express/testing/foo/views/index.jade
new file mode 100644
index 0000000..c9c35fa
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/foo/views/index.jade
@@ -0,0 +1,2 @@
+h1= title
+p Welcome to #{title}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/foo/views/layout.jade
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/foo/views/layout.jade b/weinre.server/node_modules/express/testing/foo/views/layout.jade
new file mode 100644
index 0000000..1a36941
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/foo/views/layout.jade
@@ -0,0 +1,6 @@
+!!!
+html
+  head
+    title= title
+    link(rel='stylesheet', href='/stylesheets/style.css')
+  body!= body
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/index.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/index.js b/weinre.server/node_modules/express/testing/index.js
new file mode 100644
index 0000000..3c5185d
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/index.js
@@ -0,0 +1,43 @@
+
+/**
+ * Module dependencies.
+ */
+
+var express = require('../')
+  , http = require('http')
+  , connect = require('connect');
+
+var app = express.createServer();
+
+app.get('/', function(req, res){
+  req.foo();
+  res.send('test');
+});
+
+// app.set('views', __dirname + '/views');
+// app.set('view engine', 'jade');
+// 
+// app.configure(function(){
+//   app.use(function(req, res, next){
+//     debugger
+//     res.write('first');
+//     console.error('first');
+//     next();
+//   });
+// 
+//   app.use(app.router);
+// 
+//   app.use(function(req, res, next){
+//     console.error('last');
+//     res.end('last');
+//   });
+// });
+// 
+// app.get('/', function(req, res, next){
+//   console.error('middle');
+//   res.write(' route ');
+//   next();
+// });
+
+app.listen(3000);
+console.log('listening on port 3000');
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/public/test.txt
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/public/test.txt b/weinre.server/node_modules/express/testing/public/test.txt
new file mode 100644
index 0000000..cb9a165
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/public/test.txt
@@ -0,0 +1,2971 @@
+foo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+bazfoo
+bar
+baz
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/views/page.html
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/views/page.html b/weinre.server/node_modules/express/testing/views/page.html
new file mode 100644
index 0000000..4ff9827
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/views/page.html
@@ -0,0 +1 @@
+p register test
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/views/page.jade
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/views/page.jade b/weinre.server/node_modules/express/testing/views/page.jade
new file mode 100644
index 0000000..9c3f888
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/views/page.jade
@@ -0,0 +1,3 @@
+html
+  body
+    h1 test
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/views/test.md
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/views/test.md b/weinre.server/node_modules/express/testing/views/test.md
new file mode 100644
index 0000000..9139ff4
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/views/test.md
@@ -0,0 +1 @@
+testing _some_ markdown
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/views/user/index.jade
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/views/user/index.jade b/weinre.server/node_modules/express/testing/views/user/index.jade
new file mode 100644
index 0000000..1b66a4f
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/views/user/index.jade
@@ -0,0 +1 @@
+p user page
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/express/testing/views/user/list.jade
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/testing/views/user/list.jade b/weinre.server/node_modules/express/testing/views/user/list.jade
new file mode 100644
index 0000000..ed2b471
--- /dev/null
+++ b/weinre.server/node_modules/express/testing/views/user/list.jade
@@ -0,0 +1 @@
+p user list page
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/nopt/.npmignore
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/.npmignore b/weinre.server/node_modules/nopt/.npmignore
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/nopt/LICENSE
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/LICENSE b/weinre.server/node_modules/nopt/LICENSE
new file mode 100644
index 0000000..05a4010
--- /dev/null
+++ b/weinre.server/node_modules/nopt/LICENSE
@@ -0,0 +1,23 @@
+Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
+All rights reserved.
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/nopt/README.md
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/README.md b/weinre.server/node_modules/nopt/README.md
new file mode 100644
index 0000000..eeddfd4
--- /dev/null
+++ b/weinre.server/node_modules/nopt/README.md
@@ -0,0 +1,208 @@
+If you want to write an option parser, and have it be good, there are
+two ways to do it.  The Right Way, and the Wrong Way.
+
+The Wrong Way is to sit down and write an option parser.  We've all done
+that.
+
+The Right Way is to write some complex configurable program with so many
+options that you go half-insane just trying to manage them all, and put
+it off with duct-tape solutions until you see exactly to the core of the
+problem, and finally snap and write an awesome option parser.
+
+If you want to write an option parser, don't write an option parser.
+Write a package manager, or a source control system, or a service
+restarter, or an operating system.  You probably won't end up with a
+good one of those, but if you don't give up, and you are relentless and
+diligent enough in your procrastination, you may just end up with a very
+nice option parser.
+
+## USAGE
+
+    // my-program.js
+    var nopt = require("nopt")
+      , Stream = require("stream").Stream
+      , path = require("path")
+      , knownOpts = { "foo" : [String, null]
+                    , "bar" : [Stream, Number]
+                    , "baz" : path
+                    , "bloo" : [ "big", "medium", "small" ]
+                    , "flag" : Boolean
+                    , "pick" : Boolean
+                    , "many" : [String, Array]
+                    }
+      , shortHands = { "foofoo" : ["--foo", "Mr. Foo"]
+                     , "b7" : ["--bar", "7"]
+                     , "m" : ["--bloo", "medium"]
+                     , "p" : ["--pick"]
+                     , "f" : ["--flag"]
+                     }
+                 // everything is optional.
+                 // knownOpts and shorthands default to {}
+                 // arg list defaults to process.argv
+                 // slice defaults to 2
+      , parsed = nopt(knownOpts, shortHands, process.argv, 2)
+    console.log(parsed)
+
+This would give you support for any of the following:
+
+```bash
+$ node my-program.js --foo "blerp" --no-flag
+{ "foo" : "blerp", "flag" : false }
+
+$ node my-program.js ---bar 7 --foo "Mr. Hand" --flag
+{ bar: 7, foo: "Mr. Hand", flag: true }
+
+$ node my-program.js --foo "blerp" -f -----p
+{ foo: "blerp", flag: true, pick: true }
+
+$ node my-program.js -fp --foofoo
+{ foo: "Mr. Foo", flag: true, pick: true }
+
+$ node my-program.js --foofoo -- -fp  # -- stops the flag parsing.
+{ foo: "Mr. Foo", argv: { remain: ["-fp"] } }
+
+$ node my-program.js --blatzk 1000 -fp # unknown opts are ok.
+{ blatzk: 1000, flag: true, pick: true }
+
+$ node my-program.js --blatzk true -fp # but they need a value
+{ blatzk: true, flag: true, pick: true }
+
+$ node my-program.js --no-blatzk -fp # unless they start with "no-"
+{ blatzk: false, flag: true, pick: true }
+
+$ node my-program.js --baz b/a/z # known paths are resolved.
+{ baz: "/Users/isaacs/b/a/z" }
+
+# if Array is one of the types, then it can take many
+# values, and will always be an array.  The other types provided
+# specify what types are allowed in the list.
+
+$ node my-program.js --many 1 --many null --many foo
+{ many: ["1", "null", "foo"] }
+
+$ node my-program.js --many foo
+{ many: ["foo"] }
+```
+
+Read the tests at the bottom of `lib/nopt.js` for more examples of
+what this puppy can do.
+
+## Types
+
+The following types are supported, and defined on `nopt.typeDefs`
+
+* String: A normal string.  No parsing is done.
+* path: A file system path.  Gets resolved against cwd if not absolute.
+* url: A url.  If it doesn't parse, it isn't accepted.
+* Number: Must be numeric.
+* Date: Must parse as a date. If it does, and `Date` is one of the options,
+  then it will return a Date object, not a string.
+* Boolean: Must be either `true` or `false`.  If an option is a boolean,
+  then it does not need a value, and its presence will imply `true` as
+  the value.  To negate boolean flags, do `--no-whatever` or `--whatever
+  false`
+* NaN: Means that the option is strictly not allowed.  Any value will
+  fail.
+* Stream: An object matching the "Stream" class in node.  Valuable
+  for use when validating programmatically.  (npm uses this to let you
+  supply any WriteStream on the `outfd` and `logfd` config options.)
+* Array: If `Array` is specified as one of the types, then the value
+  will be parsed as a list of options.  This means that multiple values
+  can be specified, and that the value will always be an array.
+
+If a type is an array of values not on this list, then those are
+considered valid values.  For instance, in the example above, the
+`--bloo` option can only be one of `"big"`, `"medium"`, or `"small"`,
+and any other value will be rejected.
+
+When parsing unknown fields, `"true"`, `"false"`, and `"null"` will be
+interpreted as their JavaScript equivalents, and numeric values will be
+interpreted as a number.
+
+You can also mix types and values, or multiple types, in a list.  For
+instance `{ blah: [Number, null] }` would allow a value to be set to
+either a Number or null.
+
+To define a new type, add it to `nopt.typeDefs`.  Each item in that
+hash is an object with a `type` member and a `validate` method.  The
+`type` member is an object that matches what goes in the type list.  The
+`validate` method is a function that gets called with `validate(data,
+key, val)`.  Validate methods should assign `data[key]` to the valid
+value of `val` if it can be handled properly, or return boolean
+`false` if it cannot.
+
+You can also call `nopt.clean(data, types, typeDefs)` to clean up a
+config object and remove its invalid properties.
+
+## Error Handling
+
+By default, nopt outputs a warning to standard error when invalid
+options are found.  You can change this behavior by assigning a method
+to `nopt.invalidHandler`.  This method will be called with
+the offending `nopt.invalidHandler(key, val, types)`.
+
+If no `nopt.invalidHandler` is assigned, then it will console.error
+its whining.  If it is assigned to boolean `false` then the warning is
+suppressed.
+
+## Abbreviations
+
+Yes, they are supported.  If you define options like this:
+
+```javascript
+{ "foolhardyelephants" : Boolean
+, "pileofmonkeys" : Boolean }
+```
+
+Then this will work:
+
+```bash
+node program.js --foolhar --pil
+node program.js --no-f --pileofmon
+# etc.
+```
+
+## Shorthands
+
+Shorthands are a hash of shorter option names to a snippet of args that
+they expand to.
+
+If multiple one-character shorthands are all combined, and the
+combination does not unambiguously match any other option or shorthand,
+then they will be broken up into their constituent parts.  For example:
+
+```json
+{ "s" : ["--loglevel", "silent"]
+, "g" : "--global"
+, "f" : "--force"
+, "p" : "--parseable"
+, "l" : "--long"
+}
+```
+
+```bash
+npm ls -sgflp
+# just like doing this:
+npm ls --loglevel silent --global --force --long --parseable
+```
+
+## The Rest of the args
+
+The config object returned by nopt is given a special member called
+`argv`, which is an object with the following fields:
+
+* `remain`: The remaining args after all the parsing has occurred.
+* `original`: The args as they originally appeared.
+* `cooked`: The args after flags and shorthands are expanded.
+
+## Slicing
+
+Node programs are called with more or less the exact argv as it appears
+in C land, after the v8 and node-specific options have been plucked off.
+As such, `argv[0]` is always `node` and `argv[1]` is always the
+JavaScript program being run.
+
+That's usually not very useful to you.  So they're sliced off by
+default.  If you want them, then you can pass in `0` as the last
+argument, or any other number that you'd like to slice off the start of
+the list.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/nopt/bin/nopt.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/bin/nopt.js b/weinre.server/node_modules/nopt/bin/nopt.js
new file mode 100755
index 0000000..df90c72
--- /dev/null
+++ b/weinre.server/node_modules/nopt/bin/nopt.js
@@ -0,0 +1,44 @@
+#!/usr/bin/env node
+var nopt = require("../lib/nopt")
+  , types = { num: Number
+            , bool: Boolean
+            , help: Boolean
+            , list: Array
+            , "num-list": [Number, Array]
+            , "str-list": [String, Array]
+            , "bool-list": [Boolean, Array]
+            , str: String }
+  , shorthands = { s: [ "--str", "astring" ]
+                 , b: [ "--bool" ]
+                 , nb: [ "--no-bool" ]
+                 , tft: [ "--bool-list", "--no-bool-list", "--bool-list", "true" ]
+                 , "?": ["--help"]
+                 , h: ["--help"]
+                 , H: ["--help"]
+                 , n: [ "--num", "125" ] }
+  , parsed = nopt( types
+                 , shorthands
+                 , process.argv
+                 , 2 )
+
+console.log("parsed", parsed)
+
+if (parsed.help) {
+  console.log("")
+  console.log("nopt cli tester")
+  console.log("")
+  console.log("types")
+  console.log(Object.keys(types).map(function M (t) {
+    var type = types[t]
+    if (Array.isArray(type)) {
+      return [t, type.map(function (type) { return type.name })]
+    }
+    return [t, type && type.name]
+  }).reduce(function (s, i) {
+    s[i[0]] = i[1]
+    return s
+  }, {}))
+  console.log("")
+  console.log("shorthands")
+  console.log(shorthands)
+}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/nopt/examples/my-program.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/examples/my-program.js b/weinre.server/node_modules/nopt/examples/my-program.js
new file mode 100755
index 0000000..142447e
--- /dev/null
+++ b/weinre.server/node_modules/nopt/examples/my-program.js
@@ -0,0 +1,30 @@
+#!/usr/bin/env node
+
+//process.env.DEBUG_NOPT = 1
+
+// my-program.js
+var nopt = require("../lib/nopt")
+  , Stream = require("stream").Stream
+  , path = require("path")
+  , knownOpts = { "foo" : [String, null]
+                , "bar" : [Stream, Number]
+                , "baz" : path
+                , "bloo" : [ "big", "medium", "small" ]
+                , "flag" : Boolean
+                , "pick" : Boolean
+                }
+  , shortHands = { "foofoo" : ["--foo", "Mr. Foo"]
+                 , "b7" : ["--bar", "7"]
+                 , "m" : ["--bloo", "medium"]
+                 , "p" : ["--pick"]
+                 , "f" : ["--flag", "true"]
+                 , "g" : ["--flag"]
+                 , "s" : "--flag"
+                 }
+             // everything is optional.
+             // knownOpts and shorthands default to {}
+             // arg list defaults to process.argv
+             // slice defaults to 2
+  , parsed = nopt(knownOpts, shortHands, process.argv, 2)
+
+console.log("parsed =\n"+ require("util").inspect(parsed))

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/nopt/lib/nopt.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/lib/nopt.js b/weinre.server/node_modules/nopt/lib/nopt.js
new file mode 100644
index 0000000..ff802da
--- /dev/null
+++ b/weinre.server/node_modules/nopt/lib/nopt.js
@@ -0,0 +1,552 @@
+// info about each config option.
+
+var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG
+  ? function () { console.error.apply(console, arguments) }
+  : function () {}
+
+var url = require("url")
+  , path = require("path")
+  , Stream = require("stream").Stream
+  , abbrev = require("abbrev")
+
+module.exports = exports = nopt
+exports.clean = clean
+
+exports.typeDefs =
+  { String  : { type: String,  validate: validateString  }
+  , Boolean : { type: Boolean, validate: validateBoolean }
+  , url     : { type: url,     validate: validateUrl     }
+  , Number  : { type: Number,  validate: validateNumber  }
+  , path    : { type: path,    validate: validatePath    }
+  , Stream  : { type: Stream,  validate: validateStream  }
+  , Date    : { type: Date,    validate: validateDate    }
+  }
+
+function nopt (types, shorthands, args, slice) {
+  args = args || process.argv
+  types = types || {}
+  shorthands = shorthands || {}
+  if (typeof slice !== "number") slice = 2
+
+  debug(types, shorthands, args, slice)
+
+  args = args.slice(slice)
+  var data = {}
+    , key
+    , remain = []
+    , cooked = args
+    , original = args.slice(0)
+
+  parse(args, data, remain, types, shorthands)
+  // now data is full
+  clean(data, types, exports.typeDefs)
+  data.argv = {remain:remain,cooked:cooked,original:original}
+  data.argv.toString = function () {
+    return this.original.map(JSON.stringify).join(" ")
+  }
+  return data
+}
+
+function clean (data, types, typeDefs) {
+  typeDefs = typeDefs || exports.typeDefs
+  var remove = {}
+    , typeDefault = [false, true, null, String, Number]
+
+  Object.keys(data).forEach(function (k) {
+    if (k === "argv") return
+    var val = data[k]
+      , isArray = Array.isArray(val)
+      , type = types[k]
+    if (!isArray) val = [val]
+    if (!type) type = typeDefault
+    if (type === Array) type = typeDefault.concat(Array)
+    if (!Array.isArray(type)) type = [type]
+
+    debug("val=%j", val)
+    debug("types=", type)
+    val = val.map(function (val) {
+      // if it's an unknown value, then parse false/true/null/numbers/dates
+      if (typeof val === "string") {
+        debug("string %j", val)
+        val = val.trim()
+        if ((val === "null" && ~type.indexOf(null))
+            || (val === "true" &&
+               (~type.indexOf(true) || ~type.indexOf(Boolean)))
+            || (val === "false" &&
+               (~type.indexOf(false) || ~type.indexOf(Boolean)))) {
+          val = JSON.parse(val)
+          debug("jsonable %j", val)
+        } else if (~type.indexOf(Number) && !isNaN(val)) {
+          debug("convert to number", val)
+          val = +val
+        } else if (~type.indexOf(Date) && !isNaN(Date.parse(val))) {
+          debug("convert to date", val)
+          val = new Date(val)
+        }
+      }
+
+      if (!types.hasOwnProperty(k)) {
+        return val
+      }
+
+      // allow `--no-blah` to set 'blah' to null if null is allowed
+      if (val === false && ~type.indexOf(null) &&
+          !(~type.indexOf(false) || ~type.indexOf(Boolean))) {
+        val = null
+      }
+
+      var d = {}
+      d[k] = val
+      debug("prevalidated val", d, val, types[k])
+      if (!validate(d, k, val, types[k], typeDefs)) {
+        if (exports.invalidHandler) {
+          exports.invalidHandler(k, val, types[k], data)
+        } else if (exports.invalidHandler !== false) {
+          debug("invalid: "+k+"="+val, types[k])
+        }
+        return remove
+      }
+      debug("validated val", d, val, types[k])
+      return d[k]
+    }).filter(function (val) { return val !== remove })
+
+    if (!val.length) delete data[k]
+    else if (isArray) {
+      debug(isArray, data[k], val)
+      data[k] = val
+    } else data[k] = val[0]
+
+    debug("k=%s val=%j", k, val, data[k])
+  })
+}
+
+function validateString (data, k, val) {
+  data[k] = String(val)
+}
+
+function validatePath (data, k, val) {
+  data[k] = path.resolve(String(val))
+  return true
+}
+
+function validateNumber (data, k, val) {
+  debug("validate Number %j %j %j", k, val, isNaN(val))
+  if (isNaN(val)) return false
+  data[k] = +val
+}
+
+function validateDate (data, k, val) {
+  debug("validate Date %j %j %j", k, val, Date.parse(val))
+  var s = Date.parse(val)
+  if (isNaN(s)) return false
+  data[k] = new Date(val)
+}
+
+function validateBoolean (data, k, val) {
+  if (val instanceof Boolean) val = val.valueOf()
+  else if (typeof val === "string") {
+    if (!isNaN(val)) val = !!(+val)
+    else if (val === "null" || val === "false") val = false
+    else val = true
+  } else val = !!val
+  data[k] = val
+}
+
+function validateUrl (data, k, val) {
+  val = url.parse(String(val))
+  if (!val.host) return false
+  data[k] = val.href
+}
+
+function validateStream (data, k, val) {
+  if (!(val instanceof Stream)) return false
+  data[k] = val
+}
+
+function validate (data, k, val, type, typeDefs) {
+  // arrays are lists of types.
+  if (Array.isArray(type)) {
+    for (var i = 0, l = type.length; i < l; i ++) {
+      if (type[i] === Array) continue
+      if (validate(data, k, val, type[i], typeDefs)) return true
+    }
+    delete data[k]
+    return false
+  }
+
+  // an array of anything?
+  if (type === Array) return true
+
+  // NaN is poisonous.  Means that something is not allowed.
+  if (type !== type) {
+    debug("Poison NaN", k, val, type)
+    delete data[k]
+    return false
+  }
+
+  // explicit list of values
+  if (val === type) {
+    debug("Explicitly allowed %j", val)
+    // if (isArray) (data[k] = data[k] || []).push(val)
+    // else data[k] = val
+    data[k] = val
+    return true
+  }
+
+  // now go through the list of typeDefs, validate against each one.
+  var ok = false
+    , types = Object.keys(typeDefs)
+  for (var i = 0, l = types.length; i < l; i ++) {
+    debug("test type %j %j %j", k, val, types[i])
+    var t = typeDefs[types[i]]
+    if (t && type === t.type) {
+      var d = {}
+      ok = false !== t.validate(d, k, val)
+      val = d[k]
+      if (ok) {
+        // if (isArray) (data[k] = data[k] || []).push(val)
+        // else data[k] = val
+        data[k] = val
+        break
+      }
+    }
+  }
+  debug("OK? %j (%j %j %j)", ok, k, val, types[i])
+
+  if (!ok) delete data[k]
+  return ok
+}
+
+function parse (args, data, remain, types, shorthands) {
+  debug("parse", args, data, remain)
+
+  var key = null
+    , abbrevs = abbrev(Object.keys(types))
+    , shortAbbr = abbrev(Object.keys(shorthands))
+
+  for (var i = 0; i < args.length; i ++) {
+    var arg = args[i]
+    debug("arg", arg)
+
+    if (arg.match(/^-{2,}$/)) {
+      // done with keys.
+      // the rest are args.
+      remain.push.apply(remain, args.slice(i + 1))
+      args[i] = "--"
+      break
+    }
+    if (arg.charAt(0) === "-") {
+      if (arg.indexOf("=") !== -1) {
+        var v = arg.split("=")
+        arg = v.shift()
+        v = v.join("=")
+        args.splice.apply(args, [i, 1].concat([arg, v]))
+      }
+      // see if it's a shorthand
+      // if so, splice and back up to re-parse it.
+      var shRes = resolveShort(arg, shorthands, shortAbbr, abbrevs)
+      debug("arg=%j shRes=%j", arg, shRes)
+      if (shRes) {
+        debug(arg, shRes)
+        args.splice.apply(args, [i, 1].concat(shRes))
+        if (arg !== shRes[0]) {
+          i --
+          continue
+        }
+      }
+      arg = arg.replace(/^-+/, "")
+      var no = false
+      while (arg.toLowerCase().indexOf("no-") === 0) {
+        no = !no
+        arg = arg.substr(3)
+      }
+
+      if (abbrevs[arg]) arg = abbrevs[arg]
+
+      var isArray = types[arg] === Array ||
+        Array.isArray(types[arg]) && types[arg].indexOf(Array) !== -1
+
+      var val
+        , la = args[i + 1]
+
+      var isBool = no ||
+        types[arg] === Boolean ||
+        Array.isArray(types[arg]) && types[arg].indexOf(Boolean) !== -1 ||
+        (la === "false" &&
+         (types[arg] === null ||
+          Array.isArray(types[arg]) && ~types[arg].indexOf(null)))
+
+      if (isBool) {
+        // just set and move along
+        val = !no
+        // however, also support --bool true or --bool false
+        if (la === "true" || la === "false") {
+          val = JSON.parse(la)
+          la = null
+          if (no) val = !val
+          i ++
+        }
+
+        // also support "foo":[Boolean, "bar"] and "--foo bar"
+        if (Array.isArray(types[arg]) && la) {
+          if (~types[arg].indexOf(la)) {
+            // an explicit type
+            val = la
+            i ++
+          } else if ( la === "null" && ~types[arg].indexOf(null) ) {
+            // null allowed
+            val = null
+            i ++
+          } else if ( !la.match(/^-{2,}[^-]/) &&
+                      !isNaN(la) &&
+                      ~types[arg].indexOf(Number) ) {
+            // number
+            val = +la
+            i ++
+          } else if ( !la.match(/^-[^-]/) && ~types[arg].indexOf(String) ) {
+            // string
+            val = la
+            i ++
+          }
+        }
+
+        if (isArray) (data[arg] = data[arg] || []).push(val)
+        else data[arg] = val
+
+        continue
+      }
+
+      if (la && la.match(/^-{2,}$/)) {
+        la = undefined
+        i --
+      }
+
+      val = la === undefined ? true : la
+      if (isArray) (data[arg] = data[arg] || []).push(val)
+      else data[arg] = val
+
+      i ++
+      continue
+    }
+    remain.push(arg)
+  }
+}
+
+function resolveShort (arg, shorthands, shortAbbr, abbrevs) {
+  // handle single-char shorthands glommed together, like
+  // npm ls -glp, but only if there is one dash, and only if
+  // all of the chars are single-char shorthands, and it's
+  // not a match to some other abbrev.
+  arg = arg.replace(/^-+/, '')
+  if (abbrevs[arg] && !shorthands[arg]) {
+    return null
+  }
+  if (shortAbbr[arg]) {
+    arg = shortAbbr[arg]
+  } else {
+    var singles = shorthands.___singles
+    if (!singles) {
+      singles = Object.keys(shorthands).filter(function (s) {
+        return s.length === 1
+      }).reduce(function (l,r) { l[r] = true ; return l }, {})
+      shorthands.___singles = singles
+    }
+    var chrs = arg.split("").filter(function (c) {
+      return singles[c]
+    })
+    if (chrs.join("") === arg) return chrs.map(function (c) {
+      return shorthands[c]
+    }).reduce(function (l, r) {
+      return l.concat(r)
+    }, [])
+  }
+
+  if (shorthands[arg] && !Array.isArray(shorthands[arg])) {
+    shorthands[arg] = shorthands[arg].split(/\s+/)
+  }
+  return shorthands[arg]
+}
+
+if (module === require.main) {
+var assert = require("assert")
+  , util = require("util")
+
+  , shorthands =
+    { s : ["--loglevel", "silent"]
+    , d : ["--loglevel", "info"]
+    , dd : ["--loglevel", "verbose"]
+    , ddd : ["--loglevel", "silly"]
+    , noreg : ["--no-registry"]
+    , reg : ["--registry"]
+    , "no-reg" : ["--no-registry"]
+    , silent : ["--loglevel", "silent"]
+    , verbose : ["--loglevel", "verbose"]
+    , h : ["--usage"]
+    , H : ["--usage"]
+    , "?" : ["--usage"]
+    , help : ["--usage"]
+    , v : ["--version"]
+    , f : ["--force"]
+    , desc : ["--description"]
+    , "no-desc" : ["--no-description"]
+    , "local" : ["--no-global"]
+    , l : ["--long"]
+    , p : ["--parseable"]
+    , porcelain : ["--parseable"]
+    , g : ["--global"]
+    }
+
+  , types =
+    { aoa: Array
+    , nullstream: [null, Stream]
+    , date: Date
+    , str: String
+    , browser : String
+    , cache : path
+    , color : ["always", Boolean]
+    , depth : Number
+    , description : Boolean
+    , dev : Boolean
+    , editor : path
+    , force : Boolean
+    , global : Boolean
+    , globalconfig : path
+    , group : [String, Number]
+    , gzipbin : String
+    , logfd : [Number, Stream]
+    , loglevel : ["silent","win","error","warn","info","verbose","silly"]
+    , long : Boolean
+    , "node-version" : [false, String]
+    , npaturl : url
+    , npat : Boolean
+    , "onload-script" : [false, String]
+    , outfd : [Number, Stream]
+    , parseable : Boolean
+    , pre: Boolean
+    , prefix: path
+    , proxy : url
+    , "rebuild-bundle" : Boolean
+    , registry : url
+    , searchopts : String
+    , searchexclude: [null, String]
+    , shell : path
+    , t: [Array, String]
+    , tag : String
+    , tar : String
+    , tmp : path
+    , "unsafe-perm" : Boolean
+    , usage : Boolean
+    , user : String
+    , username : String
+    , userconfig : path
+    , version : Boolean
+    , viewer: path
+    , _exit : Boolean
+    }
+
+; [["-v", {version:true}, []]
+  ,["---v", {version:true}, []]
+  ,["ls -s --no-reg connect -d",
+    {loglevel:"info",registry:null},["ls","connect"]]
+  ,["ls ---s foo",{loglevel:"silent"},["ls","foo"]]
+  ,["ls --registry blargle", {}, ["ls"]]
+  ,["--no-registry", {registry:null}, []]
+  ,["--no-color true", {color:false}, []]
+  ,["--no-color false", {color:true}, []]
+  ,["--no-color", {color:false}, []]
+  ,["--color false", {color:false}, []]
+  ,["--color --logfd 7", {logfd:7,color:true}, []]
+  ,["--color=true", {color:true}, []]
+  ,["--logfd=10", {logfd:10}, []]
+  ,["--tmp=/tmp -tar=gtar",{tmp:"/tmp",tar:"gtar"},[]]
+  ,["--tmp=tmp -tar=gtar",
+    {tmp:path.resolve(process.cwd(), "tmp"),tar:"gtar"},[]]
+  ,["--logfd x", {}, []]
+  ,["a -true -- -no-false", {true:true},["a","-no-false"]]
+  ,["a -no-false", {false:false},["a"]]
+  ,["a -no-no-true", {true:true}, ["a"]]
+  ,["a -no-no-no-false", {false:false}, ["a"]]
+  ,["---NO-no-No-no-no-no-nO-no-no"+
+    "-No-no-no-no-no-no-no-no-no"+
+    "-no-no-no-no-NO-NO-no-no-no-no-no-no"+
+    "-no-body-can-do-the-boogaloo-like-I-do"
+   ,{"body-can-do-the-boogaloo-like-I-do":false}, []]
+  ,["we are -no-strangers-to-love "+
+    "--you-know the-rules --and so-do-i "+
+    "---im-thinking-of=a-full-commitment "+
+    "--no-you-would-get-this-from-any-other-guy "+
+    "--no-gonna-give-you-up "+
+    "-no-gonna-let-you-down=true "+
+    "--no-no-gonna-run-around false "+
+    "--desert-you=false "+
+    "--make-you-cry false "+
+    "--no-tell-a-lie "+
+    "--no-no-and-hurt-you false"
+   ,{"strangers-to-love":false
+    ,"you-know":"the-rules"
+    ,"and":"so-do-i"
+    ,"you-would-get-this-from-any-other-guy":false
+    ,"gonna-give-you-up":false
+    ,"gonna-let-you-down":false
+    ,"gonna-run-around":false
+    ,"desert-you":false
+    ,"make-you-cry":false
+    ,"tell-a-lie":false
+    ,"and-hurt-you":false
+    },["we", "are"]]
+  ,["-t one -t two -t three"
+   ,{t: ["one", "two", "three"]}
+   ,[]]
+  ,["-t one -t null -t three four five null"
+   ,{t: ["one", "null", "three"]}
+   ,["four", "five", "null"]]
+  ,["-t foo"
+   ,{t:["foo"]}
+   ,[]]
+  ,["--no-t"
+   ,{t:["false"]}
+   ,[]]
+  ,["-no-no-t"
+   ,{t:["true"]}
+   ,[]]
+  ,["-aoa one -aoa null -aoa 100"
+   ,{aoa:["one", null, 100]}
+   ,[]]
+  ,["-str 100"
+   ,{str:"100"}
+   ,[]]
+  ,["--color always"
+   ,{color:"always"}
+   ,[]]
+  ,["--no-nullstream"
+   ,{nullstream:null}
+   ,[]]
+  ,["--nullstream false"
+   ,{nullstream:null}
+   ,[]]
+  ,["--notadate 2011-01-25"
+   ,{notadate: "2011-01-25"}
+   ,[]]
+  ,["--date 2011-01-25"
+   ,{date: new Date("2011-01-25")}
+   ,[]]
+  ].forEach(function (test) {
+    var argv = test[0].split(/\s+/)
+      , opts = test[1]
+      , rem = test[2]
+      , actual = nopt(types, shorthands, argv, 0)
+      , parsed = actual.argv
+    delete actual.argv
+    console.log(util.inspect(actual, false, 2, true), parsed.remain)
+    for (var i in opts) {
+      var e = JSON.stringify(opts[i])
+        , a = JSON.stringify(actual[i] === undefined ? null : actual[i])
+      if (e && typeof e === "object") {
+        assert.deepEqual(e, a)
+      } else {
+        assert.equal(e, a)
+      }
+    }
+    assert.deepEqual(rem, parsed.remain)
+  })
+}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/nopt/node_modules/abbrev/README.md
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/node_modules/abbrev/README.md b/weinre.server/node_modules/nopt/node_modules/abbrev/README.md
new file mode 100644
index 0000000..99746fe
--- /dev/null
+++ b/weinre.server/node_modules/nopt/node_modules/abbrev/README.md
@@ -0,0 +1,23 @@
+# abbrev-js
+
+Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).
+
+Usage:
+
+    var abbrev = require("abbrev");
+    abbrev("foo", "fool", "folding", "flop");
+    
+    // returns:
+    { fl: 'flop'
+    , flo: 'flop'
+    , flop: 'flop'
+    , fol: 'folding'
+    , fold: 'folding'
+    , foldi: 'folding'
+    , foldin: 'folding'
+    , folding: 'folding'
+    , foo: 'foo'
+    , fool: 'fool'
+    }
+
+This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/nopt/node_modules/abbrev/lib/abbrev.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/node_modules/abbrev/lib/abbrev.js b/weinre.server/node_modules/nopt/node_modules/abbrev/lib/abbrev.js
new file mode 100644
index 0000000..037de2d
--- /dev/null
+++ b/weinre.server/node_modules/nopt/node_modules/abbrev/lib/abbrev.js
@@ -0,0 +1,106 @@
+
+module.exports = exports = abbrev.abbrev = abbrev
+
+abbrev.monkeyPatch = monkeyPatch
+
+function monkeyPatch () {
+  Array.prototype.abbrev = function () { return abbrev(this) }
+  Object.prototype.abbrev = function () { return abbrev(Object.keys(this)) }
+}
+
+function abbrev (list) {
+  if (arguments.length !== 1 || !Array.isArray(list)) {
+    list = Array.prototype.slice.call(arguments, 0)
+  }
+  for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
+    args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
+  }
+
+  // sort them lexicographically, so that they're next to their nearest kin
+  args = args.sort(lexSort)
+
+  // walk through each, seeing how much it has in common with the next and previous
+  var abbrevs = {}
+    , prev = ""
+  for (var i = 0, l = args.length ; i < l ; i ++) {
+    var current = args[i]
+      , next = args[i + 1] || ""
+      , nextMatches = true
+      , prevMatches = true
+    if (current === next) continue
+    for (var j = 0, cl = current.length ; j < cl ; j ++) {
+      var curChar = current.charAt(j)
+      nextMatches = nextMatches && curChar === next.charAt(j)
+      prevMatches = prevMatches && curChar === prev.charAt(j)
+      if (nextMatches || prevMatches) continue
+      else {
+        j ++
+        break
+      }
+    }
+    prev = current
+    if (j === cl) {
+      abbrevs[current] = current
+      continue
+    }
+    for (var a = current.substr(0, j) ; j <= cl ; j ++) {
+      abbrevs[a] = current
+      a += current.charAt(j)
+    }
+  }
+  return abbrevs
+}
+
+function lexSort (a, b) {
+  return a === b ? 0 : a > b ? 1 : -1
+}
+
+
+// tests
+if (module === require.main) {
+
+var assert = require("assert")
+  , sys
+sys = require("util")
+
+console.log("running tests")
+function test (list, expect) {
+  var actual = abbrev(list)
+  assert.deepEqual(actual, expect,
+    "abbrev("+sys.inspect(list)+") === " + sys.inspect(expect) + "\n"+
+    "actual: "+sys.inspect(actual))
+  actual = abbrev.apply(exports, list)
+  assert.deepEqual(abbrev.apply(exports, list), expect,
+    "abbrev("+list.map(JSON.stringify).join(",")+") === " + sys.inspect(expect) + "\n"+
+    "actual: "+sys.inspect(actual))
+}
+
+test([ "ruby", "ruby", "rules", "rules", "rules" ],
+{ rub: 'ruby'
+, ruby: 'ruby'
+, rul: 'rules'
+, rule: 'rules'
+, rules: 'rules'
+})
+test(["fool", "foom", "pool", "pope"],
+{ fool: 'fool'
+, foom: 'foom'
+, poo: 'pool'
+, pool: 'pool'
+, pop: 'pope'
+, pope: 'pope'
+})
+test(["a", "ab", "abc", "abcd", "abcde", "acde"],
+{ a: 'a'
+, ab: 'ab'
+, abc: 'abc'
+, abcd: 'abcd'
+, abcde: 'abcde'
+, ac: 'acde'
+, acd: 'acde'
+, acde: 'acde'
+})
+
+console.log("pass")
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/underscore/.npmignore
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/underscore/.npmignore b/weinre.server/node_modules/underscore/.npmignore
new file mode 100644
index 0000000..2ce2684
--- /dev/null
+++ b/weinre.server/node_modules/underscore/.npmignore
@@ -0,0 +1,3 @@
+test/
+Rakefile
+docs/
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/underscore/LICENSE
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/underscore/LICENSE b/weinre.server/node_modules/underscore/LICENSE
new file mode 100644
index 0000000..61d28c0
--- /dev/null
+++ b/weinre.server/node_modules/underscore/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2009-2012 Jeremy Ashkenas, DocumentCloud
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/c4fbd3d0/weinre.server/node_modules/underscore/README.md
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/underscore/README.md b/weinre.server/node_modules/underscore/README.md
new file mode 100644
index 0000000..a6564a2
--- /dev/null
+++ b/weinre.server/node_modules/underscore/README.md
@@ -0,0 +1,19 @@
+                       __                                                         
+                      /\ \                                                         __           
+     __  __    ___    \_\ \     __   _ __   ____    ___    ___   _ __    __       /\_\    ____  
+    /\ \/\ \ /' _ `\  /'_  \  /'__`\/\  __\/ ,__\  / ___\ / __`\/\  __\/'__`\     \/\ \  /',__\ 
+    \ \ \_\ \/\ \/\ \/\ \ \ \/\  __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\  __/  __  \ \ \/\__, `\
+     \ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/
+      \/___/  \/_/\/_/\/__,_ /\/____/ \/_/ \/___/  \/____/\/___/  \/_/ \/____/\/_//\ \_\ \/___/ 
+                                                                                  \ \____/      
+                                                                                   \/___/
+                                                                               
+Underscore.js is a utility-belt library for JavaScript that provides 
+support for the usual functional suspects (each, map, reduce, filter...) 
+without extending any core JavaScript objects.
+
+For Docs, License, Tests, and pre-packed downloads, see:
+http://documentcloud.github.com/underscore/
+
+Many thanks to our contributors:
+https://github.com/documentcloud/underscore/contributors


Mime
View raw message