<commit_before>'use strict';

// MODULES //

var evalpoly = require( 'math-evalpoly' ).factory;
var pow = require( 'math-power' );
var exp = require( 'math-exp' );


// CONSTANTS //

var SQRT2PI = 2.506628274631000502417;
var MAX_STIRLING = 143.01608;
var S = [
	8.33333333333482257126e-02,
	3.47222221605458667310e-03,
	-2.68132617805781232825e-03,
	-2.29549961613378126380e-04,
	7.87311395793093628397e-04
];


// FUNCTIONS //

// Compile function to evaluate polynomial based on the above coefficients...
var polyval = evalpoly( S );


// GAMMA //

/**
* FUNCTION: gamma( x )
*	Evaluates the gamma function by using Stirling's formula. The polynomial is valid for 33 <= x <= 172.
*
* @param {Number} x - input value
* @returns {Number} function value
*/
function gamma( x ) {
	var w;<commit_msg>Add articles in code comment<commit_after>'use strict';

// MODULES //

var evalpoly = require( 'math-evalpoly' ).factory;
var pow = require( 'math-power' );
var exp = require( 'math-exp' );


// CONSTANTS //

var SQRT2PI = 2.506628274631000502417;
var MAX_STIRLING = 143.01608;
var S = [
	8.33333333333482257126e-02,
	3.47222221605458667310e-03,
	-2.68132617805781232825e-03,
	-2.29549961613378126380e-04,
	7.87311395793093628397e-04
];


// FUNCTIONS //

// Compile a function to evaluate a polynomial based on the above coefficients...
var polyval = evalpoly( S );


// GAMMA //

/**
* FUNCTION: gamma( x )
*	Evaluates the gamma function by using Stirling's formula. The polynomial is valid for 33 <= x <= 172.
*
* @param {Number} x - input value
* @returns {Number} function value
*/
function gamma( x ) {
	var w;
{'fraction_non_alphanumeric': 0.13622291021671826, 'fraction_numerical': 0.1869969040247678, 'mean_word_length': 3.5779036827195467, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2619845', 'n_tokens_mistral': 805, 'n_tokens_neox': 613, 'n_words': 163}