<commit_before>var DisplayObject = require('../../lib/pixi/src/core/display/DisplayObject'),
    config = require('../core/config'),
    math = require('../../lib/pixi/src/core/math'),
    InputManager = require('../input/InputManager'),
    Tween = require('../tween/Tween');

DisplayObject.prototype.addTo = function(parent){
    if(parent)parent.addChild(this);
    return this;
};

DisplayObject.prototype.remove = function(){
    if(this.parent)this.parent.removeChild(this);
    return this;
};

DisplayObject.prototype.update = function(gameTime, delta){
    return true;
};

DisplayObject.prototype.setTint = function(value){
    this.tint = value;
    return this;
};

DisplayObject.prototype.setInteractive = function(value){
    this.interactive = (value !== false);
    return this;
};

DisplayObject.prototype.setAlpha = function(value){
    this.alpha = value;
    return this;
};

DisplayObject.prototype.setRotation = function(angle){
    this.rotation = angle;
    return this;
};

DisplayObject.prototype.setPosition = function(x,y){
    this.position.set(x,y);
    return this;
};

DisplayObject.prototype.setSpeed = function(x,y){
    if(typeof y !== "number")y = x;
    this.speedX = x;
    this.speedY = y;
    return this;
};

DisplayObject.prototype.setRotationSpeed = function(value){
    this.rotationSpeed = value;
    return this;
};

DisplayObject.prototype.setVelocity = function(vel){
    this.velocity = vel;
    return this;
};

DisplayObject.prototype.setDirection = function(vel){
    this.direction = vel;
    return this;
};

DisplayObject.prototype.animate = function(gameTime, delta){
    if(this.update(gameTime, delta) !== false){

        var tick = (config.useDeltaAnimation) ? delta : 1;

        if(this.speed && (this.speed.x !== 0 || this.speed.y !== 0)){
            this.position.x += this.speed.x * tick;
            this.position.y += this.speed.y * tick;
        }

        if(this.rotationSpeed && this.rotationSpeed !== 0){
            this.rotation += this.rotationSpeed * tick;
        }<commit_msg>added a simple todo<commit_after>var DisplayObject = require('../../lib/pixi/src/core/display/DisplayObject'),
    config = require('../core/config'),
    math = require('../../lib/pixi/src/core/math'),
    InputManager = require('../input/InputManager'),
    Tween = require('../tween/Tween');

DisplayObject.prototype.addTo = function(parent){
    if(parent)parent.addChild(this);
    return this;
};

DisplayObject.prototype.remove = function(){
    if(this.parent)this.parent.removeChild(this);
    return this;
};

DisplayObject.prototype.update = function(gameTime, delta){
    return true;
};

DisplayObject.prototype.setTint = function(value){
    this.tint = value;
    return this;
};

DisplayObject.prototype.setInteractive = function(value){
    this.interactive = (value !== false);
    return this;
};

DisplayObject.prototype.setAlpha = function(value){
    this.alpha = value;
    return this;
};

DisplayObject.prototype.setRotation = function(angle){
    this.rotation = angle;
    return this;
};

DisplayObject.prototype.setPosition = function(x,y){
    this.position.set(x,y);
    return this;
};

DisplayObject.prototype.setSpeed = function(x,y){
    if(typeof y !== "number")y = x;
    this.speedX = x;
    this.speedY = y;
    return this;
};

DisplayObject.prototype.setRotationSpeed = function(value){
    this.rotationSpeed = value;
    return this;
};

DisplayObject.prototype.setVelocity = function(vel){
    this.velocity = vel;
    return this;
};

DisplayObject.prototype.setDirection = function(vel){
    this.direction = vel;
    return this;
};

//TODO: add setFlip(), flipX, flipY??

DisplayObject.prototype.animate = function(gameTime, delta){
    if(this.update(gameTime, delta) !== false){

        var tick = (config.useDeltaAnimation) ? delta : 1;

        if(this.speed && (this.speed.x !== 0 || this.speed.y !== 0)){
            this.position.x += this.speed.x * tick;
            this.position.y += this.speed.y * tick;
        }

        if(this.rotationSpeed && this.rotationSpeed !== 0){
            this.rotation += this.rotationSpeed * tick;
        }
{'fraction_non_alphanumeric': 0.1542719614921781, 'fraction_numerical': 0.0019253910950661852, 'mean_word_length': 3.293388429752066, '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': '748686', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1261, 'n_words': 236}