<commit_before>import {
	mean
} from '../math/Analysis';
import {
	buffer
} from '../Util';
import {
	delta,
	dist,
	angle
} from '../position/Telemetrics';

export default class MouseTelemetrics {
	constructor( options ) {
		options = options || {};
		this.el = options.el || window;
		this.bufferLength = options.bufferLength || 4;

		this._state = {
			event: null,
			buffer: [],
			x: 0,
			y: 0,
			width: 0,
			height: 0,
			angle: 0,
			speed: 0,
			averageAngle: 0,
			averageSpeed: 0
		};
		this.buffer = [];
	};

	updateBounds() {
		if ( this.el !== window ) {
			return ( this.bounds = this.el.getClientBoundingRect() );
		} else {
			return ( this.bounds = {
				top: 0,
				left: 0,
				width: window.innerWidth,
				height: window.innerHeight<commit_msg>fix bounding rect fn<commit_after>import {
	mean
} from '../math/Analysis';
import {
	buffer
} from '../Util';
import {
	delta,
	dist,
	angle
} from '../position/Telemetrics';

export default class MouseTelemetrics {
	constructor( options ) {
		options = options || {};
		this.el = options.el || window;
		this.bufferLength = options.bufferLength || 4;

		this._state = {
			event: null,
			buffer: [],
			x: 0,
			y: 0,
			width: 0,
			height: 0,
			angle: 0,
			speed: 0,
			averageAngle: 0,
			averageSpeed: 0
		};
		this.buffer = [];
	};

	updateBounds() {
		if ( this.el !== window ) {
			return ( this.bounds = this.el.getBoundingClientRect() );
		} else {
			return ( this.bounds = {
				top: 0,
				left: 0,
				width: window.innerWidth,
				height: window.innerHeight
{'fraction_non_alphanumeric': 0.1553398058252427, 'fraction_numerical': 0.01423948220064725, 'mean_word_length': 2.7342995169082127, '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': '4894037', 'n_tokens_mistral': 651, 'n_tokens_neox': 531, 'n_words': 136}