<commit_before>YUI().use('event', 'event-focus','event-custom', 'querystring-parse', function(Y) {Y.on("domready", function() { 
//@todo need to spin down watchers when going for remote auth

    if(window.location.search != '') {
        var shoplist = new Themer.shopList();
        shoplist.load();

        var qs = Y.QueryString.parse(window.location.search.replace('?', ''));
        console.log(qs);

        shoplist.create({
            id:qs.shop.replace('.myshopify.com', '', 'i'),
            api_key: APP_API_KEY,
            password: <PASSWORD>ium.Codec.digestToHex(Titanium.Codec.MD5, SHARED_SECRET+qs.t)         
        });
    }
    
    
    
    var theApp = new Themer.appView();

    //Stop right click outside of the LIs
    //LI contextmenu listener setup in view.js
    Y.one('body').on('contextmenu', function(e) {
        // e.preventDefault();
        //Remove contextual right click options
        // var emptyMenu = Ti.UI.createMenu();
        // Ti.UI.setContextMenu(emptyMenu);
    });
    
    //Spin up watchers...
    Themer.Watcher.init(theApp);

    Y.Global.on('asset:send', function(e) {
        console.log('asset:send listener');
        //@todo allowed list?
        var key = e.relative,
            path = e.base.concat(Ti.Filesystem.getSeparator(), e.relative);

        Themer.IO.sendAsset(e.shop, e.theme, key, path);
    });    
});});
<commit_msg>turn back on right click prevention<commit_after>YUI().use('event', 'event-focus','event-custom', 'querystring-parse', function(Y) {Y.on("domready", function() { 
//@todo / bookmark : fix it so when you add first shop, that we don't see
//                  the You have no shops so add one overlay. Basically a timing issue I suspect
//                  of when we check
//@todo need to spin down watchers when going for remote auth
    if(window.location.search != '') {
        var shoplist = new Themer.shopList();
        shoplist.load();

        var qs = Y.QueryString.parse(window.location.search.replace('?', ''));
        console.log(qs);

        shoplist.create({
            id:qs.shop.replace('.myshopify.com', '', 'i'),
            api_key: APP_API_KEY,
            password: <PASSWORD>.Codec.digestToHex(Titanium.Codec.MD5, SHARED_SECRET+qs.t)         
        });
    }
    
    var theApp = new Themer.appView();

    //Stop right click outside of the LIs
    //LI contextmenu listener setup in view.js
    Y.one('body').on('contextmenu', function(e) {
        e.preventDefault();
        //Remove contextual right click options
        // var emptyMenu = Ti.UI.createMenu();
        // Ti.UI.setContextMenu(emptyMenu);
    });
    
    //Spin up watchers...
    Themer.Watcher.init(theApp);

    Y.Global.on('asset:send', function(e) {
        console.log('asset:send listener');
        //@todo allowed list?
        var key = e.relative,
            path = e.base.concat(Ti.Filesystem.getSeparator(), e.relative);

        Themer.IO.sendAsset(e.shop, e.theme, key, path);
    });    
});});

{'fraction_non_alphanumeric': 0.1535393818544367, 'fraction_numerical': 0.0006646726487205051, 'mean_word_length': 2.2968236582694415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6916462', 'n_tokens_mistral': 950, 'n_tokens_neox': 929, 'n_words': 208}