├── .ruby-version ├── lib ├── apex │ ├── apex.rb │ ├── version.rb │ ├── response.rb │ ├── cocoa │ │ └── delegate_interface.rb │ └── request.rb └── apex.rb ├── resources └── assets │ ├── somefile.txt │ └── favicon.ico ├── benchmarks └── node │ ├── node_modules │ ├── .bin │ │ └── express │ └── express │ │ ├── node_modules │ │ ├── fresh │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ └── History.md │ │ ├── .bin │ │ │ └── mkdirp │ │ ├── range-parser │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── History.md │ │ │ └── index.js │ │ ├── buffer-crc32 │ │ │ ├── .npmignore │ │ │ └── .travis.yml │ │ ├── methods │ │ │ ├── .npmignore │ │ │ ├── Readme.md │ │ │ ├── History.md │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ ├── test │ │ │ │ └── methods.js │ │ │ └── LICENSE │ │ ├── connect │ │ │ ├── node_modules │ │ │ │ ├── vhost │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ └── Makefile │ │ │ │ ├── bytes │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── component.json │ │ │ │ │ ├── History.md │ │ │ │ │ └── index.js │ │ │ │ ├── basic-auth-connect │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ └── Makefile │ │ │ │ ├── cookie-parser │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── History.md │ │ │ │ │ └── LICENSE │ │ │ │ ├── csurf │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── csrf-tokens │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── rndm │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ ├── scmp │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ ├── benchmark │ │ │ │ │ │ │ │ │ └── benchmark.js │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ └── uid2 │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── HISTORY.md │ │ │ │ │ └── LICENSE │ │ │ │ ├── express-session │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── utils-merge │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ └── uid2 │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ ├── History.md │ │ │ │ │ └── LICENSE │ │ │ │ ├── multiparty │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── stream-counter │ │ │ │ │ │ │ ├── test │ │ │ │ │ │ │ │ ├── test.txt │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── readable-stream │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── string_decoder │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ │ │ ├── inherits.js │ │ │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ │ │ ├── inherits_browser.js │ │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ └── isarray │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ └── component.json │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── duplex.js │ │ │ │ │ │ │ ├── transform.js │ │ │ │ │ │ │ ├── writable.js │ │ │ │ │ │ │ ├── passthrough.js │ │ │ │ │ │ │ ├── readable.js │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ ├── .travis.yml │ │ │ │ │ └── LICENSE │ │ │ │ ├── on-headers │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ └── LICENSE │ │ │ │ ├── type-is │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── mime-types │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ ├── custom.json │ │ │ │ │ │ │ └── node.json │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── SOURCES.md │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ └── HISTORY.md │ │ │ │ ├── response-time │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── HISTORY.md │ │ │ │ │ └── index.js │ │ │ │ ├── connect-timeout │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── History.md │ │ │ │ ├── morgan │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── History.md │ │ │ │ ├── body-parser │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── node_modules │ │ │ │ │ │ └── raw-body │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ └── Makefile │ │ │ │ ├── compression │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── accepts │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ ├── negotiator │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ └── mime │ │ │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ │ └── History.md │ │ │ │ │ │ └── compressible │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ └── index.js │ │ │ │ │ └── HISTORY.md │ │ │ │ ├── pause │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ └── index.js │ │ │ │ ├── errorhandler │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ └── public │ │ │ │ │ │ ├── error.html │ │ │ │ │ │ └── style.css │ │ │ │ ├── method-override │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── History.md │ │ │ │ ├── serve-favicon │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── History.md │ │ │ │ ├── serve-index │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── accepts │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ ├── negotiator │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ └── mime │ │ │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ │ └── History.md │ │ │ │ │ │ └── batch │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── component.json │ │ │ │ │ ├── public │ │ │ │ │ │ └── icons │ │ │ │ │ │ │ ├── cd.png │ │ │ │ │ │ │ ├── box.png │ │ │ │ │ │ │ ├── film.png │ │ │ │ │ │ │ ├── font.png │ │ │ │ │ │ │ ├── map.png │ │ │ │ │ │ │ ├── page.png │ │ │ │ │ │ │ ├── drive.png │ │ │ │ │ │ │ ├── folder.png │ │ │ │ │ │ │ ├── image.png │ │ │ │ │ │ │ ├── page_go.png │ │ │ │ │ │ │ ├── page_add.png │ │ │ │ │ │ │ ├── page_code.png │ │ │ │ │ │ │ ├── page_copy.png │ │ │ │ │ │ │ ├── page_edit.png │ │ │ │ │ │ │ ├── page_find.png │ │ │ │ │ │ │ ├── page_gear.png │ │ │ │ │ │ │ ├── page_key.png │ │ │ │ │ │ │ ├── page_link.png │ │ │ │ │ │ │ ├── page_red.png │ │ │ │ │ │ │ ├── page_save.png │ │ │ │ │ │ │ ├── page_word.png │ │ │ │ │ │ │ ├── controller.png │ │ │ │ │ │ │ ├── page_attach.png │ │ │ │ │ │ │ ├── page_delete.png │ │ │ │ │ │ │ ├── page_error.png │ │ │ │ │ │ │ ├── page_excel.png │ │ │ │ │ │ │ ├── page_green.png │ │ │ │ │ │ │ ├── page_paste.png │ │ │ │ │ │ │ ├── page_refresh.png │ │ │ │ │ │ │ ├── page_white.png │ │ │ │ │ │ │ ├── page_white_c.png │ │ │ │ │ │ │ ├── page_white_h.png │ │ │ │ │ │ │ ├── page_world.png │ │ │ │ │ │ │ ├── application_xp.png │ │ │ │ │ │ │ ├── page_lightning.png │ │ │ │ │ │ │ ├── page_white_add.png │ │ │ │ │ │ │ ├── page_white_cd.png │ │ │ │ │ │ │ ├── page_white_cup.png │ │ │ │ │ │ │ ├── page_white_dvd.png │ │ │ │ │ │ │ ├── page_white_get.png │ │ │ │ │ │ │ ├── page_white_go.png │ │ │ │ │ │ │ ├── page_white_key.png │ │ │ │ │ │ │ ├── page_white_php.png │ │ │ │ │ │ │ ├── page_white_put.png │ │ │ │ │ │ │ ├── page_white_tux.png │ │ │ │ │ │ │ ├── page_white_zip.png │ │ │ │ │ │ │ ├── page_paintbrush.png │ │ │ │ │ │ │ ├── page_white_camera.png │ │ │ │ │ │ │ ├── page_white_code.png │ │ │ │ │ │ │ ├── page_white_copy.png │ │ │ │ │ │ │ ├── page_white_csharp.png │ │ │ │ │ │ │ ├── page_white_delete.png │ │ │ │ │ │ │ ├── page_white_edit.png │ │ │ │ │ │ │ ├── page_white_error.png │ │ │ │ │ │ │ ├── page_white_excel.png │ │ │ │ │ │ │ ├── page_white_find.png │ │ │ │ │ │ │ ├── page_white_flash.png │ │ │ │ │ │ │ ├── page_white_gear.png │ │ │ │ │ │ │ ├── page_white_link.png │ │ │ │ │ │ │ ├── page_white_medal.png │ │ │ │ │ │ │ ├── page_white_office.png │ │ │ │ │ │ │ ├── page_white_paint.png │ │ │ │ │ │ │ ├── page_white_paste.png │ │ │ │ │ │ │ ├── page_white_ruby.png │ │ │ │ │ │ │ ├── page_white_stack.png │ │ │ │ │ │ │ ├── page_white_star.png │ │ │ │ │ │ │ ├── page_white_swoosh.png │ │ │ │ │ │ │ ├── page_white_text.png │ │ │ │ │ │ │ ├── page_white_vector.png │ │ │ │ │ │ │ ├── page_white_width.png │ │ │ │ │ │ │ ├── page_white_word.png │ │ │ │ │ │ │ ├── page_white_world.png │ │ │ │ │ │ │ ├── page_white_wrench.png │ │ │ │ │ │ │ ├── page_white_acrobat.png │ │ │ │ │ │ │ ├── page_white_code_red.png │ │ │ │ │ │ │ ├── page_white_database.png │ │ │ │ │ │ │ ├── page_white_freehand.png │ │ │ │ │ │ │ ├── page_white_magnify.png │ │ │ │ │ │ │ ├── page_white_picture.png │ │ │ │ │ │ │ ├── page_white_coldfusion.png │ │ │ │ │ │ │ ├── page_white_compressed.png │ │ │ │ │ │ │ ├── page_white_cplusplus.png │ │ │ │ │ │ │ ├── page_white_horizontal.png │ │ │ │ │ │ │ ├── page_white_lightning.png │ │ │ │ │ │ │ ├── page_white_paintbrush.png │ │ │ │ │ │ │ ├── page_white_powerpoint.png │ │ │ │ │ │ │ ├── page_white_text_width.png │ │ │ │ │ │ │ ├── application_xp_terminal.png │ │ │ │ │ │ │ ├── page_white_actionscript.png │ │ │ │ │ │ │ └── page_white_visualstudio.png │ │ │ │ │ └── History.md │ │ │ │ ├── serve-static │ │ │ │ │ └── .npmignore │ │ │ │ └── qs │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── .gitmodules │ │ │ ├── .npmignore │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── public │ │ │ │ │ └── favicon.ico │ │ │ │ └── middleware │ │ │ │ │ ├── csrf.js │ │ │ │ │ ├── responseTime.js │ │ │ │ │ ├── errorHandler.js │ │ │ │ │ ├── vhost.js │ │ │ │ │ ├── cookieParser.js │ │ │ │ │ ├── static.js │ │ │ │ │ ├── directory.js │ │ │ │ │ ├── compress.js │ │ │ │ │ ├── session.js │ │ │ │ │ ├── logger.js │ │ │ │ │ ├── timeout.js │ │ │ │ │ ├── basicAuth.js │ │ │ │ │ ├── favicon.js │ │ │ │ │ ├── query.js │ │ │ │ │ ├── urlencoded.js │ │ │ │ │ └── json.js │ │ │ ├── examples │ │ │ │ ├── public │ │ │ │ │ ├── tobi.jpeg │ │ │ │ │ └── form.html │ │ │ │ ├── favicon.js │ │ │ │ ├── logger.js │ │ │ │ ├── helloworld.js │ │ │ │ ├── directory.js │ │ │ │ ├── logger.fast.js │ │ │ │ ├── static.js │ │ │ │ ├── profiler.js │ │ │ │ ├── error.js │ │ │ │ ├── basicAuth.js │ │ │ │ ├── mounting.js │ │ │ │ ├── upload.js │ │ │ │ ├── vhost.js │ │ │ │ ├── upload-stream.js │ │ │ │ ├── csrf.js │ │ │ │ ├── bodyParser.js │ │ │ │ └── limit.js │ │ │ └── LICENSE │ │ ├── cookie │ │ │ ├── .npmignore │ │ │ └── LICENSE │ │ ├── escape-html │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── component.json │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── mkdirp │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── node_modules │ │ │ │ └── minimist │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── example │ │ │ │ │ └── parse.js │ │ │ │ │ ├── test │ │ │ │ │ ├── whitespace.js │ │ │ │ │ ├── parse_modified.js │ │ │ │ │ ├── dotted.js │ │ │ │ │ ├── default_bool.js │ │ │ │ │ ├── dash.js │ │ │ │ │ └── long.js │ │ │ │ │ └── LICENSE │ │ │ ├── examples │ │ │ │ └── pow.js │ │ │ ├── bin │ │ │ │ ├── usage.txt │ │ │ │ └── cmd.js │ │ │ ├── test │ │ │ │ ├── root.js │ │ │ │ ├── opts_fs_sync.js │ │ │ │ ├── perm.js │ │ │ │ ├── return.js │ │ │ │ ├── mkdirp.js │ │ │ │ ├── return_sync.js │ │ │ │ ├── sync.js │ │ │ │ ├── umask.js │ │ │ │ ├── opts_fs.js │ │ │ │ ├── clobber.js │ │ │ │ ├── umask_sync.js │ │ │ │ ├── rel.js │ │ │ │ ├── perm_sync.js │ │ │ │ └── chmod.js │ │ │ └── LICENSE │ │ ├── debug │ │ │ ├── .jshintrc │ │ │ ├── .npmignore │ │ │ ├── node_modules │ │ │ │ └── ms │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── README.md │ │ │ ├── component.json │ │ │ └── Makefile │ │ ├── vary │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── README.md │ │ │ └── LICENSE │ │ ├── send │ │ │ ├── index.js │ │ │ ├── .npmignore │ │ │ ├── node_modules │ │ │ │ ├── finished │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── ee-first │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ └── HISTORY.md │ │ │ │ └── mime │ │ │ │ │ └── LICENSE │ │ │ └── lib │ │ │ │ └── utils.js │ │ ├── cookie-signature │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ └── History.md │ │ ├── proxy-addr │ │ │ ├── node_modules │ │ │ │ └── ipaddr.js │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── Cakefile │ │ │ │ │ └── LICENSE │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ └── LICENSE │ │ ├── merge-descriptors │ │ │ ├── component.json │ │ │ ├── index.js │ │ │ └── .npmignore │ │ ├── parseurl │ │ │ ├── index.js │ │ │ └── .npmignore │ │ └── commander │ │ │ └── node_modules │ │ │ └── keypress │ │ │ └── test.js │ │ ├── index.js │ │ ├── .npmignore │ │ ├── lib │ │ └── middleware.js │ │ └── LICENSE │ ├── package.json │ └── app.js ├── Gemfile ├── app └── app_delegate.rb ├── .gitignore ├── vendor └── Podfile.lock ├── Rakefile ├── .travis.yml ├── LICENSE └── apex.gemspec /.ruby-version: -------------------------------------------------------------------------------- 1 | ruby-2.1.2 2 | -------------------------------------------------------------------------------- /lib/apex/apex.rb: -------------------------------------------------------------------------------- 1 | module Apex 2 | end 3 | -------------------------------------------------------------------------------- /resources/assets/somefile.txt: -------------------------------------------------------------------------------- 1 | somefile contents 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/.bin/express: -------------------------------------------------------------------------------- 1 | ../express/bin/express -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | gemspec 3 | 4 | gem 'rake' 5 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/fresh/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | ../mkdirp/bin/cmd.js -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/range-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/buffer-crc32/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/methods/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/vhost/.npmignore: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/cookie/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/express'); 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/bytes/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/escape-html/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log -------------------------------------------------------------------------------- /lib/apex/version.rb: -------------------------------------------------------------------------------- 1 | module Apex 2 | VERSION = "0.2.0" unless defined?(Apex::VERSION) 3 | end 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/basic-auth-connect/.npmignore: -------------------------------------------------------------------------------- 1 | test.js -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/vary/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/cookie-parser/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/send'); 3 | -------------------------------------------------------------------------------- /resources/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/resources/assets/favicon.ico -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | docs/ 3 | test/ 4 | .travis.yml 5 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/connect'); 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | examples/ 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/on-headers/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/.npmignore: -------------------------------------------------------------------------------- 1 | test.js 2 | .travis.yml 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/response-time/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/connect-timeout/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/morgan/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/proxy-addr/.npmignore: -------------------------------------------------------------------------------- 1 | benchmark/ 2 | coverage/ 3 | test/ 4 | .travis.yml 5 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/.npmignore: -------------------------------------------------------------------------------- 1 | coverage 2 | test 3 | examples 4 | .travis.yml 5 | *.sock 6 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/node_modules/finished/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/body-parser/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/compression/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/test/test.txt: -------------------------------------------------------------------------------- 1 | 1234 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/pause/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/errorhandler/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/method-override/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-favicon/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/.npmignore: -------------------------------------------------------------------------------- 1 | coverage 2 | test 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-static/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/body-parser/node_modules/raw-body/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/methods/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # Methods 3 | 4 | HTTP verbs that node core's parser supports. 5 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - "0.10" 6 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/node_modules/finished/node_modules/ee-first/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store* 2 | node_modules 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/basic-auth-connect/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | language: node_js -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store* 2 | node_modules 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/vhost/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | - "0.11" 4 | language: node_js -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/compression/node_modules/accepts/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/node_modules/accepts/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/node_modules/batch/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/debug/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /lib/apex/response.rb: -------------------------------------------------------------------------------- 1 | module Apex 2 | class Response 3 | 4 | def initialize 5 | # placeholder 6 | end 7 | 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/rndm/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store* 2 | node_modules 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/scmp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .project 3 | 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/pause/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2010-01-03 3 | ================== 4 | 5 | * Initial release 6 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/node_modules/mime-types/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/compression/node_modules/accepts/node_modules/negotiator/.npmignore: -------------------------------------------------------------------------------- 1 | examples 2 | test 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/cookie-parser/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/on-headers/History.md: -------------------------------------------------------------------------------- 1 | 0.0.0 / 2014-05-13 2 | ================== 3 | 4 | * Genesis from `connect` 5 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/node_modules/accepts/node_modules/negotiator/.npmignore: -------------------------------------------------------------------------------- 1 | examples 2 | test 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/fresh/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/cookie-signature/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/range-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/.npmignore: -------------------------------------------------------------------------------- 1 | .git* 2 | benchmarks/ 3 | coverage/ 4 | docs/ 5 | examples/ 6 | support/ 7 | test/ 8 | testing.js 9 | .DS_Store 10 | .travis.yml 11 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | benchmark.js 4 | component.json 5 | examples.js 6 | History.md 7 | Makefile 8 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/bytes/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | before_script: 6 | - ulimit -n 500 7 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/pause/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/node_modules/batch/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should 5 | 6 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @NODE_ENV=test ./node_modules/.bin/mocha \ 3 | --reporter spec \ 4 | --require should 5 | 6 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/vhost/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @NODE_ENV=test ./node_modules/.bin/mocha \ 3 | --reporter spec \ 4 | --require should 5 | 6 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/scmp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.6" 4 | - "0.8" 5 | - "0.10" 6 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/buffer-crc32/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | notifications: 6 | email: 7 | recipients: 8 | - brianloveswords@gmail.com -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/lib/public/favicon.ico -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/node_modules/utils-merge/.travis.yml: -------------------------------------------------------------------------------- 1 | language: "node_js" 2 | node_js: 3 | - "0.4" 4 | - "0.6" 5 | - "0.8" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/public/tobi.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/examples/public/tobi.jpeg -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /lib/apex/cocoa/delegate_interface.rb: -------------------------------------------------------------------------------- 1 | module Apex 2 | module DelegateInterface 3 | 4 | def applicationDidFinishLaunching(notification) 5 | on_launch 6 | true 7 | end 8 | 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/node_modules/finished/node_modules/ee-first/README.md: -------------------------------------------------------------------------------- 1 | 2 | # EE First 3 | 4 | Get the first event in a set of event emitters and event pairs, 5 | then clean up after itself. 6 | -------------------------------------------------------------------------------- /benchmarks/node/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello-world", 3 | "description": "hello world test app", 4 | "version": "0.0.1", 5 | "private": true, 6 | "dependencies": { 7 | "express": "3.x" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/basic-auth-connect/Makefile: -------------------------------------------------------------------------------- 1 | BIN = ./node_modules/.bin/ 2 | 3 | test: 4 | @NODE_ENV=test $(BIN)mocha \ 5 | --require should \ 6 | --reporter spec 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/vary/History.md: -------------------------------------------------------------------------------- 1 | 0.1.0 / 2014-06-05 2 | ================== 3 | 4 | * Support array of fields to set 5 | 6 | 0.0.0 / 2014-06-04 7 | ================== 8 | 9 | * Initial release 10 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/cd.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/box.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/film.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/film.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/font.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/font.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/map.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/compression/node_modules/compressible/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | 4 | npm-debug.log 5 | 6 | # Sublime Text # 7 | ############## 8 | *.sublime-project 9 | *.sublime-workspace 10 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/drive.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/folder.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/image.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_go.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/escape-html/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build 4 | 5 | components: 6 | @Component install 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | .PHONY: clean 12 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_add.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_code.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_copy.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_edit.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_find.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_gear.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_key.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_link.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_red.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_save.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_word.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_word.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/escape-html/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # escape-html 3 | 4 | Escape HTML entities 5 | 6 | ## Example 7 | 8 | ```js 9 | var escape = require('escape-html'); 10 | escape(str); 11 | ``` 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /app/app_delegate.rb: -------------------------------------------------------------------------------- 1 | class AppDelegate < Apex::Server 2 | port 8081 3 | 4 | get "/benchmark" do |r| 5 | $r = r 6 | "Hello World!" 7 | end 8 | 9 | get ["/testing", "/testing.html"] do |t| 10 | $t = t 11 | "Testing" 12 | end 13 | 14 | end 15 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/controller.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_attach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_attach.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_delete.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_error.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_excel.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_green.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_paste.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_refresh.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_c.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_h.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_world.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/bytes/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bytes", 3 | "description": "byte size string parser / serializer", 4 | "keywords": ["bytes", "utility"], 5 | "version": "0.2.1", 6 | "scripts": ["index.js"] 7 | } 8 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/application_xp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/application_xp.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_lightning.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_add.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_cd.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_cup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_cup.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_dvd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_dvd.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_get.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_go.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_key.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_php.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_put.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_put.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_tux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_tux.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_zip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_zip.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_paintbrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_paintbrush.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_camera.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_code.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_copy.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_csharp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_csharp.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_delete.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_edit.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_error.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_excel.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_find.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_flash.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_gear.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_link.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_medal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_medal.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_office.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_office.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_paint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_paint.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_paste.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_ruby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_ruby.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_stack.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_star.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_swoosh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_swoosh.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_text.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_vector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_vector.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_width.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_word.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_word.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_world.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_wrench.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_wrench.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/fresh/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.1 / 2014-01-29 3 | ================== 4 | 5 | * fix: support max-age=0 for end-to-end revalidation 6 | 7 | 0.2.0 / 2013-08-11 8 | ================== 9 | 10 | * fix: return false for no-cache 11 | -------------------------------------------------------------------------------- /benchmarks/node/app.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var app = express(); 3 | app.get('/benchmark', function(req, res){ 4 | res.send('Hello ' + req); 5 | }); 6 | var server = app.listen(8081, function() { 7 | console.log('Listening on port %d', server.address().port); 8 | }); 9 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_acrobat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_acrobat.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_code_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_code_red.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_database.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_database.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_freehand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_freehand.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_magnify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_magnify.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_picture.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_coldfusion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_coldfusion.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_compressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_compressed.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_cplusplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_cplusplus.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_horizontal.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_lightning.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_paintbrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_paintbrush.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_powerpoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_powerpoint.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_text_width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_text_width.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .repl_history 2 | build 3 | tags 4 | app/pixate_code.rb 5 | resources/*.nib 6 | resources/*.momd 7 | resources/*.storyboardc 8 | .DS_Store 9 | nbproject 10 | .redcar 11 | #*# 12 | *~ 13 | *.sw[po] 14 | *.gem 15 | .eprj 16 | .sass-cache 17 | .idea 18 | .dat*.* 19 | vendor/Pods/* 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/favicon.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | // $ curl -i http://localhost:3000/favicon.ico 9 | 10 | connect.createServer( 11 | connect.favicon() 12 | ).listen(3000); -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/application_xp_terminal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/application_xp_terminal.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_actionscript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_actionscript.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_visualstudio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamonholmgren/apex/HEAD/benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/public/icons/page_white_visualstudio.png -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/node_modules/mime-types/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: 3 | node --harmony-generators build.js 4 | 5 | test: 6 | node test/mime.js 7 | mocha --require should --reporter spec test/test.js 8 | 9 | .PHONY: build test 10 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/HISTORY.md: -------------------------------------------------------------------------------- 1 | 2 | 1.2.0 / 2014-05-13 3 | ================== 4 | 5 | * add support for double-submit cookie 6 | 7 | 8 | 1.1.0 / 2014-04-06 9 | ================== 10 | 11 | * add constant-time string compare 12 | 13 | -------------------------------------------------------------------------------- /vendor/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - GCDWebServer (2.5.3): 3 | - GCDWebServer/Core (= 2.5.3) 4 | - GCDWebServer/Core (2.5.3) 5 | 6 | DEPENDENCIES: 7 | - GCDWebServer (~> 2.4) 8 | 9 | SPEC CHECKSUMS: 10 | GCDWebServer: d765294661987168ab30b03259c82020fb340ff9 11 | 12 | COCOAPODS: 0.39.0 13 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/qs/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "support/expresso"] 2 | path = support/expresso 3 | url = git://github.com/visionmedia/expresso.git 4 | [submodule "support/should"] 5 | path = support/should 6 | url = git://github.com/visionmedia/should.js.git 7 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/public/form.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |
-------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/escape-html/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape HTML entities", 4 | "version": "1.0.1", 5 | "keywords": ["escape", "html", "utility"], 6 | "dependencies": {}, 7 | "scripts": [ 8 | "index.js" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/merge-descriptors/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "merge-descriptors", 3 | "description": "Merge objects using descriptors", 4 | "version": "0.0.2", 5 | "scripts": [ 6 | "index.js" 7 | ], 8 | "repo": "component/merge-descriptors", 9 | "license": "MIT" 10 | } -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/logger.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | // $ curl http://localhost:3000/favicon.ico 9 | 10 | connect.createServer( 11 | connect.logger() 12 | , connect.favicon() 13 | ).listen(3000); 14 | 15 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/merge-descriptors/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (dest, src) { 2 | Object.getOwnPropertyNames(src).forEach(function (name) { 3 | var descriptor = Object.getOwnPropertyDescriptor(src, name) 4 | Object.defineProperty(dest, name, descriptor) 5 | }) 6 | 7 | return dest 8 | } -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/helloworld.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | connect.createServer(function(req, res){ 9 | var body = 'Hello World'; 10 | res.setHeader('Content-Length', body.length); 11 | res.end(body); 12 | }).listen(3000); -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/directory.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | var app = connect(); 8 | var path = __dirname + '/../'; 9 | 10 | app.use(connect.directory(path, { icons: true })) 11 | app.use(connect.static(path)) 12 | app.listen(3000); 13 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/methods/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.1 / 2014-06-02 3 | ================== 4 | 5 | * fix index.js to work with harmony transform 6 | 7 | 1.0.0 / 2014-05-08 8 | ================== 9 | 10 | * add PURGE. Closes #9 11 | 12 | 0.1.0 / 2013-10-28 13 | ================== 14 | 15 | * add http.METHODS support 16 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/logger.fast.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | // $ curl -i http://localhost:3000/favicon.ico 9 | // true defaults to 1000ms 10 | 11 | connect.createServer( 12 | connect.logger({ buffer: 5000 }) 13 | , connect.favicon() 14 | ).listen(3000); -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/body-parser/node_modules/raw-body/Makefile: -------------------------------------------------------------------------------- 1 | NODE ?= node 2 | BIN = ./node_modules/.bin/ 3 | 4 | test: 5 | @${NODE} ${BIN}mocha \ 6 | --harmony-generators \ 7 | --reporter spec \ 8 | --bail \ 9 | ./test/index.js 10 | 11 | clean: 12 | @rm -rf node_modules 13 | 14 | .PHONY: test clean 15 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/static.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | connect( 9 | connect.static(__dirname + '/public', { maxAge: 0 }) 10 | , function(req, res) { 11 | res.setHeader('Content-Type', 'text/html'); 12 | res.end('') 13 | } 14 | ).listen(3000); -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/errorhandler/History.md: -------------------------------------------------------------------------------- 1 | 1.0.2 / 2014-06-05 2 | ================== 3 | 4 | * Pass on errors from reading error files 5 | 6 | 1.0.1 / 2014-04-29 7 | ================== 8 | 9 | * Clean up error CSS 10 | * Do not respond after headers sent 11 | 12 | 1.0.0 / 2014-03-03 13 | ================== 14 | 15 | * Genesis from `connect` 16 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/profiler.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | // $ curl -i http://localhost:3000/ 9 | 10 | connect( 11 | connect.profiler() 12 | , connect.favicon() 13 | , connect.static(__dirname) 14 | , function(req, res, next){ 15 | res.end('hello world'); 16 | } 17 | ).listen(3000); 18 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/csrf.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - csrf 3 | * Copyright(c) 2011 Sencha Inc. 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Anti CSRF: 9 | * 10 | * CSRF protection middleware. 11 | * 12 | * See [csurf](https://github.com/expressjs/csurf) 13 | * 14 | * @param {Object} options 15 | * @api public 16 | */ 17 | 18 | module.exports = require('csurf'); 19 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/responseTime.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - responseTime 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Reponse time: 10 | * 11 | * See [response-time](https://github.com/expressjs/response-time) 12 | * 13 | * @return {Function} 14 | * @api public 15 | */ 16 | 17 | module.exports = require('response-time'); 18 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/rndm/index.js: -------------------------------------------------------------------------------- 1 | 2 | var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' 3 | var length = chars.length 4 | 5 | module.exports = function rndm(len) { 6 | var salt = '' 7 | for (var i = 0; i < len; i++) 8 | salt += chars[Math.floor(length * Math.random())] 9 | return salt 10 | } 11 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/errorhandler/public/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {error} 5 | 6 | 7 | 8 |
9 |

{title}

10 |

{statusCode} {error}

11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/bin/usage.txt: -------------------------------------------------------------------------------- 1 | usage: mkdirp [DIR1,DIR2..] {OPTIONS} 2 | 3 | Create each supplied directory including any necessary parent directories that 4 | don't yet exist. 5 | 6 | If the directory already exists, do nothing. 7 | 8 | OPTIONS are: 9 | 10 | -m, --mode If a directory needs to be created, set the mode as an octal 11 | permission string. 12 | 13 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/response-time/HISTORY.md: -------------------------------------------------------------------------------- 1 | 2.0.0 / 2014-05-31 2 | ================== 3 | 4 | * add `digits` argument 5 | * do not override existing `X-Response-Time` header 6 | * timer not subject to clock drift 7 | * timer resolution down to nanoseconds 8 | * use `on-headers` module 9 | 10 | 1.0.0 / 2014-02-08 11 | ================== 12 | 13 | * Genesis from `connect` 14 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | $:.unshift("/Library/RubyMotion/lib") 3 | require 'motion/project/template/osx' 4 | require './lib/apex' 5 | 6 | begin 7 | require 'bundler' 8 | require 'motion/project/template/gem/gem_tasks' 9 | Bundler.require 10 | rescue LoadError 11 | end 12 | 13 | Motion::Project::App.setup do |app| 14 | app.name = 'apex' 15 | app.info_plist['NSAppTransportSecurity'] = { 'NSAllowsArbitraryLoads' => true } 16 | end 17 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - errorHandler 3 | * Copyright(c) 2010 Sencha Inc. 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Error handler: 10 | * 11 | * See [errorHandler](https://github.com/expressjs/errorhandler) 12 | * 13 | * @return {Function} 14 | * @api public 15 | */ 16 | 17 | module.exports = require('errorhandler'); 18 | -------------------------------------------------------------------------------- /lib/apex.rb: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | 3 | unless defined?(Motion::Project::Config) 4 | raise "This file must be required within a RubyMotion project Rakefile." 5 | end 6 | require 'motion-cocoapods' 7 | 8 | lib_dir_path = File.dirname(File.expand_path(__FILE__)) 9 | Motion::Project::App.setup do |app| 10 | app.files.unshift(Dir.glob(File.join(lib_dir_path, "apex/**/*.rb"))) 11 | app.pods do 12 | pod "GCDWebServer", "~> 2.4" 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "1.0.2", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "browser.js", 12 | "scripts": [ 13 | "browser.js", 14 | "debug.js" 15 | ], 16 | "dependencies": { 17 | "guille/ms.js": "0.6.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/rndm/README.md: -------------------------------------------------------------------------------- 1 | 2 | # RNDM 3 | 4 | Random string generator. 5 | Basically `Math.random().toString(36).slice(2)`, 6 | but with both upper and lower case letters and arbitrary lengths. 7 | Useful for creating fast, not cryptographically secure salts. 8 | 9 | ## API 10 | 11 | ```js 12 | import rndm from 'rndm@1' 13 | 14 | var salt = rndm(16) 15 | ``` 16 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/escape-html/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Escape special characters in the given string of html. 3 | * 4 | * @param {String} html 5 | * @return {String} 6 | * @api private 7 | */ 8 | 9 | module.exports = function(html) { 10 | return String(html) 11 | .replace(/&/g, '&') 12 | .replace(/"/g, '"') 13 | .replace(/'/g, ''') 14 | .replace(//g, '>'); 16 | } 17 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/node_modules/batch/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "batch", 3 | "repo": "visionmedia/batch", 4 | "description": "Async task batching", 5 | "version": "0.5.0", 6 | "keywords": ["batch", "async", "utility", "concurrency", "concurrent"], 7 | "dependencies": { 8 | "component/emitter": "*" 9 | }, 10 | "development": {}, 11 | "scripts": [ 12 | "index.js" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/connect-timeout/History.md: -------------------------------------------------------------------------------- 1 | 1.1.0 / 2014-04-29 2 | ================== 3 | 4 | * Add `req.timedout` property 5 | * Add `respond` option to constructor 6 | 7 | 1.0.1 / 2014-04-28 8 | ================== 9 | 10 | * Clear timer on socket destroy 11 | * Compatible with node.js 0.8 12 | * deps: debug@0.8.1 13 | 14 | 1.0.0 / 2014-03-05 15 | ================== 16 | 17 | * Genesis from `connect` 18 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/vhost.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - vhost 4 | * Copyright(c) 2010 Sencha Inc. 5 | * Copyright(c) 2011 TJ Holowaychuk 6 | * MIT Licensed 7 | */ 8 | 9 | /** 10 | * Vhost: 11 | * 12 | * See [vhost](https://github.com/expressjs/vhost) 13 | * 14 | * @param {String} hostname 15 | * @param {Server} server 16 | * @return {Function} 17 | * @api public 18 | */ 19 | 20 | module.exports = require('vhost'); 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/README.md: -------------------------------------------------------------------------------- 1 | # stream-counter 2 | 3 | Keep track of how many bytes have been written to a stream. 4 | 5 | ## Usage 6 | 7 | ```js 8 | var StreamCounter = require('stream-counter'); 9 | var counter = new StreamCounter(); 10 | counter.on('progress', function() { 11 | console.log("progress", counter.bytes); 12 | }); 13 | fs.createReadStream('foo.txt').pipe(counter); 14 | ``` 15 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/cookieParser.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - cookieParser 4 | * Copyright(c) 2010 Sencha Inc. 5 | * Copyright(c) 2011 TJ Holowaychuk 6 | * MIT Licensed 7 | */ 8 | 9 | /** 10 | * Cookie parser: 11 | * 12 | * See [cookie-parser](https://github.com/expressjs/cookie-parser) 13 | * 14 | * @param {String} secret 15 | * @return {Function} 16 | * @api public 17 | */ 18 | 19 | module.exports = require('cookie-parser'); 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/static.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - static 3 | * Copyright(c) 2010 Sencha Inc. 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Static: 10 | * 11 | * See [serve-static](https://github.com/expressjs/serve-static) 12 | * 13 | * @param {String} root 14 | * @param {Object} options 15 | * @return {Function} 16 | * @api public 17 | */ 18 | 19 | module.exports = require('serve-static'); 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = require('stream'); 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/range-parser/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-12-11 3 | ================== 4 | 5 | * add repository to package.json 6 | * add MIT license 7 | 8 | 0.0.4 / 2012-06-17 9 | ================== 10 | 11 | * changed: ret -1 for unsatisfiable and -2 when invalid 12 | 13 | 0.0.3 / 2012-06-17 14 | ================== 15 | 16 | * fix last-byte-pos default to len - 1 17 | 18 | 0.0.2 / 2012-06-14 19 | ================== 20 | 21 | * add `.type` 22 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/cookie-parser/History.md: -------------------------------------------------------------------------------- 1 | 1.1.0 / 2014-05-12 2 | ================== 3 | 4 | * Support for NodeJS version 0.8 5 | * deps: cookie@0.1.2 6 | - Fix for maxAge == 0 7 | - made compat with expires field 8 | - tweak maxAge NaN error message 9 | 10 | 1.0.1 / 2014-02-20 11 | ================== 12 | 13 | * add missing dependencies 14 | 15 | 1.0.0 / 2014-02-15 16 | ================== 17 | 18 | * Genesis from `connect` 19 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/node_modules/mime-types/lib/custom.json: -------------------------------------------------------------------------------- 1 | { 2 | "text/jade": [ 3 | "jade" 4 | ], 5 | "text/stylus": [ 6 | "stylus", 7 | "styl" 8 | ], 9 | "text/less": [ 10 | "less" 11 | ], 12 | "text/x-sass": [ 13 | "sass" 14 | ], 15 | "text/x-scss": [ 16 | "scss" 17 | ], 18 | "text/coffeescript": [ 19 | "coffee" 20 | ], 21 | "text/x-handlebars-template": [ 22 | "hbs" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/directory.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - directory 4 | * Copyright(c) 2011 Sencha Inc. 5 | * Copyright(c) 2011 TJ Holowaychuk 6 | * MIT Licensed 7 | */ 8 | 9 | /** 10 | * Directory: 11 | * 12 | * See [serve-index](https://github.com/expressjs/serve-index) 13 | * 14 | * @param {String} root 15 | * @param {Object} options 16 | * @return {Function} 17 | * @api public 18 | */ 19 | 20 | module.exports = require('serve-index'); 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/compress.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - compress 3 | * Copyright(c) 2010 Sencha Inc. 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Compress: 10 | * 11 | * Compress response data with gzip/deflate. 12 | * 13 | * See [compression](https://github.com/expressjs/compression) 14 | * 15 | * @param {Object} options 16 | * @return {Function} 17 | * @api public 18 | */ 19 | 20 | module.exports = require('compression'); 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/scmp/benchmark/benchmark.js: -------------------------------------------------------------------------------- 1 | var scmp = require('../'); 2 | 3 | suite('scmp', function() { 4 | var HASH1 = 'e727d1464ae12436e899a726da5b2f11d8381b26'; 5 | var HASH2 = 'f727d1464ae12436e899a726da5b2f11d8381b26'; 6 | 7 | bench('short-circuit compares', function() { 8 | HASH1 === HASH2; 9 | }); 10 | 11 | bench('scmp compares', function() { 12 | scmp(HASH1, HASH2); 13 | }); 14 | 15 | }); 16 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/session.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - session 3 | * Copyright(c) 2010 Sencha Inc. 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Session: 10 | * 11 | * Setup session store with the given `options`. 12 | * 13 | * See [express-session](https://github.com/expressjs/session) 14 | * 15 | * @param {Object} options 16 | * @return {Function} 17 | * @api public 18 | */ 19 | 20 | module.exports = require('express-session'); 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/cookie-signature/History.md: -------------------------------------------------------------------------------- 1 | 1.0.3 / 2014-01-28 2 | ================== 3 | 4 | * fix for timing attacks 5 | 6 | 1.0.2 / 2014-01-28 7 | ================== 8 | 9 | * fix missing repository warning 10 | * fix typo in test 11 | 12 | 1.0.1 / 2013-04-15 13 | ================== 14 | 15 | * Revert "Changed underlying HMAC algo. to sha512." 16 | * Revert "Fix for timing attacks on MAC verification." 17 | 18 | 0.0.1 / 2010-01-03 19 | ================== 20 | 21 | * Initial release 22 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode7.2 3 | before_install: 4 | - (ruby --version) 5 | - sudo chown -R travis ~/Library/RubyMotion 6 | - sudo mkdir -p ~/Library/RubyMotion/build 7 | - sudo chown -R travis ~/Library/RubyMotion/build 8 | - sudo motion update 9 | install: 10 | - bundle install 11 | - pod setup > /dev/null 12 | - bundle exec rake pod:install > /dev/null 13 | gemfile: 14 | - Gemfile 15 | script: bundle exec rake spec 16 | env: 17 | global: 18 | - COCOAPODS_NO_REPO_UPDATE_OUTPUT=true 19 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/node_modules/uid2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uid2", 3 | "description": "strong uid", 4 | "tags": [ 5 | "uid" 6 | ], 7 | "version": "0.0.3", 8 | "dependencies": {}, 9 | "readme": "ERROR: No README data found!", 10 | "_id": "uid2@0.0.3", 11 | "dist": { 12 | "shasum": "837bfbe18583ae394e1e2b803f8bc13c47f942ef" 13 | }, 14 | "_from": "uid2@0.0.3", 15 | "_resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.3.tgz" 16 | } 17 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/index.js: -------------------------------------------------------------------------------- 1 | module.exports = ByteCounter; 2 | 3 | var Writable = require('readable-stream').Writable; 4 | var util = require('util'); 5 | 6 | util.inherits(ByteCounter, Writable); 7 | function ByteCounter(options) { 8 | Writable.call(this, options); 9 | this.bytes = 0; 10 | } 11 | 12 | ByteCounter.prototype._write = function(chunk, encoding, cb) { 13 | this.bytes += chunk.length; 14 | this.emit('progress'); 15 | cb(); 16 | }; 17 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/logger.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - logger 3 | * Copyright(c) 2010 Sencha Inc. 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Logger: 10 | * 11 | * Log requests with the given `options` or a `format` string. 12 | * 13 | * See [morgan](https://github.com/expressjs/morgan) 14 | * 15 | * @param {String|Function|Object} format or options 16 | * @return {Function} 17 | * @api public 18 | */ 19 | 20 | module.exports = require('morgan'); 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/bytes/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2014-05-05 3 | ================== 4 | 5 | * add negative support. fixes #6 6 | 7 | 0.3.0 / 2014-03-19 8 | ================== 9 | 10 | * added terabyte support 11 | 12 | 0.2.1 / 2013-04-01 13 | ================== 14 | 15 | * add .component 16 | 17 | 0.2.0 / 2012-10-28 18 | ================== 19 | 20 | * bytes(200).should.eql('200b') 21 | 22 | 0.1.0 / 2012-07-04 23 | ================== 24 | 25 | * add bytes to string conversion [yields] 26 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/timeout.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - timeout 3 | * Ported from https://github.com/LearnBoost/connect-timeout 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module dependencies. 9 | */ 10 | 11 | var debug = require('debug')('connect:timeout'); 12 | 13 | /** 14 | * Timeout: 15 | * 16 | * See [connect-timeout](https://github.com/expressjs/timeout) 17 | * 18 | * @param {Number} ms 19 | * @return {Function} 20 | * @api public 21 | */ 22 | 23 | module.exports = require('connect-timeout'); 24 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/uid2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uid2", 3 | "description": "strong uid", 4 | "tags": [ 5 | "uid" 6 | ], 7 | "version": "0.0.3", 8 | "dependencies": {}, 9 | "readme": "ERROR: No README data found!", 10 | "_id": "uid2@0.0.3", 11 | "dist": { 12 | "shasum": "837bfbe18583ae394e1e2b803f8bc13c47f942ef" 13 | }, 14 | "_from": "uid2@~0.0.2", 15 | "_resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.3.tgz", 16 | "scripts": {} 17 | } 18 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/error.js: -------------------------------------------------------------------------------- 1 | 2 | var connect = require('../') 3 | , http = require('http'); 4 | 5 | // try: 6 | // - viewing in a browser 7 | // - curl http://localhost:3000 8 | // - curl -H "Accept: application/json" http://localhost:3000 9 | 10 | var app = connect() 11 | .use(function(req, res, next){ 12 | var err = new Error('oh noes!'); 13 | err.number = 7; 14 | throw err; 15 | }) 16 | .use(connect.errorHandler()); 17 | 18 | http.Server(app).listen(3000); 19 | console.log('Server started on port 3000'); 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/node_modules/utils-merge/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Merge object b with object a. 3 | * 4 | * var a = { foo: 'bar' } 5 | * , b = { bar: 'baz' }; 6 | * 7 | * merge(a, b); 8 | * // => { foo: 'bar', bar: 'baz' } 9 | * 10 | * @param {Object} a 11 | * @param {Object} b 12 | * @return {Object} 13 | * @api public 14 | */ 15 | 16 | exports = module.exports = function(a, b){ 17 | if (a && b) { 18 | for (var key in b) { 19 | a[key] = b[key]; 20 | } 21 | } 22 | return a; 23 | }; 24 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/test/dotted.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('dotted alias', function (t) { 5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 6 | t.equal(argv.a.b, 22); 7 | t.equal(argv.aa.bb, 22); 8 | t.end(); 9 | }); 10 | 11 | test('dotted default', function (t) { 12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 13 | t.equal(argv.a.b, 11); 14 | t.equal(argv.aa.bb, 11); 15 | t.end(); 16 | }); 17 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('root', function (t) { 7 | // '/' on unix, 'c:/' on windows. 8 | var file = path.resolve('/'); 9 | 10 | mkdirp(file, 0755, function (err) { 11 | if (err) throw err 12 | fs.stat(file, function (er, stat) { 13 | if (er) throw er 14 | t.ok(stat.isDirectory(), 'target is a directory'); 15 | t.end(); 16 | }) 17 | }); 18 | }); 19 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/compression/node_modules/accepts/History.md: -------------------------------------------------------------------------------- 1 | 1.0.3 / 2014-06-11 2 | ================== 3 | 4 | * deps: negotiator@0.4.6 5 | - Order by specificity when quality is the same 6 | 7 | 1.0.2 / 2014-05-29 8 | ================== 9 | 10 | * Fix interpretation when header not in request 11 | * deps: pin negotiator@0.4.5 12 | 13 | 1.0.1 / 2014-01-18 14 | ================== 15 | 16 | * Identity encoding isn't always acceptable 17 | * deps: negotiator@~0.4.0 18 | 19 | 1.0.0 / 2013-12-27 20 | ================== 21 | 22 | * Genesis 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/node_modules/accepts/History.md: -------------------------------------------------------------------------------- 1 | 1.0.3 / 2014-06-11 2 | ================== 3 | 4 | * deps: negotiator@0.4.6 5 | - Order by specificity when quality is the same 6 | 7 | 1.0.2 / 2014-05-29 8 | ================== 9 | 10 | * Fix interpretation when header not in request 11 | * deps: pin negotiator@0.4.5 12 | 13 | 1.0.1 / 2014-01-18 14 | ================== 15 | 16 | * Identity encoding isn't always acceptable 17 | * deps: negotiator@~0.4.0 18 | 19 | 1.0.0 / 2013-12-27 20 | ================== 21 | 22 | * Genesis 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/node_modules/mime-types/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mime-types", 3 | "description": "ultimate mime type utility", 4 | "version": "0.1.0", 5 | "author": { 6 | "name": "Jonathan Ong", 7 | "email": "me@jongleberry.com", 8 | "url": "http://jongleberry.com", 9 | "twitter": "https://twitter.com/jongleberry" 10 | }, 11 | "repository": "expressjs/mime-types", 12 | "license": "MIT", 13 | "main": "lib/index.js", 14 | "scripts": ["lib/index.js"], 15 | "json": ["mime.json", "node.json", "custom.json"] 16 | } 17 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/test/default_bool.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('boolean default true', function (t) { 5 | var argv = parse([], { 6 | boolean: 'sometrue', 7 | default: { sometrue: true } 8 | }); 9 | t.equal(argv.sometrue, true); 10 | t.end(); 11 | }); 12 | 13 | test('boolean default false', function (t) { 14 | var argv = parse([], { 15 | boolean: 'somefalse', 16 | default: { somefalse: false } 17 | }); 18 | t.equal(argv.somefalse, false); 19 | t.end(); 20 | }); 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/test/test.js: -------------------------------------------------------------------------------- 1 | var ByteCounter = require('../'); 2 | var fs = require('fs'); 3 | var path = require('path'); 4 | var assert = require('assert'); 5 | 6 | var counter = new ByteCounter(); 7 | var remainingTests = 2; 8 | counter.once('progress', function() { 9 | assert.strictEqual(counter.bytes, 5); 10 | remainingTests -= 1; 11 | }); 12 | var is = fs.createReadStream(path.join(__dirname, 'test.txt')); 13 | is.pipe(counter); 14 | is.on('end', function() { 15 | remainingTests -= 1; 16 | assert.strictEqual(counter.bytes, 5); 17 | }); 18 | process.on('exit', function() { 19 | assert.strictEqual(remainingTests, 0); 20 | }); 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/basicAuth.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | function auth(user, pass) { 9 | return 'tj' == user && 'tobi' == pass; 10 | } 11 | 12 | function authorized(req, res) { 13 | res.end('authorized!'); 14 | } 15 | 16 | function hello(req, res) { 17 | res.end('hello! try /admin'); 18 | } 19 | 20 | // apply globally 21 | 22 | connect( 23 | connect.basicAuth(auth) 24 | , authorized 25 | ).listen(3000); 26 | 27 | // apply to /admin/* only 28 | 29 | var server = connect(); 30 | 31 | server.use('/admin', connect.basicAuth(auth)); 32 | server.use('/admin', authorized); 33 | server.use(hello); 34 | 35 | server.listen(3001); -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/scmp/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Does a constant-time string comparison by not short-circuiting 3 | * on first sign of non-equivalency. 4 | * 5 | * @param {String} a The first string to be compared against the second 6 | * @param {String} b The second string to be compared against the first 7 | * @return {Boolean} 8 | */ 9 | module.exports = function scmp(a, b) { 10 | a = String(a); 11 | b = String(b); 12 | if (a.length !== b.length) { 13 | return false; 14 | } 15 | var result = 0; 16 | for (var i = 0; i < a.length; ++i) { 17 | result |= a.charCodeAt(i) ^ b.charCodeAt(i); 18 | } 19 | return result === 0; 20 | }; 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/parseurl/index.js: -------------------------------------------------------------------------------- 1 | 2 | var parse = require('url').parse; 3 | 4 | /** 5 | * Parse the `req` url with memoization. 6 | * 7 | * @param {ServerRequest} req 8 | * @return {Object} 9 | * @api private 10 | */ 11 | 12 | module.exports = function parseUrl(req){ 13 | var parsed = req._parsedUrl; 14 | if (parsed && parsed.href == req.url) { 15 | return parsed; 16 | } else { 17 | parsed = parse(req.url); 18 | 19 | if (parsed.auth && !parsed.protocol && ~parsed.href.indexOf('//')) { 20 | // This parses pathnames, and a strange pathname like //r@e should work 21 | parsed = parse(req.url.replace(/@/g, '%40')); 22 | } 23 | 24 | return req._parsedUrl = parsed; 25 | } 26 | }; 27 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/proxy-addr/History.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2014-06-03 2 | ================== 3 | 4 | * Fix links in npm package 5 | 6 | 1.0.0 / 2014-05-08 7 | ================== 8 | 9 | * Add `trust` argument to determine proxy trust on 10 | * Accepts custom function 11 | * Accepts IPv4/IPv6 address(es) 12 | * Accepts subnets 13 | * Accepts pre-defined names 14 | * Add optional `trust` argument to `proxyaddr.all` to 15 | stop at first untrusted 16 | * Add `proxyaddr.compile` to pre-compile `trust` function 17 | to make subsequent calls faster 18 | 19 | 0.0.1 / 2014-05-04 20 | ================== 21 | 22 | * Fix bad npm publish 23 | 24 | 0.0.0 / 2014-05-04 25 | ================== 26 | 27 | * Initial release 28 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/HISTORY.md: -------------------------------------------------------------------------------- 1 | 2 | 1.2.1 / 2014-06-03 3 | ================== 4 | 5 | * Switch dependency from `mime` to `mime-types@1.0.0` 6 | 7 | 1.2.0 / 2014-05-11 8 | ================== 9 | 10 | * support suffix matching: 11 | 12 | - `+json` matches `application/vnd+json` 13 | - `*/vnd+json` matches `application/vnd+json` 14 | - `application/*+json` matches `application/vnd+json` 15 | 16 | 1.1.0 / 2014-04-12 17 | ================== 18 | 19 | * add non-array values support 20 | * expose internal utilities: 21 | 22 | - `.is()` 23 | - `.hasBody()` 24 | - `.normalize()` 25 | - `.match()` 26 | 27 | 1.0.1 / 2014-03-30 28 | ================== 29 | 30 | * add `multipart` as a shorthand 31 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/methods/index.js: -------------------------------------------------------------------------------- 1 | 2 | var http = require('http'); 3 | 4 | if (http.METHODS) { 5 | 6 | module.exports = http.METHODS.map(function(method){ 7 | return method.toLowerCase(); 8 | }); 9 | 10 | } else { 11 | 12 | module.exports = [ 13 | 'get', 14 | 'post', 15 | 'put', 16 | 'head', 17 | 'delete', 18 | 'options', 19 | 'trace', 20 | 'copy', 21 | 'lock', 22 | 'mkcol', 23 | 'move', 24 | 'purge', 25 | 'propfind', 26 | 'proppatch', 27 | 'unlock', 28 | 'report', 29 | 'mkactivity', 30 | 'checkout', 31 | 'merge', 32 | 'm-search', 33 | 'notify', 34 | 'subscribe', 35 | 'unsubscribe', 36 | 'patch', 37 | 'search' 38 | ]; 39 | 40 | } 41 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile: -------------------------------------------------------------------------------- 1 | fs = require 'fs' 2 | CoffeeScript = require 'coffee-script' 3 | nodeunit = require 'nodeunit' 4 | UglifyJS = require 'uglify-js' 5 | 6 | task 'build', 'build the JavaScript files from CoffeeScript source', build = (cb) -> 7 | source = fs.readFileSync 'src/ipaddr.coffee' 8 | fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString() 9 | 10 | invoke 'test' 11 | invoke 'compress' 12 | 13 | task 'test', 'run the bundled tests', (cb) -> 14 | nodeunit.reporters.default.run ['test'] 15 | 16 | task 'compress', 'uglify the resulting javascript', (cb) -> 17 | result = UglifyJS.minify('lib/ipaddr.js') 18 | fs.writeFileSync('ipaddr.min.js', result.code) 19 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/pause/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(obj){ 3 | var onData 4 | , onEnd 5 | , events = []; 6 | 7 | // buffer data 8 | obj.on('data', onData = function(data, encoding){ 9 | events.push(['data', data, encoding]); 10 | }); 11 | 12 | // buffer end 13 | obj.on('end', onEnd = function(data, encoding){ 14 | events.push(['end', data, encoding]); 15 | }); 16 | 17 | return { 18 | end: function(){ 19 | obj.removeListener('data', onData); 20 | obj.removeListener('end', onEnd); 21 | }, 22 | resume: function(){ 23 | this.end(); 24 | for (var i = 0, len = events.length; i < len; ++i) { 25 | obj.emit.apply(obj, events[i]); 26 | } 27 | } 28 | }; 29 | }; -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/commander/node_modules/keypress/test.js: -------------------------------------------------------------------------------- 1 | 2 | var keypress = require('./') 3 | keypress(process.stdin) 4 | 5 | if (process.stdin.setRawMode) 6 | process.stdin.setRawMode(true) 7 | else 8 | require('tty').setRawMode(true) 9 | 10 | process.stdin.on('keypress', function (c, key) { 11 | console.log(0, c, key) 12 | if (key && key.ctrl && key.name == 'c') { 13 | process.stdin.pause() 14 | } 15 | }) 16 | process.stdin.on('mousepress', function (mouse) { 17 | console.log(mouse) 18 | }) 19 | 20 | keypress.enableMouse(process.stdout) 21 | process.on('exit', function () { 22 | //disable mouse on exit, so that the state is back to normal 23 | //for the terminal. 24 | keypress.disableMouse(process.stdout) 25 | }) 26 | 27 | process.stdin.resume() 28 | 29 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/lib/middleware.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var utils = require('./utils'); 7 | 8 | /** 9 | * Initialization middleware, exposing the 10 | * request and response to eachother, as well 11 | * as defaulting the X-Powered-By header field. 12 | * 13 | * @param {Function} app 14 | * @return {Function} 15 | * @api private 16 | */ 17 | 18 | exports.init = function(app){ 19 | return function expressInit(req, res, next){ 20 | if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express'); 21 | req.res = res; 22 | res.req = req; 23 | req.next = next; 24 | 25 | req.__proto__ = app.request; 26 | res.__proto__ = app.response; 27 | 28 | res.locals = res.locals || utils.locals(res); 29 | 30 | next(); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/scmp/README.md: -------------------------------------------------------------------------------- 1 | # scmp 2 | 3 | [![Build Status](https://travis-ci.org/freewil/scmp.png)](https://travis-ci.org/freewil/scmp) 4 | 5 | Safe, constant-time comparison of strings. 6 | 7 | ## Install 8 | 9 | ``` 10 | npm install scmp 11 | ``` 12 | 13 | ## Why? 14 | 15 | To minimize vulnerability against [timing attacks](http://codahale.com/a-lesson-in-timing-attacks/). 16 | 17 | ## Examples 18 | 19 | ```js 20 | var scmp = require('scmp'); 21 | 22 | var hash = 'e727d1464ae12436e899a726da5b2f11d8381b26'; 23 | var givenHash = 'e727e1b80e448a213b392049888111e1779a52db'; 24 | 25 | if (scmp(hash, givenHash)) { 26 | console.log('good hash'); 27 | } else { 28 | console.log('bad hash'); 29 | } 30 | 31 | ``` 32 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/mounting.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | var blog = connect( 9 | connect.router(function(app){ 10 | app.get('/', function(req, res){ 11 | res.end('list blog posts. try /post/0'); 12 | }); 13 | 14 | app.get('/post/:id', function(req, res){ 15 | res.end('got post ' + req.params.id); 16 | }); 17 | }) 18 | ); 19 | 20 | var admin = connect( 21 | connect.basicAuth(function(user, pass){ return 'tj' == user && 'tobi' == pass }) 22 | , function(req, res){ 23 | res.end('admin stuff'); 24 | } 25 | ); 26 | 27 | connect() 28 | .use('/admin', admin) 29 | .use('/blog', blog) 30 | .use(function(req, res){ 31 | res.end('try /blog, /admin, or /blog/post/0'); 32 | }) 33 | .listen(3000); -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/errorhandler/public/style.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | outline: 0; 5 | } 6 | 7 | body { 8 | padding: 80px 100px; 9 | font: 13px "Helvetica Neue", "Lucida Grande", "Arial"; 10 | background: #ECE9E9 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ECE9E9)); 11 | background: #ECE9E9 -moz-linear-gradient(top, #fff, #ECE9E9); 12 | background-repeat: no-repeat; 13 | color: #555; 14 | -webkit-font-smoothing: antialiased; 15 | } 16 | h1, h2 { 17 | font-size: 22px; 18 | color: #343434; 19 | } 20 | h1 em, h2 em { 21 | padding: 0 5px; 22 | font-weight: normal; 23 | } 24 | h1 { 25 | font-size: 60px; 26 | } 27 | h2 { 28 | margin-top: 10px; 29 | } 30 | ul li { 31 | list-style: none; 32 | } 33 | #stacktrace { 34 | margin-left: 60px; 35 | } 36 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-favicon/History.md: -------------------------------------------------------------------------------- 1 | 2.0.1 / 2014-06-05 2 | ================== 3 | 4 | * Reduce byte size of `ETag` header 5 | 6 | 2.0.0 / 2014-05-02 7 | ================== 8 | 9 | * `path` argument is required; there is no default icon. 10 | * Accept `Buffer` of icon as first argument. 11 | * Non-GET and HEAD requests are denied. 12 | * Send valid max-age value 13 | * Support conditional requests 14 | * Support max-age=0 15 | * Support OPTIONS method 16 | * Throw if `path` argument is directory. 17 | 18 | 1.0.2 / 2014-03-16 19 | ================== 20 | 21 | * Fixed content of default icon. 22 | 23 | 1.0.1 / 2014-03-11 24 | ================== 25 | 26 | * Fixed path to default icon. 27 | 28 | 1.0.0 / 2014-02-15 29 | ================== 30 | 31 | * Initial release 32 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/basicAuth.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - basicAuth 3 | * Copyright(c) 2010 Sencha Inc. 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Basic Auth: 10 | * 11 | * Enfore basic authentication by providing a `callback(user, pass)`, 12 | * which must return `true` in order to gain access. Alternatively an async 13 | * method is provided as well, invoking `callback(user, pass, callback)`. Populates 14 | * `req.user`. The final alternative is simply passing username / password 15 | * strings. 16 | * 17 | * See [basic-auth-connect](https://github.com/expressjs/basic-auth-connect) 18 | * 19 | * @param {Function|String} callback or username 20 | * @param {String} realm 21 | * @api public 22 | */ 23 | 24 | module.exports = require('basic-auth-connect'); 25 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773 3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 5 | 6 | # BIN directory 7 | BIN := $(THIS_DIR)/node_modules/.bin 8 | 9 | # applications 10 | NODE ?= $(shell which node) 11 | NPM ?= $(NODE) $(shell which npm) 12 | BROWSERIFY ?= $(NODE) $(BIN)/browserify 13 | 14 | all: dist/debug.js 15 | 16 | install: node_modules 17 | 18 | clean: 19 | @rm -rf node_modules dist 20 | 21 | dist: 22 | @mkdir -p $@ 23 | 24 | dist/debug.js: node_modules browser.js debug.js dist 25 | @$(BROWSERIFY) \ 26 | --standalone debug \ 27 | . > $@ 28 | 29 | node_modules: package.json 30 | @NODE_ENV= $(NPM) install 31 | @touch node_modules 32 | 33 | .PHONY: all install clean 34 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/node_modules/mime-types/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | # Icon? 33 | ehthumbs.db 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/morgan/History.md: -------------------------------------------------------------------------------- 1 | 1.1.1 / 2014-05-20 2 | ================== 3 | 4 | * simplify method to get remote address 5 | 6 | 1.1.0 / 2014-05-18 7 | ================== 8 | 9 | * "dev" format will use same tokens as other formats 10 | * `:response-time` token is now empty when immediate used 11 | * `:response-time` token is now monotonic 12 | * `:response-time` token has precision to 1 μs 13 | * fix `:status` + immediate output in node.js 0.8 14 | * improve `buffer` option to prevent indefinite event loop holding 15 | * deps: bytes@1.0.0 16 | - add negative support 17 | 18 | 1.0.1 / 2014-05-04 19 | ================== 20 | 21 | * Make buffer unique per morgan instance 22 | * deps: bytes@0.3.0 23 | * added terabyte support 24 | 25 | 1.0.0 / 2014-02-08 26 | ================== 27 | 28 | * Initial release 29 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/History.md: -------------------------------------------------------------------------------- 1 | 1.1.1 / 2014-06-11 2 | ================== 3 | 4 | * deps: accepts@1.0.3 5 | 6 | 1.1.0 / 2014-05-29 7 | ================== 8 | 9 | * Fix content negotiation when no `Accept` header 10 | * Properly support all HTTP methods 11 | * Support vanilla node.js http servers 12 | * Treat `ENAMETOOLONG` as code 414 13 | * Use accepts for negotiation 14 | 15 | 1.0.3 / 2014-05-20 16 | ================== 17 | 18 | * Fix error from non-statable files in HTML view 19 | 20 | 1.0.2 / 2014-04-28 21 | ================== 22 | 23 | * Add `stylesheet` option 24 | * deps: negotiator@0.4.3 25 | 26 | 1.0.1 / 2014-03-05 27 | ================== 28 | 29 | * deps: negotiator@0.4.2 30 | 31 | 1.0.0 / 2014-03-05 32 | ================== 33 | 34 | * Genesis from connect 35 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/node_modules/utils-merge/README.md: -------------------------------------------------------------------------------- 1 | # utils-merge 2 | 3 | Merges the properties from a source object into a destination object. 4 | 5 | ## Install 6 | 7 | $ npm install utils-merge 8 | 9 | ## Usage 10 | 11 | ```javascript 12 | var a = { foo: 'bar' } 13 | , b = { bar: 'baz' }; 14 | 15 | merge(a, b); 16 | // => { foo: 'bar', bar: 'baz' } 17 | ``` 18 | 19 | ## Tests 20 | 21 | $ npm install 22 | $ npm test 23 | 24 | [![Build Status](https://secure.travis-ci.org/jaredhanson/utils-merge.png)](http://travis-ci.org/jaredhanson/utils-merge) 25 | 26 | ## Credits 27 | 28 | - [Jared Hanson](http://github.com/jaredhanson) 29 | 30 | ## License 31 | 32 | [The MIT License](http://opensource.org/licenses/MIT) 33 | 34 | Copyright (c) 2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)> 35 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/upload.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | connect() 9 | .use(connect.bodyParser()) 10 | .use(form) 11 | .use(upload) 12 | .listen(3000); 13 | 14 | function form(req, res, next) { 15 | if ('GET' !== req.method) return next(); 16 | res.setHeader('Content-Type', 'text/html'); 17 | res.end('
' 18 | + '' 19 | + '' 20 | + '
'); 21 | } 22 | 23 | function upload(req, res, next) { 24 | if ('POST' !== req.method) return next(); 25 | req.files.images.forEach(function(file){ 26 | console.log(' uploaded : %s %skb : %s', file.originalFilename, file.size / 1024 | 0, file.path); 27 | }); 28 | res.end('Thanks'); 29 | } -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/test/dash.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('-', function (t) { 5 | t.plan(5); 6 | t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] }); 7 | t.deepEqual(parse([ '-' ]), { _: [ '-' ] }); 8 | t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] }); 9 | t.deepEqual( 10 | parse([ '-b', '-' ], { boolean: 'b' }), 11 | { b: true, _: [ '-' ] } 12 | ); 13 | t.deepEqual( 14 | parse([ '-s', '-' ], { string: 's' }), 15 | { s: '-', _: [] } 16 | ); 17 | }); 18 | 19 | test('-a -- b', function (t) { 20 | t.plan(3); 21 | t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 22 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 23 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 24 | }); 25 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/favicon.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - favicon 3 | * Copyright(c) 2010 Sencha Inc. 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var path = require('path'); 13 | var serveFavicon = require('serve-favicon'); 14 | 15 | var defaultPath = path.join(__dirname, '..', 'public', 'favicon.ico'); 16 | 17 | /** 18 | * Favicon: 19 | * 20 | * By default serves the connect favicon, or the favicon 21 | * located by the given `path`. 22 | * 23 | * See [serve-favicon](https://github.com/expressjs/serve-favicon) 24 | * 25 | * @param {String|Buffer} path 26 | * @param {Object} options 27 | * @return {Function} 28 | * @api public 29 | */ 30 | 31 | module.exports = function favicon(path, options){ 32 | path = path || defaultPath; 33 | return serveFavicon(path, options); 34 | }; 35 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/parseurl/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | # Icon? 33 | ehthumbs.db 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | /public -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/merge-descriptors/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | ehthumbs.db 33 | Icon? 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | /vendors -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/bin/cmd.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var mkdirp = require('../'); 4 | var minimist = require('minimist'); 5 | var fs = require('fs'); 6 | 7 | var argv = minimist(process.argv.slice(2), { 8 | alias: { m: 'mode', h: 'help' }, 9 | string: [ 'mode' ] 10 | }); 11 | if (argv.help) { 12 | fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout); 13 | return; 14 | } 15 | 16 | var paths = argv._.slice(); 17 | var mode = argv.mode ? parseInt(argv.mode, 8) : undefined; 18 | 19 | (function next () { 20 | if (paths.length === 0) return; 21 | var p = paths.shift(); 22 | 23 | if (mode === undefined) mkdirp(p, cb) 24 | else mkdirp(p, mode, cb) 25 | 26 | function cb (err) { 27 | if (err) { 28 | console.error(err.message); 29 | process.exit(1); 30 | } 31 | else next(); 32 | } 33 | })(); 34 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/vhost.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | 8 | var account = connect(function(req, res){ 9 | var location = 'http://localhost:3000/account/' + req.headers.host.split('.localhost')[0]; 10 | res.statusCode = 302; 11 | res.setHeader('Location', location); 12 | res.end('Moved to ' + location); 13 | }); 14 | 15 | var blog = connect(function(req, res){ 16 | res.end('blog app'); 17 | }); 18 | 19 | var main = connect(function(req, res){ 20 | if (req.url == '/') return res.end('main app'); 21 | if (0 == req.url.indexOf('/account/')) return res.end('viewing user account for ' + req.url.substring(9)); 22 | res.statusCode = 404; 23 | res.end(); 24 | }); 25 | 26 | connect( 27 | connect.logger() 28 | , connect.vhost('blog.localhost', blog) 29 | , connect.vhost('*.localhost', account) 30 | , main 31 | ).listen(3000); 32 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/opts_fs_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var test = require('tap').test; 4 | var mockfs = require('mock-fs'); 5 | 6 | test('opts.fs sync', function (t) { 7 | t.plan(4); 8 | 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/beep/boop/' + [x,y,z].join('/'); 14 | var xfs = mockfs.fs(); 15 | 16 | mkdirp.sync(file, { fs: xfs, mode: 0755 }); 17 | xfs.exists(file, function (ex) { 18 | t.ok(ex, 'created file'); 19 | xfs.stat(file, function (err, stat) { 20 | t.ifError(err); 21 | t.equal(stat.mode & 0777, 0755); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/lib/utils.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var crypto = require('crypto'); 7 | 8 | /** 9 | * Return a weak ETag from the given `path` and `stat`. 10 | * 11 | * @param {String} path 12 | * @param {Object} stat 13 | * @return {String} 14 | * @api private 15 | */ 16 | 17 | exports.etag = function etag(path, stat) { 18 | var tag = String(stat.mtime.getTime()) + ':' + String(stat.size) + ':' + path; 19 | var str = crypto 20 | .createHash('md5') 21 | .update(tag, 'utf8') 22 | .digest('base64'); 23 | return 'W/"' + str + '"'; 24 | }; 25 | 26 | /** 27 | * decodeURIComponent. 28 | * 29 | * Allows V8 to only deoptimize this fn instead of all 30 | * of send(). 31 | * 32 | * @param {String} path 33 | * @api private 34 | */ 35 | 36 | exports.decode = function(path){ 37 | try { 38 | return decodeURIComponent(path); 39 | } catch (err) { 40 | return -1; 41 | } 42 | }; 43 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/perm.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('async perm', function (t) { 8 | t.plan(5); 9 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16); 10 | 11 | mkdirp(file, 0755, function (err) { 12 | t.ifError(err); 13 | exists(file, function (ex) { 14 | t.ok(ex, 'file created'); 15 | fs.stat(file, function (err, stat) { 16 | t.ifError(err); 17 | t.equal(stat.mode & 0777, 0755); 18 | t.ok(stat.isDirectory(), 'target not a directory'); 19 | }) 20 | }) 21 | }); 22 | }); 23 | 24 | test('async root perm', function (t) { 25 | mkdirp('/tmp', 0755, function (err) { 26 | if (err) t.fail(err); 27 | t.end(); 28 | }); 29 | t.end(); 30 | }); 31 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/return.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(4); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | mkdirp(file, function (err, made) { 18 | t.ifError(err); 19 | t.equal(made, '/tmp/' + x); 20 | mkdirp(file, function (err, made) { 21 | t.ifError(err); 22 | t.equal(made, null); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/test/long.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('long opts', function (t) { 5 | t.deepEqual( 6 | parse([ '--bool' ]), 7 | { bool : true, _ : [] }, 8 | 'long boolean' 9 | ); 10 | t.deepEqual( 11 | parse([ '--pow', 'xixxle' ]), 12 | { pow : 'xixxle', _ : [] }, 13 | 'long capture sp' 14 | ); 15 | t.deepEqual( 16 | parse([ '--pow=xixxle' ]), 17 | { pow : 'xixxle', _ : [] }, 18 | 'long capture eq' 19 | ); 20 | t.deepEqual( 21 | parse([ '--host', 'localhost', '--port', '555' ]), 22 | { host : 'localhost', port : 555, _ : [] }, 23 | 'long captures sp' 24 | ); 25 | t.deepEqual( 26 | parse([ '--host=localhost', '--port=555' ]), 27 | { host : 'localhost', port : 555, _ : [] }, 28 | 'long captures eq' 29 | ); 30 | t.end(); 31 | }); 32 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/mkdirp.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('woo', function (t) { 8 | t.plan(5); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/tmp/' + [x,y,z].join('/'); 14 | 15 | mkdirp(file, 0755, function (err) { 16 | t.ifError(err); 17 | exists(file, function (ex) { 18 | t.ok(ex, 'file created'); 19 | fs.stat(file, function (err, stat) { 20 | t.ifError(err); 21 | t.equal(stat.mode & 0777, 0755); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | }) 24 | }) 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/return_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | // Note that this will throw on failure, which will fail the test. 18 | var made = mkdirp.sync(file); 19 | t.equal(made, '/tmp/' + x); 20 | 21 | // making the same file again should have no effect. 22 | made = mkdirp.sync(file); 23 | t.equal(made, null); 24 | }); 25 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/debug/node_modules/ms/README.md: -------------------------------------------------------------------------------- 1 | # ms.js: miliseconds conversion utility 2 | 3 | ```js 4 | ms('1d') // 86400000 5 | ms('10h') // 36000000 6 | ms('2h') // 7200000 7 | ms('1m') // 60000 8 | ms('5s') // 5000 9 | ms('100') // 100 10 | ``` 11 | 12 | ```js 13 | ms(60000) // "1m" 14 | ms(2 * 60000) // "2m" 15 | ms(ms('10 hours')) // "10h" 16 | ``` 17 | 18 | ```js 19 | ms(60000, { long: true }) // "1 minute" 20 | ms(2 * 60000, { long: true }) // "2 minutes" 21 | ms(ms('10 hours', { long: true })) // "10 hours" 22 | ``` 23 | 24 | - Node/Browser compatible. Published as `ms` in NPM. 25 | - If a number is supplied to `ms`, a string with a unit is returned. 26 | - If a string that contains the number is supplied, it returns it as 27 | a number (e.g: it returns `100` for `'100'`). 28 | - If you pass a string with a number and a valid unit, the number of 29 | equivalent ms is returned. 30 | 31 | ## License 32 | 33 | MIT -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('sync', function (t) { 8 | t.plan(4); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/tmp/' + [x,y,z].join('/'); 14 | 15 | try { 16 | mkdirp.sync(file, 0755); 17 | } catch (err) { 18 | t.fail(err); 19 | return t.end(); 20 | } 21 | 22 | exists(file, function (ex) { 23 | t.ok(ex, 'file created'); 24 | fs.stat(file, function (err, stat) { 25 | t.ifError(err); 26 | t.equal(stat.mode & 0777, 0755); 27 | t.ok(stat.isDirectory(), 'target not a directory'); 28 | }); 29 | }); 30 | }); 31 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/History.md: -------------------------------------------------------------------------------- 1 | 1.2.1 / 2014-05-27 2 | ================== 3 | 4 | * Fix `resave` such that `resave: true` works 5 | 6 | 1.2.0 / 2014-05-19 7 | ================== 8 | 9 | * Add `resave` option to control saving unmodified sessions 10 | 11 | 1.1.0 / 2014-05-12 12 | ================== 13 | 14 | * Add `name` option; replacement for `key` option 15 | * Use `setImmediate` in MemoryStore for node.js >= 0.10 16 | 17 | 1.0.4 / 2014-04-27 18 | ================== 19 | 20 | * deps: debug@0.8.1 21 | 22 | 1.0.3 / 2014-04-19 23 | ================== 24 | 25 | * Use `res.cookie()` instead of `res.setHeader()` 26 | * deps: cookie@0.1.2 27 | 28 | 1.0.2 / 2014-02-23 29 | ================== 30 | 31 | * Add missing dependency to `package.json` 32 | 33 | 1.0.1 / 2014-02-15 34 | ================== 35 | 36 | * Add missing dependencies to `package.json` 37 | 38 | 1.0.0 / 2014-02-15 39 | ================== 40 | 41 | * Genesis from `connect` 42 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/umask.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('implicit mode from umask', function (t) { 8 | t.plan(5); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/tmp/' + [x,y,z].join('/'); 14 | 15 | mkdirp(file, function (err) { 16 | t.ifError(err); 17 | exists(file, function (ex) { 18 | t.ok(ex, 'file created'); 19 | fs.stat(file, function (err, stat) { 20 | t.ifError(err); 21 | t.equal(stat.mode & 0777, 0777 & (~process.umask())); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | }); 24 | }) 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/opts_fs.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var test = require('tap').test; 4 | var mockfs = require('mock-fs'); 5 | 6 | test('opts.fs', function (t) { 7 | t.plan(5); 8 | 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/beep/boop/' + [x,y,z].join('/'); 14 | var xfs = mockfs.fs(); 15 | 16 | mkdirp(file, { fs: xfs, mode: 0755 }, function (err) { 17 | t.ifError(err); 18 | xfs.exists(file, function (ex) { 19 | t.ok(ex, 'created file'); 20 | xfs.stat(file, function (err, stat) { 21 | t.ifError(err); 22 | t.equal(stat.mode & 0777, 0755); 23 | t.ok(stat.isDirectory(), 'target not a directory'); 24 | }); 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/clobber.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../').mkdirp; 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | var ps = [ '', 'tmp' ]; 7 | 8 | for (var i = 0; i < 25; i++) { 9 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | ps.push(dir); 11 | } 12 | 13 | var file = ps.join('/'); 14 | 15 | // a file in the way 16 | var itw = ps.slice(0, 3).join('/'); 17 | 18 | 19 | test('clobber-pre', function (t) { 20 | console.error("about to write to "+itw) 21 | fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.'); 22 | 23 | fs.stat(itw, function (er, stat) { 24 | t.ifError(er) 25 | t.ok(stat && stat.isFile(), 'should be file') 26 | t.end() 27 | }) 28 | }) 29 | 30 | test('clobber', function (t) { 31 | t.plan(2); 32 | mkdirp(file, 0755, function (err) { 33 | t.ok(err); 34 | t.equal(err.code, 'ENOTDIR'); 35 | t.end(); 36 | }); 37 | }); 38 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/compression/node_modules/compressible/index.js: -------------------------------------------------------------------------------- 1 | module.exports = compressible 2 | 3 | compressible.specs = 4 | compressible.specifications = require('./specifications.json') 5 | 6 | compressible.regex = 7 | compressible.regexp = /json|text|xml/ 8 | 9 | compressible.get = get 10 | 11 | function compressible(type) { 12 | if (!type || typeof type !== "string") return false 13 | var i = type.indexOf(';') 14 | , spec = compressible.specs[~i ? type.slice(0, i) : type] 15 | return spec ? spec.compressible : compressible.regex.test(type) 16 | } 17 | 18 | function get(type) { 19 | if (!type || typeof type !== "string") return { 20 | compressible: false, 21 | notes: "Invalid type." 22 | } 23 | var i = type.indexOf(';') 24 | , spec = compressible.specs[~i ? type.slice(0, i) : type] 25 | return spec ? spec : { 26 | compressible: compressible.regex.test(type), 27 | sources: ["compressible.regex"], 28 | notes: "Automatically generated via regex." 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/scmp/test/test.js: -------------------------------------------------------------------------------- 1 | var scmp = require('../'); 2 | var assert = require('assert'); 3 | 4 | describe('scmp', function() { 5 | it('should return true for identical strings', function() { 6 | assert(scmp('a', 'a')); 7 | assert(scmp('abc', 'abc')); 8 | assert(scmp('e727d1464ae12436e899a726da5b2f11d8381b26', 'e727d1464ae12436e899a726da5b2f11d8381b26')); 9 | }); 10 | 11 | it('should return false for non-identical strings', function() { 12 | assert.ifError(scmp('a', 'b')); 13 | assert.ifError(scmp('abc', 'b')); 14 | assert.ifError(scmp('e727d1464ae12436e899a726da5b2f11d8381b26', 'e727e1b80e448a213b392049888111e1779a52db')); 15 | }); 16 | 17 | it('should not throw errors for non-strings', function() { 18 | assert.ifError(scmp('a', {})); 19 | assert.ifError(scmp({}, 'b')); 20 | assert.ifError(scmp(1, 2)); 21 | assert.ifError(scmp(undefined, 2)); 22 | assert.ifError(scmp(null, 2)); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/methods/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "methods", 3 | "version": "1.0.1", 4 | "description": "HTTP methods that node supports", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "./node_modules/mocha/bin/mocha" 8 | }, 9 | "keywords": [ 10 | "http", 11 | "methods" 12 | ], 13 | "author": { 14 | "name": "TJ Holowaychuk" 15 | }, 16 | "license": "MIT", 17 | "repository": { 18 | "type": "git", 19 | "url": "git://github.com/visionmedia/node-methods.git" 20 | }, 21 | "devDependencies": { 22 | "mocha": "1.17.x" 23 | }, 24 | "readme": "\n# Methods\n\n HTTP verbs that node core's parser supports.\n", 25 | "readmeFilename": "Readme.md", 26 | "bugs": { 27 | "url": "https://github.com/visionmedia/node-methods/issues" 28 | }, 29 | "_id": "methods@1.0.1", 30 | "dist": { 31 | "shasum": "75bc91943dffd7da037cf3eeb0ed73a0037cd14b" 32 | }, 33 | "_from": "methods@1.0.1", 34 | "_resolved": "https://registry.npmjs.org/methods/-/methods-1.0.1.tgz" 35 | } 36 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/methods/test/methods.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var assert = require('assert'); 3 | var methods = require('..'); 4 | 5 | describe('methods', function() { 6 | 7 | if (http.METHODS) { 8 | 9 | it('is a lowercased http.METHODS', function() { 10 | var lowercased = http.METHODS.map(function(method) { 11 | return method.toLowerCase(); 12 | }); 13 | assert.deepEqual(lowercased, methods); 14 | }); 15 | 16 | } else { 17 | 18 | it('contains GET, POST, PUT, and DELETE', function() { 19 | assert.notEqual(methods.indexOf('get'), -1); 20 | assert.notEqual(methods.indexOf('post'), -1); 21 | assert.notEqual(methods.indexOf('put'), -1); 22 | assert.notEqual(methods.indexOf('delete'), -1); 23 | }); 24 | 25 | it('is all lowercase', function() { 26 | for (var i = 0; i < methods.length; i ++) { 27 | assert(methods[i], methods[i].toLowerCase(), methods[i] + " isn't all lowercase"); 28 | } 29 | }); 30 | 31 | } 32 | 33 | }); 34 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/umask_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('umask sync modes', function (t) { 8 | t.plan(4); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/tmp/' + [x,y,z].join('/'); 14 | 15 | try { 16 | mkdirp.sync(file); 17 | } catch (err) { 18 | t.fail(err); 19 | return t.end(); 20 | } 21 | 22 | exists(file, function (ex) { 23 | t.ok(ex, 'file created'); 24 | fs.stat(file, function (err, stat) { 25 | t.ifError(err); 26 | t.equal(stat.mode & 0777, (0777 & (~process.umask()))); 27 | t.ok(stat.isDirectory(), 'target not a directory'); 28 | }); 29 | }); 30 | }); 31 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/core-util-is/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core-util-is", 3 | "version": "1.0.1", 4 | "description": "The `util.is*` functions introduced in Node v0.12.", 5 | "main": "lib/util.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/isaacs/core-util-is" 9 | }, 10 | "keywords": [ 11 | "util", 12 | "isBuffer", 13 | "isArray", 14 | "isNumber", 15 | "isString", 16 | "isRegExp", 17 | "isThis", 18 | "isThat", 19 | "polyfill" 20 | ], 21 | "author": { 22 | "name": "Isaac Z. Schlueter", 23 | "email": "i@izs.me", 24 | "url": "http://blog.izs.me/" 25 | }, 26 | "license": "MIT", 27 | "bugs": { 28 | "url": "https://github.com/isaacs/core-util-is/issues" 29 | }, 30 | "readme": "# core-util-is\n\nThe `util.is*` functions introduced in Node v0.12.\n", 31 | "readmeFilename": "README.md", 32 | "_id": "core-util-is@1.0.1", 33 | "_from": "core-util-is@~1.0.0" 34 | } 35 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/escape-html/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape HTML entities", 4 | "version": "1.0.1", 5 | "keywords": [ 6 | "escape", 7 | "html", 8 | "utility" 9 | ], 10 | "dependencies": {}, 11 | "main": "index.js", 12 | "component": { 13 | "scripts": { 14 | "escape-html/index.js": "index.js" 15 | } 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "https://github.com/component/escape-html.git" 20 | }, 21 | "readme": "\n# escape-html\n\n Escape HTML entities\n\n## Example\n\n```js\nvar escape = require('escape-html');\nescape(str);\n```\n\n## License\n\n MIT", 22 | "readmeFilename": "Readme.md", 23 | "bugs": { 24 | "url": "https://github.com/component/escape-html/issues" 25 | }, 26 | "_id": "escape-html@1.0.1", 27 | "dist": { 28 | "shasum": "181a286ead397a39a92857cfb1d43052e356bff0" 29 | }, 30 | "_from": "escape-html@1.0.1", 31 | "_resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz" 32 | } 33 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/response-time/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - responseTime 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies 10 | */ 11 | 12 | var onHeaders = require('on-headers') 13 | 14 | /** 15 | * Reponse time: 16 | * 17 | * Adds the `X-Response-Time` header displaying the response 18 | * duration in milliseconds. 19 | * 20 | * @param {number} [digits=3] 21 | * @return {function} 22 | * @api public 23 | */ 24 | 25 | module.exports = function responseTime(digits) { 26 | digits = digits === undefined 27 | ? 3 28 | : digits 29 | 30 | return function responseTime(req, res, next) { 31 | var startAt = process.hrtime() 32 | 33 | onHeaders(res, function () { 34 | if (this.getHeader('X-Response-Time')) return; 35 | 36 | var diff = process.hrtime(startAt) 37 | var ms = diff[0] * 1e3 + diff[1] * 1e-6 38 | 39 | this.setHeader('X-Response-Time', ms.toFixed(digits) + 'ms') 40 | }) 41 | 42 | next() 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/node_modules/mime-types/lib/node.json: -------------------------------------------------------------------------------- 1 | { 2 | "text/vtt": [ 3 | "vtt" 4 | ], 5 | "application/x-chrome-extension": [ 6 | "crx" 7 | ], 8 | "text/x-component": [ 9 | "htc" 10 | ], 11 | "text/cache-manifest": [ 12 | "manifest" 13 | ], 14 | "application/octet-stream": [ 15 | "buffer" 16 | ], 17 | "application/mp4": [ 18 | "m4p" 19 | ], 20 | "audio/mp4": [ 21 | "m4a" 22 | ], 23 | "video/MP2T": [ 24 | "ts" 25 | ], 26 | "application/x-web-app-manifest+json": [ 27 | "webapp" 28 | ], 29 | "text/x-lua": [ 30 | "lua" 31 | ], 32 | "application/x-lua-bytecode": [ 33 | "luac" 34 | ], 35 | "text/x-markdown": [ 36 | "markdown", 37 | "md", 38 | "mkd" 39 | ], 40 | "text/plain": [ 41 | "ini" 42 | ], 43 | "application/dash+xml": [ 44 | "mdp" 45 | ], 46 | "font/opentype": [ 47 | "otf" 48 | ], 49 | "application/json": [ 50 | "map" 51 | ], 52 | "application/xml": [ 53 | "xsd" 54 | ] 55 | } 56 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/upload-stream.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../'); 7 | var fs = require('fs'); 8 | 9 | connect() 10 | .use(connect.bodyParser({ defer: true })) 11 | .use(form) 12 | .use(upload) 13 | .listen(3000); 14 | 15 | function form(req, res, next) { 16 | if ('GET' !== req.method) return next(); 17 | res.setHeader('Content-Type', 'text/html'); 18 | res.end('
' 19 | + '' 20 | + '' 21 | + '
'); 22 | } 23 | 24 | function upload(req, res, next) { 25 | if ('POST' !== req.method) return next(); 26 | 27 | req.form.on('part', function(part){ 28 | // transfer to s3 etc 29 | console.log('upload %s %s', part.name, part.filename); 30 | var out = fs.createWriteStream('/tmp/' + part.filename); 31 | part.pipe(out); 32 | }); 33 | 34 | req.form.on('close', function(){ 35 | res.end('uploaded!'); 36 | }); 37 | } -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/rel.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('rel', function (t) { 8 | t.plan(5); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var cwd = process.cwd(); 14 | process.chdir('/tmp'); 15 | 16 | var file = [x,y,z].join('/'); 17 | 18 | mkdirp(file, 0755, function (err) { 19 | t.ifError(err); 20 | exists(file, function (ex) { 21 | t.ok(ex, 'file created'); 22 | fs.stat(file, function (err, stat) { 23 | t.ifError(err); 24 | process.chdir(cwd); 25 | t.equal(stat.mode & 0777, 0755); 26 | t.ok(stat.isDirectory(), 'target not a directory'); 27 | }) 28 | }) 29 | }); 30 | }); 31 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/node_modules/mime-types/SOURCES.md: -------------------------------------------------------------------------------- 1 | 2 | ### Sources for custom types 3 | 4 | This is a list of sources for any custom mime types. 5 | When adding custom mime types, please link to where you found the mime type, 6 | even if it's from an unofficial source. 7 | 8 | - `text/coffeescript` - http://coffeescript.org/#scripts 9 | - `text/x-handlebars-template` - https://handlebarsjs.com/#getting-started 10 | - `text/x-sass` & `text/x-scss` - https://github.com/janlelis/rubybuntu-mime/blob/master/sass.xml 11 | 12 | [Sources for node.json types](https://github.com/broofa/node-mime/blob/master/types/node.types) 13 | 14 | ### Notes on weird types 15 | 16 | - `font/opentype` - This type is technically invalid according to the spec. No valid types begin with `font/`. No-one uses the official type of `application/vnd.ms-opentype` as the community standardized `application/x-font-otf`. However, chrome logs nonsense warnings unless opentype fonts are served with `font/opentype`. [[1]](http://stackoverflow.com/questions/2871655/proper-mime-type-for-fonts) 17 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/node_modules/finished/node_modules/ee-first/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ee-first", 3 | "description": "return the first event in a set of ee/event pairs", 4 | "version": "1.0.3", 5 | "author": { 6 | "name": "Jonathan Ong", 7 | "email": "me@jongleberry.com", 8 | "url": "http://jongleberry.com" 9 | }, 10 | "license": "MIT", 11 | "repository": { 12 | "type": "git", 13 | "url": "git://github.com/jonathanong/ee-first" 14 | }, 15 | "devDependencies": { 16 | "mocha": "1" 17 | }, 18 | "scripts": { 19 | "test": "mocha --reporter spec" 20 | }, 21 | "readme": "\n# EE First\n\nGet the first event in a set of event emitters and event pairs,\nthen clean up after itself.\n", 22 | "readmeFilename": "README.md", 23 | "bugs": { 24 | "url": "https://github.com/jonathanong/ee-first/issues" 25 | }, 26 | "_id": "ee-first@1.0.3", 27 | "dist": { 28 | "shasum": "6c98c4089abecb5a7b85c1ac449aa603d3b3dabe" 29 | }, 30 | "_from": "ee-first@1.0.3", 31 | "_resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.0.3.tgz" 32 | } 33 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/perm_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('sync perm', function (t) { 8 | t.plan(4); 9 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16) + '.json'; 10 | 11 | mkdirp.sync(file, 0755); 12 | exists(file, function (ex) { 13 | t.ok(ex, 'file created'); 14 | fs.stat(file, function (err, stat) { 15 | t.ifError(err); 16 | t.equal(stat.mode & 0777, 0755); 17 | t.ok(stat.isDirectory(), 'target not a directory'); 18 | }); 19 | }); 20 | }); 21 | 22 | test('sync root perm', function (t) { 23 | t.plan(3); 24 | 25 | var file = '/tmp'; 26 | mkdirp.sync(file, 0755); 27 | exists(file, function (ex) { 28 | t.ok(ex, 'file created'); 29 | fs.stat(file, function (err, stat) { 30 | t.ifError(err); 31 | t.ok(stat.isDirectory(), 'target not a directory'); 32 | }) 33 | }); 34 | }); 35 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/rndm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rndm", 3 | "description": "random string generator", 4 | "version": "1.0.0", 5 | "author": { 6 | "name": "Jonathan Ong", 7 | "email": "me@jongleberry.com", 8 | "url": "http://jongleberry.com" 9 | }, 10 | "license": "MIT", 11 | "repository": { 12 | "type": "git", 13 | "url": "git://github.com/jonathanong/rndm" 14 | }, 15 | "readme": "\n# RNDM\n\nRandom string generator.\nBasically `Math.random().toString(36).slice(2)`,\nbut with both upper and lower case letters and arbitrary lengths.\nUseful for creating fast, not cryptographically secure salts.\n\n## API\n\n```js\nimport rndm from 'rndm@1'\n\nvar salt = rndm(16)\n```\n", 16 | "readmeFilename": "README.md", 17 | "bugs": { 18 | "url": "https://github.com/jonathanong/rndm/issues" 19 | }, 20 | "_id": "rndm@1.0.0", 21 | "dist": { 22 | "shasum": "dcb6eb485b9b416d15e097f39c31458e4cfda2da" 23 | }, 24 | "_from": "rndm@1", 25 | "_resolved": "https://registry.npmjs.org/rndm/-/rndm-1.0.0.tgz" 26 | } 27 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/vary/README.md: -------------------------------------------------------------------------------- 1 | # vary 2 | 3 | [![NPM version](https://badge.fury.io/js/vary.svg)](http://badge.fury.io/js/vary) 4 | [![Build Status](https://travis-ci.org/expressjs/vary.svg?branch=master)](https://travis-ci.org/expressjs/vary) 5 | [![Coverage Status](https://img.shields.io/coveralls/expressjs/vary.svg?branch=master)](https://coveralls.io/r/expressjs/vary) 6 | 7 | Update the Vary header of a response 8 | 9 | ## Install 10 | 11 | ```sh 12 | $ npm install vary 13 | ``` 14 | 15 | ## API 16 | 17 | ```js 18 | var vary = require('vary') 19 | ``` 20 | 21 | ### vary(res, field) 22 | 23 | Adds the given header `field` to the `Vary` response header of `res`. 24 | This can be a string of a single field or an array of multiple fields. 25 | 26 | This will append the header if not already listed, otherwise leaves 27 | it listed in the current location. 28 | 29 | ```js 30 | vary(res, 'Origin') 31 | vary(res, 'User-Agent') 32 | vary(res, ['Accept', 'Accept-Language', 'Accept-Encoding']) 33 | ``` 34 | 35 | ## Testing 36 | 37 | ```sh 38 | $ npm test 39 | ``` 40 | 41 | ## License 42 | 43 | [MIT](LICENSE) 44 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Jamon Holmgren 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2011-2013 Felix Geisendörfer, Andrew Kelley 2 | 3 | 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: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | 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. 8 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/cookie/LICENSE: -------------------------------------------------------------------------------- 1 | // MIT License 2 | 3 | Copyright (C) Roman Shtylman 4 | 5 | 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: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | 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. 10 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/method-override/History.md: -------------------------------------------------------------------------------- 1 | 2.0.2 / 2014-06-05 2 | ================== 3 | 4 | * use vary module for better `Vary` behavior 5 | 6 | 2.0.1 / 2014-06-02 7 | ================== 8 | 9 | * deps: methods@1.0.1 10 | 11 | 2.0.0 / 2014-06-01 12 | ================== 13 | 14 | * Default behavior only checks `X-HTTP-Method-Override` header 15 | * New interface, less magic 16 | - Can specify what header to look for override in, if wanted 17 | - Can specify custom function to get method from request 18 | * Only `POST` requests are examined by default 19 | * Remove `req.body` support for more standard query param support 20 | - Use custom `getter` function if `req.body` support is needed 21 | * Set `Vary` header when using built-in header checking 22 | 23 | 1.0.2 / 2014-05-22 24 | ================== 25 | 26 | * Handle `req.body` key referencing array or object 27 | * Handle multiple HTTP headers 28 | 29 | 1.0.1 / 2014-05-17 30 | ================== 31 | 32 | * deps: pin dependency versions 33 | 34 | 1.0.0 / 2014-03-03 35 | ================== 36 | 37 | * Genesis from `connect` 38 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/csrf.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var connect = require('../') 7 | , http = require('http'); 8 | 9 | var form = '\n\ 10 |
\n\ 11 | \n\ 12 | \n\ 13 | \n\ 14 |
\n\ 15 | '; 16 | 17 | var app = connect() 18 | .use(connect.cookieParser()) 19 | .use(connect.session({ secret: 'keyboard cat' })) 20 | .use(connect.bodyParser()) 21 | .use(connect.csrf()) 22 | .use(function(req, res, next){ 23 | if ('POST' != req.method) return next(); 24 | req.session.user = req.body.user; 25 | next(); 26 | }) 27 | .use(function(req, res){ 28 | res.setHeader('Content-Type', 'text/html'); 29 | var body = form 30 | .replace('{token}', req.csrfToken()) 31 | .replace('{user}', req.session.user && req.session.user.name || ''); 32 | res.end(body); 33 | }); 34 | 35 | http.createServer(app).listen(3000); 36 | console.log('Server listening on port 3000'); 37 | -------------------------------------------------------------------------------- /apex.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | require File.expand_path('../lib/apex/version', __FILE__) 3 | 4 | Gem::Specification.new do |gem| 5 | gem.name = "apex" 6 | gem.version = Apex::VERSION 7 | gem.authors = ["Jamon Holmgren"] 8 | gem.email = ["jamon@clearsightstudio.com"] 9 | gem.description = "Apex: the RubyMotion web framework for OS X." 10 | gem.summary = " 11 | Apex is a RubyMotion web framework for OS X. It uses 12 | GCDWebServer under the hood and provides a Sinatra-like 13 | router and DSL. 14 | " 15 | gem.homepage = "https://github.com/clearsightstudio/apex" 16 | gem.license = "MIT" 17 | 18 | gem.files = Dir.glob("lib/**/*.rb") 19 | gem.files << "README.md" 20 | 21 | gem.test_files = Dir.glob("spec/**/*.rb") 22 | gem.require_paths = ["lib"] 23 | 24 | gem.add_dependency("motion-cocoapods", ">= 1.5.0") 25 | # gem.add_development_dependency("webstub", "~> 1.0") 26 | # gem.add_development_dependency("motion-stump", "~> 0.3") 27 | gem.add_development_dependency("rake", ">= 10.0") 28 | end 29 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/query.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - query 3 | * Copyright(c) 2011 TJ Holowaychuk 4 | * Copyright(c) 2011 Sencha Inc. 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var qs = require('qs') 13 | , parseurl = require('parseurl'); 14 | 15 | /** 16 | * Query: 17 | * 18 | * Automatically parse the query-string when available, 19 | * populating the `req.query` object using 20 | * [qs](https://github.com/visionmedia/node-querystring). 21 | * 22 | * Examples: 23 | * 24 | * connect() 25 | * .use(connect.query()) 26 | * .use(function(req, res){ 27 | * res.end(JSON.stringify(req.query)); 28 | * }); 29 | * 30 | * The `options` passed are provided to qs.parse function. 31 | * 32 | * @param {Object} options 33 | * @return {Function} 34 | * @api public 35 | */ 36 | 37 | module.exports = function query(options){ 38 | return function query(req, res, next){ 39 | if (!req.query) { 40 | req.query = ~req.url.indexOf('?') 41 | ? qs.parse(parseurl(req).query, options) 42 | : {}; 43 | } 44 | 45 | next(); 46 | }; 47 | }; 48 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/node_modules/finished/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.2.2 / 2014-06-10 2 | ========== 3 | 4 | * reduce listeners added to emitters 5 | - avoids "event emitter leak" warnings when used multiple times on same request 6 | 7 | 1.2.1 / 2014-06-08 8 | ================== 9 | 10 | * fix returned value when already finished 11 | 12 | 1.2.0 / 2014-06-05 13 | ================== 14 | 15 | * call callback when called on already-finished socket 16 | 17 | 1.1.4 / 2014-05-27 18 | ================== 19 | 20 | * support node.js 0.8 21 | 22 | 1.1.3 / 2014-04-30 23 | ================== 24 | 25 | * make sure errors passed as instanceof `Error` 26 | 27 | 1.1.2 / 2014-04-18 28 | ================== 29 | 30 | * default the `socket` to passed-in object 31 | 32 | 1.1.1 / 2014-01-16 33 | ================== 34 | 35 | * rename module to `finished` 36 | 37 | 1.1.0 / 2013-12-25 38 | ================== 39 | 40 | * call callback when called on already-errored socket 41 | 42 | 1.0.1 / 2013-12-20 43 | ================== 44 | 45 | * actually pass the error to the callback 46 | 47 | 1.0.0 / 2013-12-20 48 | ================== 49 | 50 | * Initial release 51 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/range-parser/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Parse "Range" header `str` relative to the given file `size`. 4 | * 5 | * @param {Number} size 6 | * @param {String} str 7 | * @return {Array} 8 | * @api public 9 | */ 10 | 11 | module.exports = function(size, str){ 12 | var valid = true; 13 | var i = str.indexOf('='); 14 | 15 | if (-1 == i) return -2; 16 | 17 | var arr = str.slice(i + 1).split(',').map(function(range){ 18 | var range = range.split('-') 19 | , start = parseInt(range[0], 10) 20 | , end = parseInt(range[1], 10); 21 | 22 | // -nnn 23 | if (isNaN(start)) { 24 | start = size - end; 25 | end = size - 1; 26 | // nnn- 27 | } else if (isNaN(end)) { 28 | end = size - 1; 29 | } 30 | 31 | // limit last-byte-pos to current length 32 | if (end > size - 1) end = size - 1; 33 | 34 | // invalid 35 | if (isNaN(start) 36 | || isNaN(end) 37 | || start > end 38 | || start < 0) valid = false; 39 | 40 | return { 41 | start: start, 42 | end: end 43 | }; 44 | }); 45 | 46 | arr.type = str.slice(0, i); 47 | 48 | return valid ? arr : -1; 49 | }; -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/bodyParser.js: -------------------------------------------------------------------------------- 1 | 2 | var connect = require('../') 3 | , http = require('http'); 4 | 5 | // visit form.html 6 | 7 | var app = connect() 8 | .use(connect.static(__dirname + '/public')) 9 | .use(connect.bodyParser()) 10 | .use(form) 11 | .use(upload); 12 | 13 | function form(req, res, next){ 14 | if ('GET' != req.method) return next(); 15 | res.statusCode = 302; 16 | res.setHeader('Location', 'form.html'); 17 | res.end(); 18 | } 19 | 20 | function upload(req, res){ 21 | res.setHeader('Content-Type', 'text/html'); 22 | res.write('

thanks ' + req.body.name + '

'); 23 | res.write(''); 37 | } 38 | 39 | http.Server(app).listen(3000); 40 | console.log('Server started on port 3000'); -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/bytes/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Parse byte `size` string. 4 | * 5 | * @param {String} size 6 | * @return {Number} 7 | * @api public 8 | */ 9 | 10 | module.exports = function(size) { 11 | if ('number' == typeof size) return convert(size); 12 | var parts = size.match(/^(\d+(?:\.\d+)?) *(kb|mb|gb|tb)$/) 13 | , n = parseFloat(parts[1]) 14 | , type = parts[2]; 15 | 16 | var map = { 17 | kb: 1 << 10 18 | , mb: 1 << 20 19 | , gb: 1 << 30 20 | , tb: ((1 << 30) * 1024) 21 | }; 22 | 23 | return map[type] * n; 24 | }; 25 | 26 | /** 27 | * convert bytes into string. 28 | * 29 | * @param {Number} b - bytes to convert 30 | * @return {String} 31 | * @api public 32 | */ 33 | 34 | function convert (b) { 35 | var tb = ((1 << 30) * 1024), gb = 1 << 30, mb = 1 << 20, kb = 1 << 10, abs = Math.abs(b); 36 | if (abs >= tb) return (Math.round(b / tb * 100) / 100) + 'tb'; 37 | if (abs >= gb) return (Math.round(b / gb * 100) / 100) + 'gb'; 38 | if (abs >= mb) return (Math.round(b / mb * 100) / 100) + 'mb'; 39 | if (abs >= kb) return (Math.round(b / kb * 100) / 100) + 'kb'; 40 | return b + 'b'; 41 | } 42 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2009-2013 TJ Holowaychuk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/node_modules/minimist/LICENSE: -------------------------------------------------------------------------------- 1 | This software is released under the MIT license: 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/node_modules/mime/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Benjamin Thomas, Robert Kieffer 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - urlencoded 3 | * Copyright(c) 2010 Sencha Inc. 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var bodyParser = require('body-parser'); 13 | var utils = require('../utils'); 14 | 15 | /** 16 | * Urlencoded: 17 | * 18 | * See [body-parser](https://github.com/expressjs/body-parser) 19 | * 20 | * @param {Object} options 21 | * @return {Function} 22 | * @api public 23 | */ 24 | 25 | module.exports = function urlencoded(options) { 26 | var opts = utils.merge({ 27 | limit: '1mb' 28 | }, options); 29 | 30 | // back-compat verify function 31 | if (typeof opts.verify === 'function') { 32 | opts.verify = convertVerify(opts.verify); 33 | } 34 | 35 | return bodyParser.urlencoded(opts); 36 | }; 37 | 38 | /** 39 | * Convert old verify signature to body-parser version. 40 | * 41 | * @param {Function} verify 42 | * @return {Function} 43 | * @api private 44 | */ 45 | 46 | function convertVerify(verify) { 47 | return function (req, res, buf, encoding) { 48 | verify(req, res, buf.toString(encoding)); 49 | }; 50 | } 51 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/vary/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 Douglas Christopher Wilson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/examples/limit.js: -------------------------------------------------------------------------------- 1 | 2 | var connect = require('../') 3 | , http = require('http'); 4 | 5 | // visit form.html 6 | 7 | var app = connect() 8 | .use(connect.static(__dirname + '/public')) 9 | .use(connect.limit('5mb')) 10 | .use(connect.bodyParser()) 11 | .use(form) 12 | .use(upload); 13 | 14 | function form(req, res, next){ 15 | if ('GET' != req.method) return next(); 16 | res.statusCode = 302; 17 | res.setHeader('Location', 'form.html'); 18 | res.end(); 19 | } 20 | 21 | function upload(req, res){ 22 | res.setHeader('Content-Type', 'text/html'); 23 | res.write('

thanks ' + req.body.name + '

'); 24 | res.write(''); 38 | } 39 | 40 | http.Server(app).listen(3000); 41 | console.log('Server started on port 3000'); -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/proxy-addr/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 Douglas Christopher Wilson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2011 Peter Zotov 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /lib/apex/request.rb: -------------------------------------------------------------------------------- 1 | module Apex 2 | class Request 3 | HEADER_PARAM = /\s*[\w.]+=(?:[\w.]+|"(?:[^"\\]|\\.)*")?\s*/ 4 | HEADER_VALUE_WITH_PARAMS = /(?:(?:\w+|\*)\/(?:\w+(?:\.|\-|\+)?|\*)*)\s*(?:;#{HEADER_PARAM})*/ 5 | 6 | attr_accessor :raw 7 | 8 | def initialize(raw) 9 | @raw = raw 10 | end 11 | 12 | def body? 13 | raw.hasBody 14 | end 15 | 16 | def content_type 17 | raw.contentType 18 | end 19 | 20 | def headers 21 | raw.headers 22 | end 23 | 24 | def content_length 25 | raw.contentLength 26 | end 27 | alias_method :length, :content_length 28 | 29 | def query 30 | raw.query 31 | end 32 | alias_method :params, :query 33 | 34 | def path 35 | raw.path 36 | end 37 | 38 | def url 39 | raw.URL 40 | end 41 | 42 | def method 43 | raw.method 44 | end 45 | 46 | def get? 47 | method == "GET" 48 | end 49 | 50 | def post? 51 | method == "POST" 52 | end 53 | 54 | def put? 55 | method == "PUT" 56 | end 57 | 58 | def patch? 59 | method == "PATCH" 60 | end 61 | 62 | def delete? 63 | method == "DELETE" 64 | end 65 | 66 | end 67 | end 68 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/methods/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2013-2014 TJ Holowaychuk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 Jonathan Ong 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/README.md: -------------------------------------------------------------------------------- 1 | 2 | # CSRF Tokens 3 | 4 | Logic behind CSRF token creation and verification. 5 | Read [Understanding-CSRF](http://www.jongleberry.com/understanding-csrf.html) for more information on CSRF. 6 | Use this module to create custom CSRF middleware and what not. 7 | 8 | ## API 9 | 10 | ```js 11 | var tokens = require('csrf-tokens')(options) 12 | 13 | var secret = tokens.secret() 14 | var token = tokens.create(secret) 15 | var valid = tokens.verify(secret, token) 16 | ``` 17 | 18 | Options: 19 | 20 | - `secretLength: 24` - the byte length of the secret key 21 | - `saltLength: 8` - the string length of the salt 22 | - `tokensize: (secret, salt) => token` - a custom token creation function 23 | 24 | ### var secret = tokens.secret() 25 | 26 | Create a new `secret` of length `secretLength`. 27 | You don't have to use this. 28 | 29 | ### var token = tokens.token(secret) 30 | 31 | Create a CSRF token based on a `secret`. 32 | This is the token you pass to clients. 33 | 34 | ### var valid = tokens.verify(secret, token) 35 | 36 | Check whether a CSRF token is valid based on a `secret`. 37 | If it's not valid, you should probably throw a `403` error. 38 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/node_modules/uid2/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Marco Aurelio 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/on-headers/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 Douglas Christopher Wilson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/lib/middleware/json.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - json 4 | * Copyright(c) 2010 Sencha Inc. 5 | * Copyright(c) 2011 TJ Holowaychuk 6 | * MIT Licensed 7 | */ 8 | 9 | /** 10 | * Module dependencies. 11 | */ 12 | 13 | var bodyParser = require('body-parser'); 14 | var utils = require('../utils'); 15 | 16 | /** 17 | * JSON: 18 | * 19 | * See [body-parser](https://github.com/expressjs/body-parser) 20 | * 21 | * @param {Object} options 22 | * @return {Function} 23 | * @api public 24 | */ 25 | 26 | module.exports = function json(options) { 27 | var opts = utils.merge({ 28 | limit: '1mb', 29 | type: ['application/json', 'application/*+json'] 30 | }, options); 31 | 32 | // back-compat verify function 33 | if (typeof opts.verify === 'function') { 34 | opts.verify = convertVerify(opts.verify); 35 | } 36 | 37 | return bodyParser.json(opts); 38 | }; 39 | 40 | /** 41 | * Convert old verify signature to body-parser version. 42 | * 43 | * @param {Function} verify 44 | * @return {Function} 45 | * @api private 46 | */ 47 | 48 | function convertVerify(verify) { 49 | return function (req, res, buf, encoding) { 50 | verify(req, res, buf.toString(encoding)); 51 | }; 52 | } 53 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/node_modules/utils-merge/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2013 Jared Hanson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/test/chmod.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../').mkdirp; 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | var ps = [ '', 'tmp' ]; 7 | 8 | for (var i = 0; i < 25; i++) { 9 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | ps.push(dir); 11 | } 12 | 13 | var file = ps.join('/'); 14 | 15 | test('chmod-pre', function (t) { 16 | var mode = 0744 17 | mkdirp(file, mode, function (er) { 18 | t.ifError(er, 'should not error'); 19 | fs.stat(file, function (er, stat) { 20 | t.ifError(er, 'should exist'); 21 | t.ok(stat && stat.isDirectory(), 'should be directory'); 22 | t.equal(stat && stat.mode & 0777, mode, 'should be 0744'); 23 | t.end(); 24 | }); 25 | }); 26 | }); 27 | 28 | test('chmod', function (t) { 29 | var mode = 0755 30 | mkdirp(file, mode, function (er) { 31 | t.ifError(er, 'should not error'); 32 | fs.stat(file, function (er, stat) { 33 | t.ifError(er, 'should exist'); 34 | t.ok(stat && stat.isDirectory(), 'should be directory'); 35 | t.end(); 36 | }); 37 | }); 38 | }); 39 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/compression/node_modules/accepts/node_modules/mime/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Benjamin Thomas, Robert Kieffer 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/cookie-parser/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 TJ Holowaychuk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/express-session/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 TJ Holowaychuk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/serve-index/node_modules/accepts/node_modules/mime/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Benjamin Thomas, Robert Kieffer 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/node_modules/uid2/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Marco Aurelio 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. and other Node contributors. All rights reserved. 2 | Permission is hereby granted, free of charge, to any person obtaining a copy 3 | of this software and associated documentation files (the "Software"), to 4 | deal in the Software without restriction, including without limitation the 5 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 6 | sell copies of the Software, and to permit persons to whom the Software is 7 | furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in 10 | all copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 17 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 18 | IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/compression/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.7 / 2014-06-11 2 | ================== 3 | 4 | * use vary module for better `Vary` behavior 5 | * deps: accepts@1.0.3 6 | * deps: compressible@1.1.0 7 | 8 | 1.0.6 / 2014-06-03 9 | ================== 10 | 11 | * fix regression when negotiation fails 12 | 13 | 1.0.5 / 2014-06-03 14 | ================== 15 | 16 | * fix listeners for delayed stream creation 17 | - fixes regression for certain `stream.pipe(res)` situations 18 | 19 | 1.0.4 / 2014-06-03 20 | ================== 21 | 22 | * fix adding `Vary` when value stored as array 23 | * fix back-pressure behavior 24 | * fix length check for `res.end` 25 | 26 | 1.0.3 / 2014-05-29 27 | ================== 28 | 29 | * use `accepts` for negotiation 30 | * use `on-headers` to handle header checking 31 | * deps: bytes@1.0.0 32 | 33 | 1.0.2 / 2014-04-29 34 | ================== 35 | 36 | * only version compatible with node.js 0.8 37 | * support headers given to `res.writeHead` 38 | * deps: bytes@0.3.0 39 | * deps: negotiator@0.4.3 40 | 41 | 1.0.1 / 2014-03-08 42 | ================== 43 | 44 | * bump negotiator 45 | * use compressible 46 | * use .headersSent (drops 0.8 support) 47 | * handle identity;q=0 case 48 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/mkdirp/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2010 James Halliday (mail@substack.net) 2 | 3 | This project is free software released under the MIT/X11 license: 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2010 Sencha Inc. 4 | Copyright (c) 2011 LearnBoost 5 | Copyright (c) 2011 TJ Holowaychuk 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | 'Software'), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sublicense, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/send/node_modules/finished/node_modules/ee-first/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2014 Jonathan Ong me@jongleberry.com 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/csurf/node_modules/csrf-tokens/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2014 Jonathan Ong me@jongleberry.com 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/string_decoder/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. and other Node contributors. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a 4 | copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to permit 8 | persons to whom the Software is furnished to do so, subject to the 9 | following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 17 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 18 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 20 | USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/type-is/node_modules/mime-types/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2014 Jonathan Ong me@jongleberry.com 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /benchmarks/node/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "stream-counter", 3 | "version": "0.2.0", 4 | "description": "keeps track of how many bytes have been written to a stream", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "node test/test.js" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/superjoe30/node-stream-counter.git" 12 | }, 13 | "author": { 14 | "name": "Andrew Kelley", 15 | "email": "superjoe30@gmail.com" 16 | }, 17 | "license": "BSD", 18 | "engines": { 19 | "node": ">=0.8.0" 20 | }, 21 | "dependencies": { 22 | "readable-stream": "~1.1.8" 23 | }, 24 | "readme": "# stream-counter\n\nKeep track of how many bytes have been written to a stream.\n\n## Usage\n\n```js\nvar StreamCounter = require('stream-counter');\nvar counter = new StreamCounter();\ncounter.on('progress', function() {\n console.log(\"progress\", counter.bytes);\n});\nfs.createReadStream('foo.txt').pipe(counter);\n```\n", 25 | "readmeFilename": "README.md", 26 | "bugs": { 27 | "url": "https://github.com/superjoe30/node-stream-counter/issues" 28 | }, 29 | "_id": "stream-counter@0.2.0", 30 | "_from": "stream-counter@~0.2.0" 31 | } 32 | --------------------------------------------------------------------------------