<commit_before>(function () {
  'use strict';

  angular.module('map')
    .directive('map', mapDirective);

  /**
   * Map Directive
   */
  mapDirective.$inject = ['geoLocationService', 'cfpLoadingBar'];
  function mapDirective (geoLocationService, cfpLoadingBar) {
    var directive = {
      link: link,
      scope: {
        onCreate: '&',
        bounds: '=boundsPosition'
      },
      restrict: 'E'
    };

    return directive;

    function link ($scope, element) {
      geoLocationService.getPosition().then(function (position) {
        google.maps.event.addDomListener(window, 'load', createMap(position));
      });

      function createMap (position) {
        var latLng = new google.maps.LatLng(position.latitude, position.longitude);

        var mapOptions = {
          center: latLng,
          zoom: 16,
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          scrollwheel: false
        };

        var gMap = new google.maps.Map(element[0], mapOptions);
        new google.maps.Marker({
          icon: 'http://maps.google.com/mapfiles/ms/icons/blue-dot.png',
          position: latLng,
          map: gMap
        });

        $scope.onCreate({
          map: gMap
        });
      }
    }
  }
})();
<commit_msg>Replace http:// to //<commit_after>(function () {
  'use strict';

  angular.module('map')
    .directive('map', mapDirective);

  /**
   * Map Directive
   */
  mapDirective.$inject = ['geoLocationService', 'cfpLoadingBar'];
  function mapDirective (geoLocationService, cfpLoadingBar) {
    var directive = {
      link: link,
      scope: {
        onCreate: '&',
        bounds: '=boundsPosition'
      },
      restrict: 'E'
    };

    return directive;

    function link ($scope, element) {
      geoLocationService.getPosition().then(function (position) {
        google.maps.event.addDomListener(window, 'load', createMap(position));
      });

      function createMap (position) {
        var latLng = new google.maps.LatLng(position.latitude, position.longitude);

        var mapOptions = {
          center: latLng,
          zoom: 16,
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          scrollwheel: false
        };

        var gMap = new google.maps.Map(element[0], mapOptions);
        new google.maps.Marker({
          icon: '//maps.google.com/mapfiles/ms/icons/blue-dot.png',
          position: latLng,
          map: gMap
        });

        $scope.onCreate({
          map: gMap
        });
      }
    }
  }
})();

{'fraction_non_alphanumeric': 0.13765506202480993, 'fraction_numerical': 0.0024009603841536613, 'mean_word_length': 2.125, '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': '7431201', 'n_tokens_mistral': 776, 'n_tokens_neox': 751, 'n_words': 143}