<commit_before>/*
 *   Eggman object. Inherits GameObject.
 */
function Eggman(coordinate) {
    console.log("Eggman constructor");
    GameObject.call(this, coordinate);
    this.onScreen = false;
    this.speed = 2;
    this.width = 20;
    this.height = 20;
}

Eggman.prototype = new GameObject();

Eggman.prototype.constructor = Eggman;

Eggman.prototype.toString = function () {
    var result = "Eggman:\n" + GameObject.prototype.toString.call(this);
    return result;
}

Eggman.prototype.Move = function () {
    this.position.x += this.speed;
    this.position.y += 0;
}

Eggman.prototype.MoveTo = function (coordinate) {
    this.position = coordinate;
}

Eggman.prototype.Hide = function () {
    this.onScreen = false;
}
<commit_msg>Added commentary<commit_after>/*
 *   Eggman object. Inherits GameObject.
 */
function Eggman(coordinate) {
    console.log("Eggman constructor");
    GameObject.call(this, coordinate);
    this.onScreen = false;
    this.speed = 2;
    this.width = 20;
    this.height = 20;
}

Eggman.prototype = new GameObject();

Eggman.prototype.constructor = Eggman;

Eggman.prototype.toString = function () {
    var result = "Eggman:\n" + GameObject.prototype.toString.call(this);
    return result;
}
// Moves eggman with own speed
Eggman.prototype.Move = function () {
    this.position.x += this.speed;
    this.position.y += 0;
}

Eggman.prototype.MoveTo = function (coordinate) {
    this.position = coordinate;
}

Eggman.prototype.Hide = function () {
    this.onScreen = false;
}

{'fraction_non_alphanumeric': 0.13788575180564674, 'fraction_numerical': 0.007879185817465528, 'mean_word_length': 3.417391304347826, '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': '246837', 'n_tokens_mistral': 525, 'n_tokens_neox': 503, 'n_words': 100}