<commit_before>AFRAME.registerSystem('main', {
    schema: {},  // System schema. Parses into `this.data`.

    init: function () {

        var sceneEl = document.querySelector('a-scene');

        console.log('el: ',sceneEl);

        sceneEl.addEventListener('renderstart',function(){

            console.log('Ready');

            //mess binaries can be downloaded from: https://archive.org/details/emularity_engine_jsmame
            var emulator = new Emulator(document.querySelector("#fullscreen"),
                {
                    before_emulator: function(){
                        console.log('On before emulator callback');
                    },
                    before_run: this.onBeforeRun
                },
                new JSMAMELoader(JSMAMELoader.driver("bublbobl"),
                    JSMAMELoader.nativeResolution(256, 256),
                    JSMAMELoader.emulatorJS("assets/js/emularity/emulators/jsmess/mamebublbobl.js.gz"), //https://archive.org/download/emularity_engine_v1/mame1943.js.gz
                    JSMAMELoader.mountFile("bublbobl.zip",
                        JSMAMELoader.fetchFile("Game File",
                            "assets/js/emularity/emulators/jsmess/bublbobl.zip"))))
            emulator.setScale(1);
            emulator.start({ waitAfterDownloading: false });

            var scWidgetEl = document.querySelector('#sc-widget');


            var rnd = Math.floor(Math.random() * 9) + 0;

            scWidgetEl.setAttribute('src','https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/349520772&amp;color=ff5500&amp;auto_play=true&amp;start_track='+rnd+'&amp;hide_related=true&amp;show_comments=false&amp;show_user=false&amp;show_reposts=false&amp;visual=false')

            var scWidget = SC.Widget(scWidgetEl);
            //scWidget.setVolume(0.2);

            scWidget.bind(SC.Widget.Events.READY, function() {
                console.log('Soundcloud player widget ready');<commit_msg>Fixed autoplay on soundcloud widget<commit_after>AFRAME.registerSystem('main', {
    schema: {},  // System schema. Parses into `this.data`.

    init: function () {

        var sceneEl = document.querySelector('a-scene');

        console.log('el: ',sceneEl);

        sceneEl.addEventListener('renderstart',function(){

            console.log('Ready');

            //mess binaries can be downloaded from: https://archive.org/details/emularity_engine_jsmame
            var emulator = new Emulator(document.querySelector("#fullscreen"),
                {
                    before_emulator: function(){
                        console.log('On before emulator callback');
                    },
                    before_run: this.onBeforeRun
                },
                new JSMAMELoader(JSMAMELoader.driver("bublbobl"),
                    JSMAMELoader.nativeResolution(256, 256),
                    JSMAMELoader.emulatorJS("assets/js/emularity/emulators/jsmess/mamebublbobl.js.gz"), //https://archive.org/download/emularity_engine_v1/mame1943.js.gz
                    JSMAMELoader.mountFile("bublbobl.zip",
                        JSMAMELoader.fetchFile("Game File",
                            "assets/js/emularity/emulators/jsmess/bublbobl.zip"))))
            emulator.setScale(1);
            emulator.start({ waitAfterDownloading: false });

            var scWidgetEl = document.querySelector('#sc-widget');


            var rnd = Math.floor(Math.random() * 9) + 0;

            scWidgetEl.setAttribute('src','https://w.soundcloud.com/player/?url=https://api.soundcloud.com/playlists/349520772&color=ff5500&start_track='+rnd+'&hide_related=true&show_comments=false&show_user=false&show_reposts=false&visual=false');

            var scWidget = SC.Widget(scWidgetEl);

            scWidget.bind(SC.Widget.Events.READY, function() {
                console.log('Soundcloud player widget ready');
                scWidget.play();
{'fraction_non_alphanumeric': 0.127735368956743, 'fraction_numerical': 0.01450381679389313, 'mean_word_length': 2.259535655058043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '653732', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1118, 'n_words': 139}