<commit_before>function GeoPickerController($http) {

    var _this = this;
    var popupinfo = [];
    // set div to loading
    document.getElementById("map").innerHTML = "<h1 class='maploading'>map is loading...</h1>";

    this.loadPlaces = function(bbox) {
        // should set to "/spi/place?bbox=" + bbox
        $http.get("/spi/GetDummy?multi=true", {
            headers: { 'Authorization': undefined }
        }).success(function(geojson){
            _this.places = geojson;
            // init map
        });
    };

    this.loadPlace = function(type, placeId) { // load on select by map or id
        // "/spi/place/"+ type + "/" + placeId
        $http.get("/spi/GetDummy", {
            headers: { 'Authorization': undefined }
        }).success(function(geojson){
            _this.onPlaceSelected(geojson);
        });
    };

}

angular.module('chronontology.components')
    .component('geomap',{
        templateUrl: '../../partials/geo/picker.html',
        bindings: {
            onPlaceSelected: '&'
        },
        controller: GeoPickerController
    });
<commit_msg>fix geopicker definition<commit_after>function GeoPickerController($http) {

    var _this = this;

    this.loadPlaces = function(bbox) {
        // should set to "/spi/place?bbox=" + bbox
        $http.get("/spi/GetDummy?multi=true", {
            headers: { 'Authorization': undefined }
        }).success(function(geojson){
            _this.places = geojson;
            // init map
        });
    };

    this.loadPlace = function(type, placeId) { // load on select by map or id
        // "/spi/place/"+ type + "/" + placeId
        $http.get("/spi/GetDummy", {
            headers: { 'Authorization': undefined }
        }).success(function(geojson){
            _this.onPlaceSelected(geojson);
        });
    };

}

angular.module('chronontology.components')
    .component('geopicker',{
        templateUrl: '../../partials/geo/picker.html',
        bindings: {
            onPlaceSelected: '&'
        },
        controller: GeoPickerController
    });

{'fraction_non_alphanumeric': 0.1555232558139535, 'fraction_numerical': 0.0009689922480620155, 'mean_word_length': 2.0729166666666665, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3850275', 'n_tokens_mistral': 607, 'n_tokens_neox': 599, 'n_words': 109}