<commit_before>
/**
 * Module dependencies.
 */

var Socket = require('./socket')
  , Emitter = require('events').EventEmitter
  , debug = require('debug')('socket.io:namespace');

/**
 * Module exports.
 */

module.exports = exports = Namespace;

/**
 * Blacklisted events.
 */

exports.events = [
  'connect',    // for symmetry with client
  'connection',
  'newListener'
];

/**
 * `Socket` flags.
 */

exports.flags = Socket.flags;

/**
 * `EventEmitter#emit` reference.
 */

var emit = Emitter.prototype.emit;

/**
 * Namespace constructor.
 *
 * @param {Server} server instance
 * @param {Socket} name
 * @api private
 */

function Namespace(server, name){
  this.server = server;
  this.name = name;
  this.sockets = [];
  this.fns = [];
  this.ids = 0;
  this.acks = {};
  this.flags = [];
  this.rooms = [];
}

/**
 * Inherits from `EventEmitter`.
 */
<commit_msg>namespace: implement own flags<commit_after>
/**
 * Module dependencies.
 */

var Socket = require('./socket')
  , Emitter = require('events').EventEmitter
  , parser = require('socket.io-parser')
  , debug = require('debug')('socket.io:namespace');

/**
 * Module exports.
 */

module.exports = exports = Namespace;

/**
 * Blacklisted events.
 */

exports.events = [
  'connect',    // for symmetry with client
  'connection',
  'newListener'
];

/**
 * Flags.
 */

exports.flags = ['json'];

/**
 * `EventEmitter#emit` reference.
 */

var emit = Emitter.prototype.emit;

/**
 * Namespace constructor.
 *
 * @param {Server} server instance
 * @param {Socket} name
 * @api private
 */

function Namespace(server, name){
  this.server = server;
  this.name = name;
  this.sockets = [];
  this.fns = [];
  this.ids = 0;
  this.acks = {};
  this.flags = [];
  this.rooms = [];
}

/**
 * Inherits from `EventEmitter`.
 */

{'fraction_non_alphanumeric': 0.18739542665923034, 'fraction_numerical': 0.0011154489682097045, 'mean_word_length': 3.095890410958904, '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': '7172960', 'n_tokens_mistral': 604, 'n_tokens_neox': 603, 'n_words': 128}