<commit_before>import test from 'ava' ;

import { parse , stringify , _zeros , _sub } from '../../../../../src' ;

test( '_sub' , function ( assert ) {

	function t ( C , B , A ) {

		var r = 10 ;
		var a = parse( 10 , r , A ) ;
		var b = parse( 10 , r , B ) ;
		var c = _zeros( Math.max( a.length , b.length ) + 1 ) ;
		_sub( r , a , 0 , a.length , b , 0 , b.length , c , 0 , c.length ) ;

		assert.deepEqual( stringify( r , 10 , c , 0 , c.length ) , C , A + ' + ' + B + ' = ' + C ) ;

	}

	t( '1' , '1' , '2' ) ;
	t( '47' , '124' , '171' ) ;<commit_msg>:mag: test: Fix typo in description.<commit_after>import test from 'ava' ;

import { parse , stringify , _zeros , _sub } from '../../../../../src' ;

test( '_sub' , function ( assert ) {

	function t ( C , B , A ) {

		var r = 10 ;
		var a = parse( 10 , r , A ) ;
		var b = parse( 10 , r , B ) ;
		var c = _zeros( Math.max( a.length , b.length ) + 1 ) ;
		_sub( r , a , 0 , a.length , b , 0 , b.length , c , 0 , c.length ) ;

		assert.deepEqual( stringify( r , 10 , c , 0 , c.length ) , C , A + ' - ' + B + ' = ' + C ) ;

	}

	t( '1' , '1' , '2' ) ;
	t( '47' , '124' , '171' ) ;
{'fraction_non_alphanumeric': 0.22771403353927624, 'fraction_numerical': 0.04236540158870256, 'mean_word_length': 1.922680412371134, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5432325', 'n_tokens_mistral': 531, 'n_tokens_neox': 474, 'n_words': 149}