<commit_before>(function(define) {
'use strict';
define(function(require) {

   var C, stirlerr, bd0, log1p;

   C = require('../constants');
   stirlerr = require('./stirlerr').stirlerr;
   bd0 = require('./bd0').bd0;
   log1p = require('./log1p').log1p;

   /**
    * Performs the raw binomial log computation, even when $x$ is not an
    * integer.
    *
    * Based on:  *Fast and Accurate Computation of Binomial Probabilities*,
    * by <NAME>, 2000
    * @memberof basicFunc
    */
   function dbinomLog(size, p) {
      if (p === 0) { return function(x) { return x === 0 ? 0 : -Infinity; }; }
      if (p === 1) { return function(x) { return x === size ? 0 : -Infinity; }; }
      return function(x) {
         if (x === 0) {
            if (size === 0) { return 0; }
            return size * log1p(-p);
         }
         if (x === size ) { return size * Math.log(p); }
         return stirlerr(size) - stirlerr(x) - stirlerr(size - x) -
            bd0(x, size * p) - bd0(size - x, size * (1 - p)) +
            0.5 * Math.log(size / (C.twopi * x * (size - x)));
      };
   }

   return {
      dbinomLog: dbinomLog
   };

});

}(typeof define === 'function' && define.amd ? define : function(factory) {
   'use strict';
   module.exports = factory(require);
}));
<commit_msg>Make Lint very happy.<commit_after>(function(define) {
'use strict';
define(function(require) {

   var C, stirlerr, bd0, log1p;

   C = require('../constants');
   stirlerr = require('./stirlerr').stirlerr;
   bd0 = require('./bd0').bd0;
   log1p = require('./log1p').log1p;

   /**
    * Performs the raw binomial log computation, even when $x$ is not an
    * integer.
    *
    * Based on:  *Fast and Accurate Computation of Binomial Probabilities*,
    * by <NAME>, 2000
    * @memberof basicFunc
    */
   function dbinomLog(size, p) {
      if (p === 0) { return function(x) { return x === 0 ? 0 : -Infinity; }; }
      if (p === 1) { return function(x) { return x === size ? 0 : -Infinity; }; }
      return function(x) {
         if (x === 0) {
            if (size === 0) { return 0; }
            return size * log1p(-p);
         }
         if (x === size) { return size * Math.log(p); }
         return stirlerr(size) - stirlerr(x) - stirlerr(size - x) -
            bd0(x, size * p) - bd0(size - x, size * (1 - p)) +
            0.5 * Math.log(size / (C.twopi * x * (size - x)));
      };
   }

   return {
      dbinomLog: dbinomLog
   };

});

}(typeof define === 'function' && define.amd ? define : function(factory) {
   'use strict';
   module.exports = factory(require);
}));

{'fraction_non_alphanumeric': 0.17833655705996132, 'fraction_numerical': 0.02011605415860735, 'mean_word_length': 2.161369193154034, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '502215', 'n_tokens_mistral': 943, 'n_tokens_neox': 892, 'n_words': 239}