<commit_before>define(['Point', 'Vector', 'KDopObject', 'MathUtils', 'Edge', 'PointObject',
    'OBBObject', 'BoxZoneObject'], function (P, V, KDopObject, M, E,
    PointObject, OBBObject, BoxZoneObject) {
    'use strict';

    Array.prototype.contains = function (v) {
        for (var i = 0; i < this.length; i++) {
            if (this[i] === v) return true;
        }

            return false;
    };

    Array.prototype.unique = function() {
        var arr = [];
        for (var i = 0; i < this.length; i++) {
            if (!arr.contains(this[i])) {
                arr.push(this[i]);
            }
        }

        return arr;
    };

    function PhysicsEngine(gameObjects, width, height) {
        this.gameObjects = gameObjects;
        this.createCollisionsHashmap();
        this.bounds = new BoxZoneObject(new P(0, 0), new P(width, height));
		this.collided = [];
		this.collidedM = [];
    }

    PhysicsEngine.prototype = Object.create(Observer.prototype);
    PhysicsEngine.prototype.constructor = PhysicsEngine;

    PhysicsEngine.prototype.update = function () {
        var size = this.gameObjects.length,
            i = 0, j = 0;

        for (i = 0; i < size; i++) {
            this.gameObjects[i].updatePhysics();

            for (j = i; j < size; j++) {
                if (i != j) {
                    this.computePhysics(this.gameObjects[i],
                        this.gameObjects[j]);
                }
            }
        }

		this.collidedM = this.collided;
		this.collided = [];
        this.checkBox();<commit_msg>Removed useless call<commit_after>define(['Point', 'Vector', 'KDopObject', 'MathUtils', 'Edge', 'PointObject',
    'OBBObject', 'BoxZoneObject'], function (P, V, KDopObject, M, E,
    PointObject, OBBObject, BoxZoneObject) {
    'use strict';

    Array.prototype.contains = function (v) {
        for (var i = 0; i < this.length; i++) {
            if (this[i] === v) return true;
        }

            return false;
    };

    Array.prototype.unique = function() {
        var arr = [];
        for (var i = 0; i < this.length; i++) {
            if (!arr.contains(this[i])) {
                arr.push(this[i]);
            }
        }

        return arr;
    };

    function PhysicsEngine(gameObjects, width, height) {
        this.gameObjects = gameObjects;
        this.createCollisionsHashmap();
        this.bounds = new BoxZoneObject(new P(0, 0), new P(width, height));
		this.collided = [];
		this.collidedM = [];
    }

    PhysicsEngine.prototype = Object.create(Observer.prototype);
    PhysicsEngine.prototype.constructor = PhysicsEngine;

    PhysicsEngine.prototype.update = function () {
        var size = this.gameObjects.length,
            i = 0, j = 0;

        for (i = 0; i < size; i++) {
            for (j = i; j < size; j++) {
                if (i != j) {
                    this.computePhysics(this.gameObjects[i],
                        this.gameObjects[j]);
                }
            }
        }

		this.collidedM = this.collided;
		this.collided = [];
        this.checkBox();
{'fraction_non_alphanumeric': 0.14592135196620085, 'fraction_numerical': 0.004549886252843679, 'mean_word_length': 1.8739495798319328, 'pattern_counts': {'":': 0, '<': 11, '<?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': '965252', 'n_tokens_mistral': 970, 'n_tokens_neox': 912, 'n_words': 208}