<commit_before>/* eslint-disable angular/di */
/* eslint-disable no-undef */
'use strict';
import '../../core/core-ajs.mock';
import 'angular-mocks';
import * as angular from 'angular';
import {HsLayerUtilsService} from '../../utils/layer-utils.service';
import {HsLayoutService} from '../../layout/layout.service';
import {HsMapService} from '../../map/map.service';
import {HsUtilsService} from '../../utils/utils.service';
describe('add-layers-vector', () => {
  let el, scope, vm;

  beforeEach(() => {
    angular.module('hs', []).value('HsConfig', {});

    angular
      .module('hs.utils', ['hs'])
      .service('HsUtilsService', function () {
        this.proxify = function (url) {
          return url;
        };
      })
      .factory('HsLayerUtilsService', HsLayerUtilsService);

    angular.module('hs.map', []).service('HsMapService', HsMapService);

    angular
      .module('hs.layout', ['hs.core'])
      .service('HsLayoutService', HsLayoutService);
    angular.module('hs.language', []).service('HsLanguageService', function () {
      this.getTranslation = function () {};
    });

    angular.mock.module('hs.addLayersVector');
  });<commit_msg>temporary fix for addlayer unit test<commit_after>/* eslint-disable angular/di */
/* eslint-disable no-undef */
'use strict';
import '../../core/core-ajs.mock';
import 'angular-mocks';
import Map from 'ol/Map';

import * as angular from 'angular';
import {HsLayerUtilsService} from '../../utils/layer-utils.service';
import {HsLayoutService} from '../../layout/layout.service';
import {HsMapService} from '../../map/map.service';
import {HsUtilsService} from '../../utils/utils.service';
describe('add-layers-vector', () => {
  let el, scope, vm;

  beforeEach(() => {
    angular.module('hs', []).value('HsConfig', {});

    angular
      .module('hs.utils', ['hs'])
      .service('HsUtilsService', function () {
        this.proxify = function (url) {
          return url;
        };
      })
      .factory('HsLayerUtilsService', HsLayerUtilsService);

      angular.module('hs.map', []).service('HsMapService', function () {
        this.map = new Map({
          target: 'div',
        });
        this.addLayer = function(lyr){
          this.map.addLayer(lyr);
        }
      });

    angular
      .module('hs.layout', ['hs.core'])
      .service('HsLayoutService', HsLayoutService);
    angular.module('hs.language', []).service('HsLanguageService', function () {
      this.getTranslation = function () {};
    });

    angular.mock.module('hs.addLayersVector');
  });
{'fraction_non_alphanumeric': 0.1974921630094044, 'fraction_numerical': 0.0, 'mean_word_length': 3.0588235294117645, 'pattern_counts': {'":': 0, '<': 3, '<?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': '975766', 'n_tokens_mistral': 783, 'n_tokens_neox': 758, 'n_words': 149}