<commit_before>describe('The dp-map directive', function () {
    let $compile,
        $rootScope,
        L,
        layers,
        highlight,
        panning,
        zoom,
        drawTool,
        onMapClick,
        mockedMapState,
        mockedLeafletMap,
        mockedMarkers,
        DRAW_TOOL_CONFIG;

    beforeEach(function () {
        angular.mock.module(
            'dpMap',
            {
                store: {
                    dispatch: angular.noop,
                    subscribe: angular.noop
                },
                leafletMap: {
                    invalidateSize: angular.noop
                },
                mapConfig: {
                    MAP_OPTIONS: {
                        doThisThing: false,
                        someVariable: 4
                    }
                },
                highlight: {
                    initialize: angular.noop,
                    addMarker: angular.noop,
                    removeMarker: angular.noop,
                    setCluster: angular.noop,
                    clearCluster: angular.noop
                },
                panning: {
                    initialize: angular.noop,
                    panTo: angular.noop,
                    setOption: angular.noop
                },
                zoom: {
                    initialize: angular.noop,
                    setZoom: angular.noop
                },
                onMapClick: {
                    initialize: angular.noop
                },
                user: {
                    getAuthorizationLevel: angular.noop
                },
                overlays: {
                    SOURCES: {
                        'some_overlay': 'some_overlay',
                        'some_other_overlay': 'some_other_overlay'
                    }
                }
            },

            function ($provide) {
                $provide.factory('dpLinkDirective', function () {
                    return {};
                });

                $provide.factory('dpToggleLayerSelectionDirective', function () {
                    return {};
                });

                $provide.factory('dpDrawToolDirective' + '', function () {
                    return {};
                });

                $provide.factory('dpActiveOverlaysDirective', function () {
                    return {};
                });

                $provide.factory('dpToggleFullscreenDirective', function () {
                    return {};
                });
            }
        );
        mockedLeafletMap = {
            invalidateSize: angular.noop<commit_msg>fixed all unit tests tg-4020<commit_after>describe('The dp-map directive', function () {
    let $compile,
        $rootScope,
        L,
        layers,
        highlight,
        panning,
        zoom,
        drawTool,
        onMapClick,
        mockedMapState,
        mockedLeafletMap,
        mockedMarkers,
        DRAW_TOOL_CONFIG;

    beforeEach(function () {
        angular.mock.module(
            'dpMap',
            {
                store: {
                    dispatch: angular.noop,
                    subscribe: angular.noop
                },
                leafletMap: {
                    invalidateSize: angular.noop
                },
                mapConfig: {
                    MAP_OPTIONS: {
                        doThisThing: false,
                        someVariable: 4
                    }
                },
                highlight: {
                    initialize: angular.noop,
                    addMarker: angular.noop,
                    removeMarker: angular.noop,
                    setCluster: angular.noop,
                    clearCluster: angular.noop
                },
                panning: {
                    initialize: angular.noop,
                    panTo: angular.noop,
                    setOption: angular.noop
                },
                zoom: {
                    initialize: angular.noop,
                    setZoom: angular.noop
                },
                onMapClick: {
                    initialize: angular.noop
                },
                user: {
                    getAuthorizationLevel: angular.noop
                },
                overlays: {
                    SOURCES: {
                        'some_overlay': 'some_overlay',
                        'some_other_overlay': 'some_other_overlay'
                    }
                }
            },

            function ($provide) {
                $provide.factory('dpLinkDirective', function () {
                    return {};
                });

                $provide.factory('dpToggleLayerSelectionDirective', function () {
                    return {};
                });

                $provide.factory('dpDrawToolDirective' + '', function () {
                    return {};
                });

                $provide.factory('dpActiveOverlaysDirective', function () {
                    return {};
                });

                $provide.factory('dpToggleFullscreenDirective', function () {
                    return {};
                });

                $provide.factory('dpEmbedButtonDirective', function () {
                    return {};
                });
            }
        );
        mockedLeafletMap = {
            invalidateSize: angular.noop
{'fraction_non_alphanumeric': 0.08506686478454681, 'fraction_numerical': 0.001114413075780089, 'mean_word_length': 0.8808941669577366, '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': '818617', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1117, 'n_words': 186}