<commit_before>
function initialize() {
  var panoramaOptions = {
    pano: '6xCnRwAoMAdKuPzjd3WGsA',
    pov: {
      heading: 270,
      pitch: 0
    },
    visible: true,
    imageDateControl: true,
    addressControl: true
  };
  window.panorama1 = new google.maps.StreetViewPanorama(document.getElementById('pano1'), panoramaOptions);
  window.panorama2 = new google.maps.StreetViewPanorama(document.getElementById('pano2'), panoramaOptions);

  google.maps.event.addListener(panorama1, 'position_changed', function() {
    panorama2.setPosition(panorama1.getPosition());
  });

  google.maps.event.addListener(panorama1, 'pov_changed', function() {
    panorama2.setPov(panorama1.getPov());
  });

  google.maps.event.addListener(panorama1, 'zoom_changed', function() {
    panorama2.setZoom(panorama1.getZoom());
  });

  $("[data-pano]").click(function() {
    console.log($(this).attr('data-pano'));
    panorama1.setPano($(this).attr('data-pano'));
  })
}

google.maps.event.addDomListener(window, 'load', initialize);<commit_msg>can pan and zoom in second view; still can't follow links<commit_after>
function initialize() {
  var panoramaOptions = {
    pano: '6xCnRwAoMAdKuPzjd3WGsA',
    pov: {
      heading: 270,
      pitch: 0
    },
    visible: true,
    imageDateControl: true
  };
  window.panorama1 = new google.maps.StreetViewPanorama(document.getElementById('pano1'), panoramaOptions);

  panoramaOptions.addressControl = false;
  panoramaOptions.linksControl = false;
  panoramaOptions.panControl = false;
  panoramaOptions.zoomControl = false;

  window.panorama2 = new google.maps.StreetViewPanorama(document.getElementById('pano2'), panoramaOptions);

  var eventLock = false;

  google.maps.event.addListener(panorama1, 'position_changed', function() {
    if (!eventLock) {
      eventLock = true;
      panorama2.setPosition(panorama1.getPosition());
      eventLock = false;
    }
  });

  google.maps.event.addListener(panorama1, 'pov_changed', function() {
    if (!eventLock) {
      eventLock = true;
      panorama2.setPov(panorama1.getPov());
      eventLock = false;
    }
  });

  google.maps.event.addListener(panorama1, 'zoom_changed', function() {
    if (!eventLock) {
      eventLock = true;
      panorama2.setZoom(panorama1.getZoom());
      eventLock = false;
    }
  });

  google.maps.event.addListener(panorama2, 'pov_changed', function() {
    if (!eventLock) {
      eventLock = true;
      panorama1.setPov(panorama2.getPov());
      eventLock = false;
    }
  });

  google.maps.event.addListener(panorama2, 'zoom_changed', function() {
    if (!eventLock) {
      eventLock = true;
      panorama1.setZoom(panorama2.getZoom());
      eventLock = false;
    }
  });

  $("[data-pano]").click(function() {
    console.log($(this).attr('data-pano'));
    panorama1.setPano($(this).attr('data-pano'));
  })
}

google.maps.event.addDomListener(window, 'load', initialize);
{'fraction_non_alphanumeric': 0.1488197057817311, 'fraction_numerical': 0.01573725624358536, 'mean_word_length': 3.9060402684563758, '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': '7001022', 'n_tokens_mistral': 1050, 'n_tokens_neox': 1015, 'n_words': 144}