<commit_before>/**
 * Created by petermares on 20/02/2016.
 */

module.exports = (function() {
    var settings = require('../../settings');
    var o = {};
    var _images = {
        logo: 'assets/logo.png',
        sky: 'assets/sky.png',
        diamond: 'assets/diamond.png',
        heart: 'assets/heart.png',
        star: 'assets/star.png',
        signpost: 'assets/avatar.png',
        mainmenu_bkg: 'assets/mm_bg.png'
        //btn_crissy_normal: 'assets/mm_c3_off.png',
        //btn_peter_normal: 'assets/mm_c2_off.png',
        //btn_ricardo_normal: 'assets/mm_c1_off.png',
        //btn_crissy_hover: 'assets/mm_c3_on.png',
        //btn_peter_hover: 'assets/mm_c2_on.png',
        //btn_ricardo_hover: 'assets/mm_c1_on.png'
    };
    var _spritesheets = {
        baddie: {
            file: 'assets/baddie.png',
            width: 32,
            height: 32
        },
        dude: {
            file: 'assets/peter.png',
            width: 48,
            height: 64
        },
        btn_peter: {
            file: 'assets/mm_c2.png',
            width: 230,
            height: 230
        },
        btn_crissy: {
            file: 'assets/mm_c3.png',
            width: 230,
            height: 230
        },
        btn_ricardo: {
            file: 'assets/mm_c1.png',
            width: 230,
            height: 230
        }
    };
    var element;

    o.preload = function() {
        console.log('Preloader.preload');

        // load images
        var k;
        for ( k in _images ) {
            this.load.image(k, _images[k]);
        }

        // load the sprite sheets
        for ( k in _spritesheets ) {
            this.load.spritesheet(k, _spritesheets[k].file, _spritesheets[k].width, _spritesheets[k].height);
        }

        this.game.load.json('server_version', 'http://' + settings.server.host + ':' + settings.server.port + '/version');
    };

    o.create = function() {
        console.log('Preloader.create');

        element = this.game.add.sprite(this.scale.width/2, this.scale.height/2, 'logo');
        element.anchor.set(0.5);

        this.state.start('mainmenu');
    };

    return o;
})();
<commit_msg>updated one last place where backend host was defined.<commit_after>/**
 * Created by petermares on 20/02/2016.
 */

module.exports = (function() {
    var settings = require('../../settings');
    var o = {};
    var _images = {
        logo: 'assets/logo.png',
        sky: 'assets/sky.png',
        diamond: 'assets/diamond.png',
        heart: 'assets/heart.png',
        star: 'assets/star.png',
        signpost: 'assets/avatar.png',
        mainmenu_bkg: 'assets/mm_bg.png'
        //btn_crissy_normal: 'assets/mm_c3_off.png',
        //btn_peter_normal: 'assets/mm_c2_off.png',
        //btn_ricardo_normal: 'assets/mm_c1_off.png',
        //btn_crissy_hover: 'assets/mm_c3_on.png',
        //btn_peter_hover: 'assets/mm_c2_on.png',
        //btn_ricardo_hover: 'assets/mm_c1_on.png'
    };
    var _spritesheets = {
        baddie: {
            file: 'assets/baddie.png',
            width: 32,
            height: 32
        },
        dude: {
            file: 'assets/peter.png',
            width: 48,
            height: 64
        },
        btn_peter: {
            file: 'assets/mm_c2.png',
            width: 230,
            height: 230
        },
        btn_crissy: {
            file: 'assets/mm_c3.png',
            width: 230,
            height: 230
        },
        btn_ricardo: {
            file: 'assets/mm_c1.png',
            width: 230,
            height: 230
        }
    };
    var element;

    o.preload = function() {
        console.log('Preloader.preload');

        // load images
        var k;
        for ( k in _images ) {
            this.load.image(k, _images[k]);
        }

        // load the sprite sheets
        for ( k in _spritesheets ) {
            this.load.spritesheet(k, _spritesheets[k].file, _spritesheets[k].width, _spritesheets[k].height);
        }

        this.game.load.json('server_version', 'http://' + process.env.GITRUNNER_BACKEND_HOST + '/version');
    };

    o.create = function() {
        console.log('Preloader.create');

        element = this.game.add.sprite(this.scale.width/2, this.scale.height/2, 'logo');
        element.anchor.set(0.5);

        this.state.start('mainmenu');
    };

    return o;
})();

{'fraction_non_alphanumeric': 0.14763869784502523, 'fraction_numerical': 0.021549747822099955, 'mean_word_length': 1.6571254567600486, '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': '798600', 'n_tokens_mistral': 1544, 'n_tokens_neox': 1451, 'n_words': 249}