<commit_before>var Map = (function() {
    var module = {};
    var map = [];
    var blocksEnum = {
        WALL: 'w',
        RUBY: 'r',
        ENEMY: 'e',
        WARRIOR: 'p',
        SPACE: 's'
    };



    module.parseLevel = function(contents) {
        var line = [];
        for (var index = 0; index < contents.length; index++) {
            var char = contents.charAt(index);
            switch (char) {
                case 'p':
                    Player.constructor(index, 4, "RIGHT", 100);
                    map.push(Player);
                    break;
                case 'r':

                    var coin = Ruby();
                    coin.init(index, 0);
                    map.push(coin);
                    break;
                case 'e':

                    var enemy = Enemy();
                    enemy.init(index, 0, "LEFT");
                    enemy.setHealth(4);
                    map.push(enemy);
                    break;
                case 's':
                    map.push({"name":"s", "x": index, "y": 0});
                    break;<commit_msg>Enemy health fix<commit_after>var Map = (function() {
    var module = {};
    var map = [];
    var blocksEnum = {
        WALL: 'w',
        RUBY: 'r',
        ENEMY: 'e',
        WARRIOR: 'p',
        SPACE: 's'
    };



    module.parseLevel = function(contents) {
        var line = [];
        for (var index = 0; index < contents.length; index++) {
            var char = contents.charAt(index);
            switch (char) {
                case 'p':
                    Player.constructor(index, 4, "RIGHT", 100);
                    map.push(Player);
                    break;
                case 'r':

                    var coin = Ruby();
                    coin.init(index, 0);
                    map.push(coin);
                    break;
                case 'e':

                    var enemy = Enemy();
                    enemy.init(index, 0, "LEFT");
                    enemy.setHealth(100);
                    map.push(enemy);
                    break;
                case 's':
                    map.push({"name":"s", "x": index, "y": 0});
                    break;
{'fraction_non_alphanumeric': 0.13430790315212426, 'fraction_numerical': 0.009136592051164915, 'mean_word_length': 0.985494106980961, 'pattern_counts': {'":': 6, '<': 5, '<?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': '2586073', 'n_tokens_mistral': 634, 'n_tokens_neox': 572, 'n_words': 143}