<commit_before>var myApp = angular.module('myApp', ['elasticsearch','ngMap']);

myApp.controller('viewcontroller',function ($scope, dataClient, esFactory, $interval, $window, $document, helper, $timeout) {

  var places = [],
      renderarray = [],
      categoryarray = [],
      streamedCheckin = [],
      searchedCheckinarray = [],
      draggedCheckin = [],
      infowindowarray= [],
      citysearched,
      index = 0,
      current_date = new Date().getTime()/1000;
      geocoder = new google.maps.Geocoder(),           //variable for geocoding
      infowindow = new google.maps.InfoWindow();      //variable for map infowindow

  $scope.activeContainer = '';


  $scope.init = function(){
      $scope.$on('mapInitialized', function(event, map) {
        $scope.mapobj = map;
        $scope.mapobj.setZoom(3);
        $scope.mapobj.setOptions({ minZoom: 2, maxZoom: 15 });
        $scope.mapobj.setCenter({lat: 0, lng: 0});
      });
      $scope.categoriesbox = false;
      $scope.checkinfrequency = "Count";
      $scope.freqtext = "";
      $scope.freqclass = "";
      $scope.inputcontainerHeight = { 'height': "5rem" };
      $('[data-toggle="popover"]').popover({
        placement:'right',
        html:true
      });
      $('[data-toggle="popover"]').mouseover(function() {
            $(this).popover('show');
        });
        $('[data-toggle="popover"]').mouseleave(function() {
            $(this).popover('hide');
      });
      $timeout(function(){
        var topHeight = $('#header').outerHeight() + 15;
        $('div[title="Zoom in"]').parents('.gmnoprint').addClass('zoomSet');
      },3000);
  };

  $scope.opencheckin = function(event,details){
   $window.open('https://'+details,'_blank');
  };

  $scope.changeCategory = function(sub){
    //sub.value = (sub.value==true ? false : true);
    $timeout(function(){
      $scope.showcategory(sub.name);
    },300);
  }

  $scope.showwindow = function(e,data,visible){
    for(var i=0;i<infowindowarray.length;i++){
      if(infowindowarray[i][1]==data[1] && infowindowarray[i][2]==data[2]){
        visible = false;
      }
    }
   if(visible){
      infowindow = new google.maps.InfoWindow();
      infowindow.setContent('<table id="infowindow"><tr><td>' + '<img src="'+ data[6] +'">' + '</td>' + '<td>' + '<b>'+ data[8] + ' says ' +'</b>' + data[0] + '<br><b>Place : </b>' + data[7] + '<br><tr><a href="https://'+data[5]+'"'+'target="'+'_blank'+'">Visit this CheckIn</a></tr></td></tr>'+'</table>');
      var center = helper.getCenter($scope.mapobj.getZoom(), data);
      infowindow.setPosition(center);
      infowindow.setZIndex(2);
      infowindow.open($scope.mapobj);
      var current_date = new Date().getTime()/1000;<commit_msg>Fix the zoom-in button issue<commit_after>var myApp = angular.module('myApp', ['elasticsearch','ngMap']);

myApp.controller('viewcontroller',function ($scope, dataClient, esFactory, $interval, $window, $document, helper, $timeout) {

  var places = [],
      renderarray = [],
      categoryarray = [],
      streamedCheckin = [],
      searchedCheckinarray = [],
      draggedCheckin = [],
      infowindowarray= [],
      citysearched,
      index = 0,
      current_date = new Date().getTime()/1000;
      geocoder = new google.maps.Geocoder(),           //variable for geocoding
      infowindow = new google.maps.InfoWindow();      //variable for map infowindow

  $scope.activeContainer = '';


  $scope.init = function(){
      $scope.$on('mapInitialized', function(event, map) {
        $scope.mapobj = map;
        $scope.mapobj.setZoom(3);
        $scope.mapobj.setOptions({ minZoom: 2, maxZoom: 15 });
        $scope.mapobj.setCenter({lat: 0, lng: 0});
      });
      $scope.categoriesbox = false;
      $scope.checkinfrequency = "Count";
      $scope.freqtext = "";
      $scope.freqclass = "";
      $scope.inputcontainerHeight = { 'height': "5rem" };
      $('[data-toggle="popover"]').popover({
        placement:'right',
        html:true
      });
      $('[data-toggle="popover"]').mouseover(function() {
            $(this).popover('show');
        });
        $('[data-toggle="popover"]').mouseleave(function() {
            $(this).popover('hide');
      });
      $timeout(function(){
        $('div[title="Zoom in"]').closest('.gmnoprint').closest('.gmnoprint').addClass('zoomSet');
      },3000);
  };

  $scope.opencheckin = function(event,details){
   $window.open('https://'+details,'_blank');
  };

  $scope.changeCategory = function(sub){
    //sub.value = (sub.value==true ? false : true);
    $timeout(function(){
      $scope.showcategory(sub.name);
    },300);
  }

  $scope.showwindow = function(e,data,visible){
    for(var i=0;i<infowindowarray.length;i++){
      if(infowindowarray[i][1]==data[1] && infowindowarray[i][2]==data[2]){
        visible = false;
      }
    }
   if(visible){
      infowindow = new google.maps.InfoWindow();
      infowindow.setContent('<table id="infowindow"><tr><td>' + '<img src="'+ data[6] +'">' + '</td>' + '<td>' + '<b>'+ data[8] + ' says ' +'</b>' + data[0] + '<br><b>Place : </b>' + data[7] + '<br><tr><a href="https://'+data[5]+'"'+'target="'+'_blank'+'">Visit this CheckIn</a></tr></td></tr>'+'</table>');
      var center = helper.getCenter($scope.mapobj.getZoom(), data);
      infowindow.setPosition(center);
      infowindow.setZIndex(2);
      infowindow.open($scope.mapobj);
      var current_date = new Date().getTime()/1000;
{'fraction_non_alphanumeric': 0.21018756895917617, 'fraction_numerical': 0.012872379551305628, 'mean_word_length': 3.1235784685367705, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 41, 'https://': 4, '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': '6922913', 'n_tokens_mistral': 1814, 'n_tokens_neox': 1768, 'n_words': 271}