<commit_before>var o  = require('atom').o(module)
var oo  = require('atom').oo(module)
var _o = require('bond')._o(module)
var __ = require('fiber').__(module)

var fs = require('fs')
var path = require('path')
var url = require('url')
var bunyan = require('bunyan')

var https = require('https')
var http = require('http')
var express = require('express')
var bodyParser = require('body-parser')

var connect = require('leafnode').connect
var mongodbUri = require('mongodb-uri')
var ObjectId = require('leafnode').BSON.ObjectID
var EJSON = require('mongodb-extended-json')
var _ = require('underscore')


/******************************************************************************
 * @class ObjectServer
 */
module.exports = oo({

  /**********************************************************************
   * _type
   */  
  _type: './Endpoint',

  /**********************************************************************
   * _main
   */        
  _main: function(options) { 
    this.logDebug("ObjectServer._main")
    
    // Initialize app
    this._initializeApp()

    if (options['gen-static-docs']) {
      this._genStaticDocumentation(options['static-docs-flavor'])
      process.exit(0)
    }
    
    // Register signal handlers 
    this._registerSignalHandlers()

    // start
    this.start(options)
  },

 /**********************************************************************
   * cmdargs 
   */        
  cmdargs: { // values are nomnom definitions
    'port': {
      abbr: "p",
      metavar: "PORT",
      property: true,
      help: "port"
    },
    'dbUri': {
      abbr: "u",
      metavar: "DB_URI",
      property: true,
      help: "MongoDB connection string"<commit_msg>do not pass options to start<commit_after>var o  = require('atom').o(module)
var oo  = require('atom').oo(module)
var _o = require('bond')._o(module)
var __ = require('fiber').__(module)

var fs = require('fs')
var path = require('path')
var url = require('url')
var bunyan = require('bunyan')

var https = require('https')
var http = require('http')
var express = require('express')
var bodyParser = require('body-parser')

var connect = require('leafnode').connect
var mongodbUri = require('mongodb-uri')
var ObjectId = require('leafnode').BSON.ObjectID
var EJSON = require('mongodb-extended-json')
var _ = require('underscore')


/******************************************************************************
 * @class ObjectServer
 */
module.exports = oo({

  /**********************************************************************
   * _type
   */  
  _type: './Endpoint',

  /**********************************************************************
   * _main
   */        
  _main: function(options) { 
    this.logDebug("ObjectServer._main")
    
    // Initialize app
    this._initializeApp()

    if (options['gen-static-docs']) {
      this._genStaticDocumentation(options['static-docs-flavor'])
      process.exit(0)
    }
    
    // Register signal handlers 
    this._registerSignalHandlers()

    // start
    this.start()
  },

 /**********************************************************************
   * cmdargs 
   */        
  cmdargs: { // values are nomnom definitions
    'port': {
      abbr: "p",
      metavar: "PORT",
      property: true,
      help: "port"
    },
    'dbUri': {
      abbr: "u",
      metavar: "DB_URI",
      property: true,
      help: "MongoDB connection string"
{'fraction_non_alphanumeric': 0.29918032786885246, 'fraction_numerical': 0.000585480093676815, 'mean_word_length': 3.6175675675675674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '69905', 'n_tokens_mistral': 998, 'n_tokens_neox': 939, 'n_words': 202}