<commit_before>import {Phaser, Point} from 'phaser'

class WayPoint {
    constructor(x = 0, y = 0) {
        this.position = new Point(x, y);
        let duplicatePoint = point => point.position.x === this.position.x && point.position.y === this.position.y;
        if (!_.find(WayPoint.wayPoints, duplicatePoint)) {
            WayPoint.wayPoints.push(this);
        }
    }

    static random() {
        return _.sample(wayPoints);
    }

    static randomWalkable() {
        // TODO: Rewrite to not use hard coded number.
        return _(WayPoint.wayPoints).filter(wayPoint => wayPoint.position.y <= 5211).sample();
    }
}

WayPoint.wayPoints = [];

export default WayPoint<commit_msg>Fix incorrect reference in Waypoint.js<commit_after>import {Phaser, Point} from 'phaser'

class WayPoint {
    constructor(x = 0, y = 0) {
        this.position = new Point(x, y);
        let duplicatePoint = point => point.position.x === this.position.x && point.position.y === this.position.y;
        if (!_.find(WayPoint.wayPoints, duplicatePoint)) {
            WayPoint.wayPoints.push(this);
        }
    }

    static random() {
        return _.sample(WayPoint.wayPoints);
    }

    static randomWalkable() {
        // TODO: Rewrite to not use hard coded number.
        return _(WayPoint.wayPoints).filter(wayPoint => wayPoint.position.y <= 5211).sample();
    }
}

WayPoint.wayPoints = [];

export default WayPoint
{'fraction_non_alphanumeric': 0.1352112676056338, 'fraction_numerical': 0.008450704225352112, 'mean_word_length': 2.6718346253229974, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7284939', 'n_tokens_mistral': 448, 'n_tokens_neox': 422, 'n_words': 99}