<commit_before>(function( window ){
    "use strict";

    var _modules = {},

    _state = {
        module_loaded: [],
        last_time_caching: 0,
        last_time_changed: 0
    },

    _settings = {
        caching: false,
        interval_caching: 1000,
        timer_caching: null,
        crypt_caching: false,
        crypt_password: <PASSWORD>,
        default_redirect_uri: null
    },

    _data = {},

    //events ['retrieving', 'loaded', 'update', 'saving']
    listeners = {},

    jsonp_counter = 0,

    temp_client_id = [],

	auth_url = null,

    in_array = function(s, arr){
        for(var i = 0, m = arr.length; i < m; i += 1){
            if(s === arr[i]){
                return 1;
            }
        }

        return 0;
    },

    _mergeData2Url = function( url, data ){
        var params = '?';
        for (var key in data) if(data.hasOwnProperty(key)){
            params += encodeURIComponent(key) + '=' +
            encodeURIComponent(data[key]) + '&';
        }
        url += params;

        return url;
    },

    _window_open = function(url, callback){
            var popup = window.open(
                url,
                'Authentication',
                "resizeable=true,height=550,width=500,left="+ ((window.innerWidth - 500) / 2) + ",top=" + ((window.innerHeight - 550) / 2)
            );

            popup.focus();

            var timer = setInterval(function(){
                if(popup.closed){
                    clearInterval(timer);
                    callback({state:0, error: "The authentication window has been closed"});
                }

                if(auth_url){
                    popup.close();
                    clearInterval(timer); <commit_msg>bug fix<commit_after>(function( window ){
    "use strict";

    var _modules = {},

    _state = {
        module_loaded: [],
        last_time_caching: 0,
        last_time_changed: 0
    },

    _settings = {
        caching: false,
        interval_caching: 1000,
        timer_caching: null,
        crypt_caching: false,
        crypt_password: <PASSWORD>,
        default_redirect_uri: null
    },

    _data = {},

    //events ['retrieving', 'loaded', 'update', 'saving']
    listeners = {},

    jsonp_counter = 0,

    temp_client_id = [],

	auth_url = null,

    in_array = function(s, arr){
        for(var i = 0, m = arr.length; i < m; i += 1){
            if(s === arr[i]){
                return 1;
            }
        }

        return 0;
    },

    _mergeData2Url = function( url, data ){
        var params = '?';
        for (var key in data) if(data.hasOwnProperty(key) && data[key] !== null){
            params += encodeURIComponent(key) + '=' +
            encodeURIComponent(data[key]) + '&';
        }
        url += params;

        return url;
    },

    _window_open = function(url, callback){
            var popup = window.open(
                url,
                'Authentication',
                "resizeable=true,height=550,width=500,left="+ ((window.innerWidth - 500) / 2) + ",top=" + ((window.innerHeight - 550) / 2)
            );

            popup.focus();

            var timer = setInterval(function(){
                if(popup.closed){
                    clearInterval(timer);
                    callback({state:0, error: "The authentication window has been closed"});
                }

                if(auth_url){
                    popup.close();
                    clearInterval(timer); 
{'fraction_non_alphanumeric': 0.13327576280944156, 'fraction_numerical': 0.015544041450777202, 'mean_word_length': 1.5551470588235294, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5574849', 'n_tokens_mistral': 1081, 'n_tokens_neox': 984, 'n_words': 217}