<commit_before>/*jslint browser: true */

/*global tangelo, d3, google, $ */

(function () {
    "use strict";

    if (!window.google) {
        tangelo.GMap = function () {
            throw "Use of the GMap class requires loading the Google Map API *before* loading Tangelo.";
        };
        return;
    }

    tangelo.GMap = function (elem, mapoptions, cfg) {
        var that;

        // Create the map object and place it into the specified container element.
        this.map = new google.maps.Map(elem, mapoptions);

        // Record the container element.
        this.container = elem;

        // Make the map live.
        this.setMap(this.map);

        // Be sure to call the draw method on drag and resize events.
        that = this;
        google.maps.event.addListener(this.map, "drag", function () { that.draw(); });
        $(window).resize(function () { that.draw(); });

        // Fake an empty configuration if the user did not send one in.<commit_msg>Changing GMap resize event to be more effective<commit_after>/*jslint browser: true */

/*global tangelo, d3, google, $ */

(function () {
    "use strict";

    if (!window.google) {
        tangelo.GMap = function () {
            throw "Use of the GMap class requires loading the Google Map API *before* loading Tangelo.";
        };
        return;
    }

    tangelo.GMap = function (elem, mapoptions, cfg) {
        var that;

        // Create the map object and place it into the specified container element.
        this.map = new google.maps.Map(elem, mapoptions);

        // Record the container element.
        this.container = elem;

        // Make the map live.
        this.setMap(this.map);

        // Be sure to call the draw method on drag and resize events.
        that = this;
        google.maps.event.addListener(this.map, "drag", function () { that.draw(); });
        $(elem).resize(function () { google.maps.event.trigger(that.map, "resize"); });

        // Fake an empty configuration if the user did not send one in.
{'fraction_non_alphanumeric': 0.11909448818897637, 'fraction_numerical': 0.000984251968503937, 'mean_word_length': 2.1666666666666665, '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': '4283532', 'n_tokens_mistral': 579, 'n_tokens_neox': 559, 'n_words': 199}