<commit_before>goog.require('goog.debug.Console');
goog.require('goog.debug.Logger');
goog.require('goog.debug.Logger.Level');
goog.require('ol.Collection');
goog.require('ol.Coordinate');
goog.require('ol.Map');
goog.require('ol.Projection');
goog.require('ol.source.TiledWMS');


if (goog.DEBUG) {
  goog.debug.Console.autoInstall();
  goog.debug.Logger.getLogger('ol').setLevel(goog.debug.Logger.Level.INFO);
}

var extent = new ol.Extent(420000, 30000, 900000, 350000);

var epsg21781 = new ol.Projection('EPSG:21781',
    ol.ProjectionUnits.METERS, extent);

var layers = new ol.Collection([
  new ol.layer.TileLayer({
    source: new ol.source.TiledWMS({
      url: 'http://wms.geo.admin.ch/?',
      attributions: [new ol.Attribution(
          '&copy; ' +
          '<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +
          'Pixelmap 1:1000000 / geo.admin.ch</a>')],
      crossOrigin: null,
      params: {'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale'},
      projection: epsg21781,
      extent: extent
    })
  }),
  new ol.layer.TileLayer({
    source: new ol.source.TiledWMS({
      url: 'http://wms.geo.admin.ch/?',
      attributions: [new ol.Attribution(
          '&copy; ' +
          '<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +
          'National parks / geo.admin.ch</a>')],
      crossOrigin: null,
      params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
      projection: epsg21781,
      extent: extent
    })
  })
]);

var map = new ol.Map({
  center: new ol.Coordinate(660000, 190000),
  projection: epsg21781,
  layers: layers,
  target: 'map',
  zoom: 9
});
<commit_msg>Using DOM renderer; no custom extent for layers<commit_after>goog.require('goog.debug.Console');
goog.require('goog.debug.Logger');
goog.require('goog.debug.Logger.Level');
goog.require('ol.Collection');
goog.require('ol.Coordinate');
goog.require('ol.Map');
goog.require('ol.Projection');
goog.require('ol.source.TiledWMS');


if (goog.DEBUG) {
  goog.debug.Console.autoInstall();
  goog.debug.Logger.getLogger('ol').setLevel(goog.debug.Logger.Level.INFO);
}

var extent = new ol.Extent(420000, 30000, 900000, 350000);

var epsg21781 = new ol.Projection('EPSG:21781',
    ol.ProjectionUnits.METERS, extent);

var layers = new ol.Collection([
  new ol.layer.TileLayer({
    source: new ol.source.TiledWMS({
      url: 'http://wms.geo.admin.ch/?',
      attributions: [new ol.Attribution(
          '&copy; ' +
          '<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +
          'Pixelmap 1:1000000 / geo.admin.ch</a>')],
      crossOrigin: null,
      params: {'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale'},
      projection: epsg21781
    })
  }),
  new ol.layer.TileLayer({
    source: new ol.source.TiledWMS({
      url: 'http://wms.geo.admin.ch/?',
      attributions: [new ol.Attribution(
          '&copy; ' +
          '<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +
          'National parks / geo.admin.ch</a>')],
      crossOrigin: null,
      params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
      projection: epsg21781
    })
  })
]);

var map = new ol.Map({
  renderer: ol.RendererHint.DOM,
  center: new ol.Coordinate(660000, 190000),
  projection: epsg21781,
  layers: layers,
  target: 'map',
  zoom: 9
});

{'fraction_non_alphanumeric': 0.18039563035134337, 'fraction_numerical': 0.04310599350457632, 'mean_word_length': 3.3214285714285716, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6171707', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1239, 'n_words': 195}