<commit_before>///////////////////////////////////////////////////////////////////////////////
//
//  AutobahnJS - http://autobahn.ws, http://wamp.ws
//
//  A JavaScript library for WAMP ("The Web Application Messaging Protocol").
//
//  Copyright (C) 2011-2014 Tavendo GmbH, http://tavendo.com
//
//  Licensed under the MIT License.
//  http://www.opensource.org/licenses/mit-license.php
//
///////////////////////////////////////////////////////////////////////////////

// require('assert') would be nice .. but it does not
// work with Google Closure after Browserify

var when = require('when');
var when_fn = require("when/function");

var log = require('./log.js');
var util = require('./util.js');

// IE fallback (http://afuchs.tumblr.com/post/23550124774/date-now-in-ie8)
Date.now = Date.now || function() { return +new Date; };


// WAMP "Advanced Profile" support in AutobahnJS per role
//
WAMP_FEATURES = {
   caller: {
      features: {
         caller_identification: true,
         progressive_call_results: true
      }
   },
   callee: {
      features: {
         progressive_call_results: true
      }
   },
   publisher: {
      features: {
         subscriber_blackwhite_listing: true,
         publisher_exclusion: true,
         publisher_identification: true
      }
   },
   subscriber: {
      features: {
         publisher_identification: true
      }
   }
};


// generate a WAMP ID
//
function newid () {
   // BUGBUG: On Tessel, large numbers are converted to scientific notation
   // BUGBUG: during JSON serialization. Until that's fixed, use a smaller
   // BUGBUG: range.
   // return Math.floor(Math.random() * 9007199254740992);
   return Math.floor(Math.random() * 99999999999);
}


var Invocation = function (caller, progress) {

   var self = this;

   self.caller = caller;
   self.progress = progress;
};


var Event = function (publication, publisher) {

   var self = this;

   self.publication = publication;
   self.publisher = publisher;<commit_msg>Not sure this is it, but shrinking random numebrs seems to help<commit_after>///////////////////////////////////////////////////////////////////////////////
//
//  AutobahnJS - http://autobahn.ws, http://wamp.ws
//
//  A JavaScript library for WAMP ("The Web Application Messaging Protocol").
//
//  Copyright (C) 2011-2014 Tavendo GmbH, http://tavendo.com
//
//  Licensed under the MIT License.
//  http://www.opensource.org/licenses/mit-license.php
//
///////////////////////////////////////////////////////////////////////////////

// require('assert') would be nice .. but it does not
// work with Google Closure after Browserify

var when = require('when');
var when_fn = require("when/function");

var log = require('./log.js');
var util = require('./util.js');

// IE fallback (http://afuchs.tumblr.com/post/23550124774/date-now-in-ie8)
Date.now = Date.now || function() { return +new Date; };


// WAMP "Advanced Profile" support in AutobahnJS per role
//
WAMP_FEATURES = {
   caller: {
      features: {
         caller_identification: true,
         progressive_call_results: true
      }
   },
   callee: {
      features: {
         progressive_call_results: true
      }
   },
   publisher: {
      features: {
         subscriber_blackwhite_listing: true,
         publisher_exclusion: true,
         publisher_identification: true
      }
   },
   subscriber: {
      features: {
         publisher_identification: true
      }
   }
};


// generate a WAMP ID
//
function newid () {
   // BUGBUG: On Tessel, large numbers are converted to scientific notation
   // BUGBUG: during JSON serialization. Until that's fixed, use a smaller
   // BUGBUG: range.
   // return Math.floor(Math.random() * 9007199254740992);
   return Math.floor(Math.random() * 999999999);
}


var Invocation = function (caller, progress) {

   var self = this;

   self.caller = caller;
   self.progress = progress;
};


var Event = function (publication, publisher) {

   var self = this;

   self.publication = publication;
   self.publisher = publisher;
{'fraction_non_alphanumeric': 0.19668480950024742, 'fraction_numerical': 0.022761009401286492, 'mean_word_length': 2.049019607843137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '7449764', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1167, 'n_words': 310}