<commit_before>define(['./module'], function (controllers) {
    'use strict';
    controllers.controller('mapLoadCtrl', ['$scope','$http', '$rootScope','UserService', '$routeParams','$route','$location','todayTime', function ($scope, $http, $rootScope, UserService,  $routeParams, $route,$location, todayTime) {
        $scope.isAdministrator = UserService.isAdministrator;
                $rootScope.$broadcast('Update',"");

        var tiles   = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
            minZoom: 2,
            detectRetina: true,
            attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
        });
        var geoJson = L.geoJson (ukraineBorders, {
            style: {
                opacity:     0,
                fillOpacity: 0
            }
        });
        var latlng  = L.latLng(50.00, 32.00);
        var map     = L.map('map-content', {
            center: latlng,
            zoom: 7,
            layers:[tiles, geoJson] //disabling geoJson because of blocking ukraine-zone on the map
        });
        $rootScope.geoJson = geoJson; //forwarding geoJson object to $rooTscope
        var markers = L.markerClusterGroup();
        $scope.data = {};
        var markerIcon;

        $rootScope.getProblemsAndPlaceMarkers = function(){
            $http({ method: 'GET', url: '/api/problems' }).success(function (data) {
                $scope.data = data;
                placeMarkers($scope.data);
            });
        };
        $scope.getProblemsAndPlaceMarkers();

        /*navigator.geolocation.getCurrentPosition(getUserPosition);
<commit_msg>did Ukraine border-restriction for map<commit_after>define(['./module'], function (controllers) {
    'use strict';
    controllers.controller('mapLoadCtrl', ['$scope','$http', '$rootScope','UserService', '$routeParams','$route','$location','todayTime', function ($scope, $http, $rootScope, UserService,  $routeParams, $route,$location, todayTime) {
        $scope.isAdministrator = UserService.isAdministrator;
                $rootScope.$broadcast('Update',"");

        var tiles   = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
            minZoom: 2,
            detectRetina: true,
            attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
        });
        var geoJson = L.geoJson (ukraineBorders, {
            style: {
                opacity:     0,
                fillOpacity: 0
            }
        });
        var latlng  = L.latLng(50.00, 32.00);
        var map     = L.map('map-content', {

            center: latlng,
            zoom: 7,
            minZoom: 6,
            maxBounds: L.latLngBounds( L.latLng(43.23, 21.56), L.latLng(52.83, 40.46) ),
            layers:[tiles, geoJson] //disabling geoJson because of blocking ukraine-zone on the map
        });
        $rootScope.geoJson = geoJson; //forwarding geoJson object to $rooTscope
        var markers = L.markerClusterGroup();
        $scope.data = {};
        var markerIcon;

        $rootScope.getProblemsAndPlaceMarkers = function(){
            $http({ method: 'GET', url: '/api/problems' }).success(function (data) {
                $scope.data = data;
                placeMarkers($scope.data);
            });
        };
        $scope.getProblemsAndPlaceMarkers();

        /*navigator.geolocation.getCurrentPosition(getUserPosition);

{'fraction_non_alphanumeric': 0.15153284671532846, 'fraction_numerical': 0.01197080291970803, 'mean_word_length': 2.21087160262418, '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': '4902408', 'n_tokens_mistral': 1075, 'n_tokens_neox': 997, 'n_words': 192}