<commit_before>define(['services/map', 'knockout', 'plugins/dialog', 'services/geocoding'],
    function(map, ko, dialog, geocoder){

        var ctor = function(){

            this.mapObj = null;
            this.marker = ko.observable();
            this.displayLocation = ko.observable();

            this.activate = function(){
                if(this.marker()){
                    this.marker().addTo(this.mapObj);
                }
            };

            this.compositionComplete = function(){
                this.mapObj = map.load('map', null, { callback: this.geocoderCallback });
                this.mapObj.on('contextmenu', function(result){
                    if(this.marker()){
                        this.mapObj.removeLayer(this.marker());
                    }
                    this.marker(L.marker(result.latlng).addTo(this.mapObj));
                }.bind(this));
            };

            this.save = function(){
                dialog.close(this);
                if(this.marker()) {<commit_msg>Fixing find location<commit_after>define(['services/map', 'knockout', 'plugins/dialog', 'services/geocoding'],
    function(map, ko, dialog, geocoder){

        var ctor = function(){

            this.mapObj = null;
            this.marker = ko.observable();
            this.displayLocation = ko.observable();

            this.activate = function(){
                console.log('ss', this.mapObj);

            };

            this.compositionComplete = function(){
                this.mapObj = map.load('map', null, { callback: this.geocoderCallback });
                this.mapObj.on('contextmenu', function(result){
                    if(this.marker()){
                        this.mapObj.removeLayer(this.marker());
                    }
                    this.marker(L.marker(result.latlng).addTo(this.mapObj));
                }.bind(this));
                if(this.marker()){
                    this.marker().addTo(this.mapObj);
                }
            };

            this.save = function(){
                dialog.close(this);
                if(this.marker()) {
{'fraction_non_alphanumeric': 0.14177693761814744, 'fraction_numerical': 0.0, 'mean_word_length': 1.4905882352941175, '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': '901460', 'n_tokens_mistral': 571, 'n_tokens_neox': 528, 'n_words': 80}