<commit_before>var frp = require( 'frp' ),
	raf = require( 'raf' ),
	now = require( 'right-now' );

var rafPipe = frp.event.pipe(),
	timeLast = now(),
	rafHandle = null;

function rafLoop() {

	var timeNow = now();

	rafPipe.fire( timeNow -  timeLast );

	timeLast = timeNow;

	if( rafHandle !== null ) {

		rafHandle = raf( rafLoop );
	}
}

function frpTick() {

	return rafPipe;
}

frpTick.start = function() {

	if( rafHandle === null ) {

		rafHandle = raf( rafLoop );
	}
};

frpTick.stop = function() {

	if( rafHandle !== null ) {

		raf.cancel( rafHandle );
		rafHandle = null;
	}
};

frpTick.start();

module.exports = frpTick;<commit_msg>Swapped return value to be pipe.event<commit_after>var frp = require( 'frp' ),
	raf = require( 'raf' ),
	now = require( 'right-now' );

var rafPipe = frp.event.pipe(),
	timeLast = now(),
	rafHandle = null;

function rafLoop() {

	var timeNow = now();

	rafPipe.fire( timeNow -  timeLast );

	timeLast = timeNow;

	if( rafHandle !== null ) {

		rafHandle = raf( rafLoop );
	}
}

function frpTick() {

	return rafPipe.event;
}

frpTick.start = function() {

	if( rafHandle === null ) {

		rafHandle = raf( rafLoop );
	}
};

frpTick.stop = function() {

	if( rafHandle !== null ) {

		raf.cancel( rafHandle );
		rafHandle = null;
	}
};

frpTick.start();

module.exports = frpTick;
{'fraction_non_alphanumeric': 0.16767371601208458, 'fraction_numerical': 0.0, 'mean_word_length': 3.3585526315789473, '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': '6103274', 'n_tokens_mistral': 551, 'n_tokens_neox': 521, 'n_words': 118}