<commit_before>window.onload = function() {    
    function ShrinkControl(button) {
        button.innerHTML = 'Shrink map';
        button.style.color = "black";
        button.style.backgroundColor = "white";
        button.style.font = "12px Arial";
        button.style.border = "1px solid black";
        button.style.padding = "2px";
        button.style.marginBottom = "3px";
        button.style.textAlign = "center";
        button.style.width = "6em";
        button.style.cursor = "pointer";

        google.maps.event.addDomListener(button, "click", function() {
            $('#gmap').css({'cursor': 'pointer'}).attr(
                'title', 'Activate larger map'
            );
            gmap.controls[google.maps.ControlPosition.BOTTOM_LEFT].clear();
            hidePeopleOnMap(peopleArray);
            $('#gmap').animate({
                height: '7em',
                opacity: 0.6
            }, 500, 'swing', function() {
                google.maps.event.trigger(gmap, 'resize');
                gmap.setCenter(personLatLng);
                gmap.setZoom(12);
                gmap.setOptions({
                    draggable: false,
                    panControl: false,
                    zoomControl: false,
                    mapTypeControl: false
                });
                $('#gmap').click(onMapClicked);
            });
        });
    }

    var personLatLng =  new google.maps.LatLng(person_latitude, person_longitude);

    var myOptions = {
        zoom: 12,
        center: personLatLng,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        draggable: false,
        disableDefaultUI: true,
        scrollwheel: false
    };
    var gmap = new google.maps.Map(document.getElementById('gmap'), myOptions);

    var shrinkButtonDiv = document.createElement('div');
    var shrinkButton = new ShrinkControl(shrinkButtonDiv);
    shrinkButtonDiv.index = 1;



    /* Map enlarges and becomes active when you click on it */
    $('#gmap').css({'cursor': 'pointer', 'opacity': 0.6}).attr(
            'title', 'Activate larger map'
            );
    function onMapClicked() {
        $('#gmap').css({'cursor': ''}).attr('title', '');
        $('#gmap').animate({
            height: '25em',
            opacity: 1.0
        }, 500, 'swing', function() {
            google.maps.event.trigger(gmap, 'resize');
            gmap.panTo(personLatLng);
            gmap.setOptions({
                draggable: true,
                panControl: true,
                zoomControl: true,
                mapTypeControl: true
            });
            showPeopleOnMap(peopleArray, gmap);

            // Unbind event so user can actually interact with map
            $('#gmap').unbind('click', onMapClicked);
        });
        gmap.controls[google.maps.ControlPosition.BOTTOM_LEFT].push(shrinkButtonDiv);
    }
    $('#gmap').click(onMapClicked);

    var marker = new google.maps.Marker({
        position: personLatLng,
        map: gmap,
        icon: greenIconImage(),
        shadow: greenIconShadow()

    });

    //gets an array of person map markers, used for hiding and showing them on
    //the map
    var peopleArray = getPeopleArray(nearby_people);

};

jQuery(function($) {
    $('#editSkills').hide();
    $('ul.tags li.edit a').toggle(
        function() {
            $('#editSkills').show();
            return false;
        },
        function() {
            $('#editSkills').hide();
            return false;
        }
        );

    if ($('#uploadNewPhoto').length && $('div.header img.main').length) {
        var href = $('a#uploadNewPhoto').attr('href');
        $('#uploadNewPhoto').remove();
        var upload = $('<a href="' + href + '">(replace)</a>').appendTo(
            document.body
            );
        var img = $('div.header img.main');
        upload.css({
            'font-size': '10px',
            'text-decoration': 'none',
            'color': 'white',
            'padding': '0px 2px 0px 2px',
            'background-color': 'black',
            'position': 'absolute',
            'top': img.offset().top + img.height() - upload.height() - 1,
            'left': img.offset().left + 4,
            'visibility': 'hidden'
        });
        img.mouseover(function() {
            upload.css('visibility', 'visible');
        });
        upload.mouseover(function() {
            upload.css('visibility', 'visible');
        });
        img.mouseout(function() {
            upload.css('visibility', 'hidden');
        });
    }
    /*    
    // Hide changeloc link too
    if ($('a.changeloc').length) {
    $('a.changeloc').css('visibility', 'hidden');
    $('a.changeloc').parent().mouseover(function() {
    $('a.changeloc').css('visibility', 'visible');
    });
    $('a.changeloc').parent().mouseout(function() {
    $('a.changeloc').css('visibility', 'hidden');
    });
    $('a.changeloc').mouseover(function() {
    $('a.changeloc').css('visibility', 'visible');
    });
    }

    // And tags edit
    if ($('ul.tags li.edit').length) {
    var a = $('ul.tags li.edit a').css('text-decoration', 'none');
    a.css('visibility', 'hidden');
    a.parent().parent().mouseover(function() {
    a.css('visibility', 'visible');
    });
    a.parent().parent().mouseout(function() {
    a.css('visibility', 'hidden');
    });
    a.mouseover(function() {
    a.css('visibility', 'visible');
    });
    }

    // And the edit links in the h2s
    $('h2 a.edit').each(function() {
    var $this = $(this);
    $this.css('visibility', 'hidden');
    $this.parent().mouseover(function() {
    $this.css('visibility', 'visible');
    });
    $this.parent().mouseout(function() {
    $this.css('visibility', 'hidden');
    });
    $this.mouseover(function() {
    $this.css('visibility', 'visible');
    });
    });

    // And the edit bio link
    if ($('div.bio a.edit').length) {
    $div = $('div.bio');
    $a = $('div.bio a.edit');
    $a.css('visibility', 'hidden');
    $div.mouseover(function() {
    $a.css('visibility', 'visible');
    });
    $div.mouseout(function() {
    $a.css('visibility', 'hidden');
    });
    $a.mouseover(function() {
    $a.css('visibility', 'visible');
    });
    }
    */    
});<commit_msg>Removed commented out code from profile.js<commit_after>window.onload = function() {    
    function ShrinkControl(button) {
        button.innerHTML = 'Shrink map';
        button.style.color = "black";
        button.style.backgroundColor = "white";
        button.style.font = "12px Arial";
        button.style.border = "1px solid black";
        button.style.padding = "2px";
        button.style.marginBottom = "3px";
        button.style.textAlign = "center";
        button.style.width = "6em";
        button.style.cursor = "pointer";

        google.maps.event.addDomListener(button, "click", function() {
            $('#gmap').css({'cursor': 'pointer'}).attr(
                'title', 'Activate larger map'
            );
            gmap.controls[google.maps.ControlPosition.BOTTOM_LEFT].clear();
            hidePeopleOnMap(peopleArray);
            $('#gmap').animate({
                height: '7em',
                opacity: 0.6
            }, 500, 'swing', function() {
                google.maps.event.trigger(gmap, 'resize');
                gmap.setCenter(personLatLng);
                gmap.setZoom(12);
                gmap.setOptions({
                    draggable: false,
                    panControl: false,
                    zoomControl: false,
                    mapTypeControl: false
                });
                $('#gmap').click(onMapClicked);
            });
        });
    }

    var personLatLng =  new google.maps.LatLng(person_latitude, person_longitude);

    var myOptions = {
        zoom: 12,
        center: personLatLng,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        draggable: false,
        disableDefaultUI: true,
        scrollwheel: false
    };
    var gmap = new google.maps.Map(document.getElementById('gmap'), myOptions);

    var shrinkButtonDiv = document.createElement('div');
    var shrinkButton = new ShrinkControl(shrinkButtonDiv);
    shrinkButtonDiv.index = 1;



    /* Map enlarges and becomes active when you click on it */
    $('#gmap').css({'cursor': 'pointer', 'opacity': 0.6}).attr(
            'title', 'Activate larger map'
            );
    function onMapClicked() {
        $('#gmap').css({'cursor': ''}).attr('title', '');
        $('#gmap').animate({
            height: '25em',
            opacity: 1.0
        }, 500, 'swing', function() {
            google.maps.event.trigger(gmap, 'resize');
            gmap.panTo(personLatLng);
            gmap.setOptions({
                draggable: true,
                panControl: true,
                zoomControl: true,
                mapTypeControl: true
            });
            showPeopleOnMap(peopleArray, gmap);

            // Unbind event so user can actually interact with map
            $('#gmap').unbind('click', onMapClicked);
        });
        gmap.controls[google.maps.ControlPosition.BOTTOM_LEFT].push(shrinkButtonDiv);
    }
    $('#gmap').click(onMapClicked);

    var marker = new google.maps.Marker({
        position: personLatLng,
        map: gmap,
        icon: greenIconImage(),
        shadow: greenIconShadow()

    });

    //gets an array of person map markers, used for hiding and showing them on
    //the map
    var peopleArray = getPeopleArray(nearby_people);

};

jQuery(function($) {
    $('#editSkills').hide();
    $('ul.tags li.edit a').toggle(
        function() {
            $('#editSkills').show();
            return false;
        },
        function() {
            $('#editSkills').hide();
            return false;
        }
        );

    if ($('#uploadNewPhoto').length && $('div.header img.main').length) {
        var href = $('a#uploadNewPhoto').attr('href');
        $('#uploadNewPhoto').remove();
        var upload = $('<a href="' + href + '">(replace)</a>').appendTo(
            document.body
            );
        var img = $('div.header img.main');
        upload.css({
            'font-size': '10px',
            'text-decoration': 'none',
            'color': 'white',
            'padding': '0px 2px 0px 2px',
            'background-color': 'black',
            'position': 'absolute',
            'top': img.offset().top + img.height() - upload.height() - 1,
            'left': img.offset().left + 4,
            'visibility': 'hidden'
        });
        img.mouseover(function() {
            upload.css('visibility', 'visible');
        });
        upload.mouseover(function() {
            upload.css('visibility', 'visible');
        });
        img.mouseout(function() {
            upload.css('visibility', 'hidden');
        });
    }
});
{'fraction_non_alphanumeric': 0.1673768062245276, 'fraction_numerical': 0.006483882919599852, 'mean_word_length': 1.934764881761348, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '769852', 'n_tokens_mistral': 3236, 'n_tokens_neox': 3101, 'n_words': 590}