<commit_before>var cordova = window.cordova || window.Cordova;
window.GOOG = {
    iab: {
        open: function(apiKey, cb) {
          cordova.exec(
              function(){ cb(); },
              function(err){ cb(err); },
              'InAppBilling', 'open', [apiKey]);
        },
        close: function(cb) {
          cordova.exec(
              function(){ if (cb) cb(); },
              function(err){ if (cb) cb(err); },
              'InAppBilling', 'close', []);
        },
        inventory: function(skus, cb){
          cordova.exec(
              function(inv){ if (cb) cb(null, inv); },
              function(err){ if (cb) cb(err); },
              'InAppBilling', 'inevntory', skus || []);
        },
        buy: function(sku, payload, cb){
          cordova.exec(
              function(inv){ if (cb) cb(null, inv); },
              function(err){ if (cb) cb(err); },
              'InAppBilling', 'buy', [sku, payload]);
        },
        subscribe: function(sku, payload, cb){
          cordova.exec(
              function(inv){ if (cb) cb(null, inv); },
              function(err){ if (cb) cb(err); },
              'InAppBilling', 'subscribe', [sku, payload]);
        },
        consumes: function(purchaseList, cb){
            var _c = function(inList, outList, index, cb){
                if (inList.length >= index) return cb(null, outList);
                cordova.exec(
                    function(out){ outList.push(out); _c(inList, outList, ++index, cb); },
                    function(err){ if (cb) cb(err, outList); },
                    'InAppBilling', 'consume', [inList[index]]);
            };

            if (!purchaseList || !purchaseList.length){
                return cb(purchaseList);
            }else{
                _c(purchaseList, [], 0, cb);
            }
        }
    },
    gms: {
        CLIENT_NONE: 0x00,
        CLIENT_GAMES: 0x01,
        CLIENT_PLUS: 0x02,
        CLIENT_APPSTATE: 0x04,
        CLIENT_ALL: 0x07,
        setup: function(clientCode, extraScopes, listener){
            var params = extraScopes || [];
            params.unshift(clientCode);
            cordova.exec(
                function(result){ listener(null, result); },
                function(err){ listener(err); },
                'PlayServices', 'setup', params);
        },
        signin: function(){
            cordova.exec(
                function(){},
                function(){},
                'PlayServices', 'signin', []);
        },
        signout: function(){
            cordova.exec(
                function(){},
                function(){},
                'PlayServices', 'signout', []);
        }
    }
};
<commit_msg>added acheivements js<commit_after>var cordova = window.cordova || window.Cordova;
window.GOOG = {
    iab: {
        open: function(apiKey, cb) {
          cordova.exec(
              function(){ cb(); },
              function(err){ cb(err); },
              'InAppBilling', 'open', [apiKey]);
        },
        close: function(cb) {
          cordova.exec(
              function(){ if (cb) cb(); },
              function(err){ if (cb) cb(err); },
              'InAppBilling', 'close', []);
        },
        inventory: function(skus, cb){
          cordova.exec(
              function(inv){ if (cb) cb(null, inv); },
              function(err){ if (cb) cb(err); },
              'InAppBilling', 'inevntory', skus || []);
        },
        buy: function(sku, payload, cb){
          cordova.exec(
              function(inv){ if (cb) cb(null, inv); },
              function(err){ if (cb) cb(err); },
              'InAppBilling', 'buy', [sku, payload]);
        },
        subscribe: function(sku, payload, cb){
          cordova.exec(
              function(inv){ if (cb) cb(null, inv); },
              function(err){ if (cb) cb(err); },
              'InAppBilling', 'subscribe', [sku, payload]);
        },
        consumes: function(purchaseList, cb){
            var _c = function(inList, outList, index, cb){
                if (inList.length >= index) return cb(null, outList);
                cordova.exec(
                    function(out){ outList.push(out); _c(inList, outList, ++index, cb); },
                    function(err){ if (cb) cb(err, outList); },
                    'InAppBilling', 'consume', [inList[index]]);
            };

            if (!purchaseList || !purchaseList.length){
                return cb(purchaseList);
            }else{
                _c(purchaseList, [], 0, cb);
            }
        }
    },
    gms: {
        CLIENT_NONE: 0x00,
        CLIENT_GAMES: 0x01,
        CLIENT_PLUS: 0x02,
        CLIENT_APPSTATE: 0x04,
        CLIENT_ALL: 0x07,
        setup: function(clientCode, extraScopes, listener){
            var params = extraScopes || [];
            params.unshift(clientCode);
            cordova.exec(
                function(result){ listener(null, result); },
                function(err){ listener(err); },
                'PlayServices', 'setup', params);
        },
        signin: function(){
            cordova.exec(
                function(){},
                function(){},
                'PlayServices', 'signin', []);
        },
        signout: function(){
            cordova.exec(
                function(){},
                function(){},
                'PlayServices', 'signout', []);
        },
        incrementAchievement: function(id, steps, cb){
            if (cb){
                cordova.exec(
                    function(){ cb(); },
                    function(err){ cb(err); },
                    'PlayServices', 'incrementAchievementImmediate', [id, steps]);
            }else{
                cordova.exec(
                    function(){},
                    function(){},
                    'PlayServices', 'incrementAchievement', [id, steps]);
            }
        },
        loadAchievements: function(force, cb){
            cordova.exec(
                function(list){ cb(null, list); },
                function(err){ cb(err); },
                'PlayServices', 'loadAchievements:', [force]);
        },
        revealAchievement: function(id, cb){
            if (cb){
                cordova.exec(
                    function(){ cb(); },
                    function(err){ cb(err); },
                    'PlayServices', 'revealAchievementImmediate', [id]);
            }else{
                cordova.exec(
                    function(){},
                    function(err){},
                    'PlayServices', 'revealAchievement', [id]);
            }
        },
        unlockAchievement: function(id, cb){
            if (cb){
                cordova.exec(
                    function(){ cb(); },
                    function(err){ cb(err); },
                    'PlayServices', 'unlockAchievementImmediate', [id]);
            }else{
                cordova.exec(
                    function(){},
                    function(err){},
                    'PlayServices', 'unlockAchievement', [id]);
            }
        },
        submitScore: function(id, score, cb){
            if (cb){
                cordova.exec(
                    function(){ cb(); },
                    function(err){ cb(err); },
                    'PlayServices', 'submitScoreImmediate', [id, score]);
            }else{
                cordova.exec(
                    function(){},
                    function(err){},
                    'PlayServices', 'unlockAchievement', [id]);
            }
        }
    }
};

{'fraction_non_alphanumeric': 0.15014615997874037, 'fraction_numerical': 0.004251926654265214, 'mean_word_length': 1.3729508196721312, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4376637', 'n_tokens_mistral': 2152, 'n_tokens_neox': 2045, 'n_words': 425}