<commit_before>var Index = {
    init: function(){
        $('#address').on('click', 'input[type=button]', function() {
            var code = $(this).parent().find('input[type=text]').val();
            Map.goToAddress(code, Map.map, Index.loadFromMarker);
        });

        $('#mapButton').on('click', function() {
            $(this).val('Submit');
            $(this).off('click').on('click', Index.loadFromMarker);
        });

        google.maps.event.addDomListener(window, 'load', Map.init());
    },
    loadFromMarker: function(){
        var marker = Map.marker;
        if (marker !== undefined){
            Represent.candidatesLatLon(marker.position.lat(), marker.position.lng(), Index.addToReps);
            Represent.boundariesLatLon(marker.position.lat(), marker.position.lng(), Index.addBoundary);
        }
    },
    addToReps: function(data){
        var $reps = $('#reps');
        var candidateList = '';<commit_msg>Hide map button after map shows up<commit_after>var Index = {
    init: function(){
        $('#address').on('click', 'input[type=button]', function() {
            var code = $(this).parent().find('input[type=text]').val();
            Map.goToAddress(code, Map.map, Index.loadFromMarker);
            $('#mapButton').hide();
        });

        $('#mapButton').on('click', function() {
            $(this).val('Submit');
            $(this).off('click').on('click', Index.loadFromMarker);
        });

        google.maps.event.addDomListener(window, 'load', Map.init());
    },
    loadFromMarker: function(){
        var marker = Map.marker;
        if (marker !== undefined){
            Represent.candidatesLatLon(marker.position.lat(), marker.position.lng(), Index.addToReps);
            Represent.boundariesLatLon(marker.position.lat(), marker.position.lng(), Index.addBoundary);
        }
    },
    addToReps: function(data){
        var $reps = $('#reps');
        var candidateList = '';
{'fraction_non_alphanumeric': 0.18920308483290488, 'fraction_numerical': 0.0, 'mean_word_length': 2.6103896103896105, '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': '205558', 'n_tokens_mistral': 559, 'n_tokens_neox': 557, 'n_words': 91}