<commit_before>'use strict';

var markers = [];
var initialLocation;
var car;
var markerUrls = '';
var map;

function initMap() {
  map = new google.maps.Map(document.getElementById('map'), {
    center: {lat: -34.397, lng: 150.644},
    zoom: 21,
  });

  map.addListener('click', function(e) {
    placeMarker(e.latLng, map);
  });

  $('#carIcons img').on('click', function(event){
    car = event.target.src;
    console.log(event.target.src);
  })
  function placeMarker(latLng, map) {
    var marker = new google.maps.Marker({
      position: latLng,
      map: map,
      icon: car,
      animation: google.maps.Animation.DROP
    });
    markers.push({lat: latLng.lat().toFixed(6), lng: latLng.lng().toFixed(6), marker: marker, path: car});
  }
  $('#removeMarker').on('click', function(){
    markers[markers.length - 1].marker.setMap(null);
    markers.pop()
  })
}

$('#myLocationButton').on('click', myLocation);

function myLocation(){
  if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(function(position) {
      var pos = {
        lat: position.coords.latitude,
        lng: position.coords.longitude
      };
<commit_msg>made selected icon have blue border<commit_after>'use strict';

var markers = [];
var initialLocation;
var car;
var markerUrls = '';
var map;

function initMap() {
  map = new google.maps.Map(document.getElementById('map'), {
    center: {lat: -34.397, lng: 150.644},
    zoom: 21,
  });

  map.addListener('click', function(e) {
    placeMarker(e.latLng, map);
  });

  $('#carIcons img').on('click', function(event){
    car = event.target.src;
    $('#carIcons img').css('border', 'none');
    $(event.target).css('border', 'thin blue solid');
  })
  function placeMarker(latLng, map) {
    var marker = new google.maps.Marker({
      position: latLng,
      map: map,
      icon: car,
      animation: google.maps.Animation.DROP
    });
    markers.push({lat: latLng.lat().toFixed(6), lng: latLng.lng().toFixed(6), marker: marker, path: car});
  }
  $('#removeMarker').on('click', function(){
    markers[markers.length - 1].marker.setMap(null);
    markers.pop()
  })
}

$('#myLocationButton').on('click', myLocation);

function myLocation(){
  if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(function(position) {
      var pos = {
        lat: position.coords.latitude,
        lng: position.coords.longitude
      };

{'fraction_non_alphanumeric': 0.17654372150849565, 'fraction_numerical': 0.01326150020721094, 'mean_word_length': 3.486988847583643, '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': '965690', 'n_tokens_mistral': 840, 'n_tokens_neox': 819, 'n_words': 161}