<commit_before>Ext.namespace('Kwf.GoogleMap');
Kwf.GoogleMap.isLoaded = false;
Kwf.GoogleMap.isCallbackCalled = false;
Kwf.GoogleMap.callbacks = [];

Kwf.GoogleMap.load = function(callback, scope)
{
    if (Kwf.GoogleMap.isCallbackCalled) {
        callback.call(scope || window);
        return;
    }
    Kwf.GoogleMap.callbacks.push({
        callback: callback,
        scope: scope
    });
    if (Kwf.GoogleMap.isLoaded) return;

    Kwf.GoogleMap.isLoaded = true;

    var url = 'http:/'+'/maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key={Kwf_Assets_GoogleMapsApiKey::getKey()}&c&libraries=places&async=2&language='+trlKwf('en');
    url += '&callback=Kwf.GoogleMap._loaded';
    var s = document.createElement('script');
    s.setAttribute('type', 'text/javascript');
    s.setAttribute('src', url);
    document.getElementsByTagName("head")[0].appendChild(s);
};

Kwf.GoogleMap._loaded = function()
{
    Kwf.GoogleMap.isCallbackCalled = true;
    Kwf.GoogleMap.callbacks.forEach(function(i) {
        i.callback.call(i.scope || window);
    });
};



Kwf.GoogleMap.maps = [];

/**<commit_msg>Use current protocol to load Google Map<commit_after>Ext.namespace('Kwf.GoogleMap');
Kwf.GoogleMap.isLoaded = false;
Kwf.GoogleMap.isCallbackCalled = false;
Kwf.GoogleMap.callbacks = [];

Kwf.GoogleMap.load = function(callback, scope)
{
    if (Kwf.GoogleMap.isCallbackCalled) {
        callback.call(scope || window);
        return;
    }
    Kwf.GoogleMap.callbacks.push({
        callback: callback,
        scope: scope
    });
    if (Kwf.GoogleMap.isLoaded) return;

    Kwf.GoogleMap.isLoaded = true;

    var url = location.protocol+'/'+'/'+'/maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key={Kwf_Assets_GoogleMapsApiKey::getKey()}&c&libraries=places&async=2&language='+trlKwf('en');
    url += '&callback=Kwf.GoogleMap._loaded';
    var s = document.createElement('script');
    s.setAttribute('type', 'text/javascript');
    s.setAttribute('src', url);
    document.getElementsByTagName("head")[0].appendChild(s);
};

Kwf.GoogleMap._loaded = function()
{
    Kwf.GoogleMap.isCallbackCalled = true;
    Kwf.GoogleMap.callbacks.forEach(function(i) {
        i.callback.call(i.scope || window);
    });
};



Kwf.GoogleMap.maps = [];

/**
{'fraction_non_alphanumeric': 0.16909492273730684, 'fraction_numerical': 0.0026490066225165563, 'mean_word_length': 3.9154013015184383, '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': '789959', 'n_tokens_mistral': 815, 'n_tokens_neox': 778, 'n_words': 96}