<commit_before>'use strict';
const Point = require('../Point');
const PhysicsEngine = require('./PhysicsEngine');
const CollisionDetection = require('./SimplePhysics/CollisionDetection');

/**
 * SimplePhysicsEngine is a pseudo-physics engine which works with
 * objects of class DynamicObject.
 */
class SimplePhysicsEngine extends PhysicsEngine {

    init(initOptions) {
        super.init(initOptions);
        this.collisionDetection = new CollisionDetection();
        this.gameEngine = initOptions.gameEngine;
        this.collisionDetection.init({ gameEngine: this.gameEngine });
    }

    // a single object advances, based on:<commit_msg>add collision options to simple physics<commit_after>'use strict';
const Point = require('../Point');
const PhysicsEngine = require('./PhysicsEngine');
const CollisionDetection = require('./SimplePhysics/CollisionDetection');

/**
 * SimplePhysicsEngine is a pseudo-physics engine which works with
 * objects of class DynamicObject.
 */
class SimplePhysicsEngine extends PhysicsEngine {

    init(initOptions) {
        super.init(initOptions);
        this.collisionDetection = new CollisionDetection();
        this.gameEngine = initOptions.gameEngine;

        let collisionOptions = Object.assign({ gameEngine: this.gameEngine }, initOptions.collisionOptions);
        this.collisionDetection.init(collisionOptions);
    }

    // a single object advances, based on:
{'fraction_non_alphanumeric': 0.10641296687808316, 'fraction_numerical': 0.0, 'mean_word_length': 4.144927536231884, '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': '3292147', 'n_tokens_mistral': 370, 'n_tokens_neox': 358, 'n_words': 94}