<commit_before>"use strict";

var Input = require('./input.js'),
    Point = require('./point.js'),
    History = require('../bobs/history.js'),
    KEY = require('../opts/keys.js'),
    utils = require('../utils/utils.js'),
    Pointer = function (point, isTouch) {
        this.update(new Point(point));
        this.isTouch = isTouch;
        this.bindEvents();
    };

Pointer.prototype = new Input();

/*
    Bind move event
*/
Pointer.prototype.bindEvents = function (isTouch) {
    this.moveEvent = this.isTouch ? KEY.EVENT.TOUCHMOVE : KEY.EVENT.MOUSEMOVE;
    
    document.documentElement.addEventListener(this.moveEvent, this.onMove);
};

/*
    Unbind move event
*/
Pointer.prototype.unbindEvents = function () {
    document.documentElement.removeEventListener(this.moveEvent, this.onMove);
};

/*
    Pointer onMove event handler
    
    @param [event]: Pointer move event
*/
Pointer.prototype.onMove = function (e) {
    var newPoint;

    e = utils.getActualEvent(e);
    
    this.update(new Point(utils.convertEventIntoPoint(e, this.isTouch)));
    
    e.preventDefault();
};

Pointer.prototype.stop = function () {
    this.unbindEvents();
};<commit_msg>removing cruft code<commit_after>"use strict";

var Input = require('./input.js'),
    Point = require('./point.js'),
    History = require('../bobs/history.js'),
    KEY = require('../opts/keys.js'),
    utils = require('../utils/utils.js'),
    Pointer = function (point, isTouch) {
        this.update(new Point(point));
        this.isTouch = isTouch;
        this.bindEvents();
    };

Pointer.prototype = new Input();

/*
    Bind move event
*/
Pointer.prototype.bindEvents = function (isTouch) {
    this.moveEvent = this.isTouch ? KEY.EVENT.TOUCHMOVE : KEY.EVENT.MOUSEMOVE;
    
    document.documentElement.addEventListener(this.moveEvent, this.onMove);
};

/*
    Unbind move event
*/
Pointer.prototype.unbindEvents = function () {
    document.documentElement.removeEventListener(this.moveEvent, this.onMove);
};

/*
    Pointer onMove event handler
    
    @param [event]: Pointer move event
*/
Pointer.prototype.onMove = function (e) {
    e = utils.getActualEvent(e);
    e.preventDefault();
    
    this.update(new Point(utils.convertEventIntoPoint(e, this.isTouch)));
};

Pointer.prototype.stop = function () {
    this.unbindEvents();
};
{'fraction_non_alphanumeric': 0.15493562231759656, 'fraction_numerical': 0.0, 'mean_word_length': 3.2, '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': '6496960', 'n_tokens_mistral': 714, 'n_tokens_neox': 718, 'n_words': 134}