<commit_before>﻿var enemyLayer = new Kinetic.Layer(),
    firstMushroom,
    SecondMushroom,
    imageSrc = 'Images/mushroom-new.png',
    enemies = [];

var firstMushroomImage = new Image();
var SecondMushroomImage = new Image();

firstMushroomImage.onload = function () {
    firstMushroom = new Kinetic.Sprite({
        x: 550,
        y: 512,
        image: firstMushroomImage,
        animation: 'stay',
        animations: {
            stay: [
              // x, y, width, height (2 frames)
              0, 6, 28, 29,
              52, 6, 28, 29,
            ],
            smashed: [
                103, 6, 27, 31
            ]
        },
        frameRate: 7,
        frameIndex: 0
    });
    
    enemies.push(firstMushroom);

    // add the shape to the layer
    enemyLayer.add(firstMushroom);

    // add the layer to the stage
    stage.add(enemyLayer);

    // start sprite animation
    firstMushroom.start();

    Move(firstMushroom, 0, 670);
};
firstMushroomImage.src = imageSrc;

SecondMushroomImage.onload = function () {
    SecondMushroom = new Kinetic.Sprite({
        x: 360,
        y: 512,
        image: SecondMushroomImage,
        animation: 'stay',
        animations: {
            stay: [
              // x, y, width, height (2 frames)
              0, 6, 28, 29,
              52, 6, 28, 29,
            ],
            smashed: [
                103, 6, 27, 31
            ]
        },
        frameRate: 7,
        frameIndex: 0
    });

    enemies.push[SecondMushroom];

    // add the shape to the layer<commit_msg>small bug fix - made second mushroom mortal :)<commit_after>﻿var enemyLayer = new Kinetic.Layer(),
    firstMushroom,
    SecondMushroom,
    imageSrc = 'Images/mushroom-new.png',
    enemies = [];

var firstMushroomImage = new Image();
var SecondMushroomImage = new Image();

firstMushroomImage.onload = function () {
    firstMushroom = new Kinetic.Sprite({
        x: 550,
        y: 512,
        image: firstMushroomImage,
        animation: 'stay',
        animations: {
            stay: [
              // x, y, width, height (2 frames)
              0, 6, 28, 29,
              52, 6, 28, 29,
            ],
            smashed: [
                103, 6, 27, 31
            ]
        },
        frameRate: 7,
        frameIndex: 0
    });
    
    enemies.push(firstMushroom);

    // add the shape to the layer
    enemyLayer.add(firstMushroom);

    // add the layer to the stage
    stage.add(enemyLayer);

    // start sprite animation
    firstMushroom.start();

    Move(firstMushroom, 0, 670);
};
firstMushroomImage.src = imageSrc;

SecondMushroomImage.onload = function () {
    SecondMushroom = new Kinetic.Sprite({
        x: 360,
        y: 512,
        image: SecondMushroomImage,
        animation: 'stay',
        animations: {
            stay: [
              // x, y, width, height (2 frames)
              0, 6, 28, 29,
              52, 6, 28, 29,
            ],
            smashed: [
                103, 6, 27, 31
            ]
        },
        frameRate: 7,
        frameIndex: 0
    });

    enemies.push(SecondMushroom);

    // add the shape to the layer
{'fraction_non_alphanumeric': 0.11280584683825866, 'fraction_numerical': 0.040673657451541154, 'mean_word_length': 1.5551948051948052, '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': '204143', 'n_tokens_mistral': 1095, 'n_tokens_neox': 970, 'n_words': 254}