<commit_before>$(document).ready(function () {

  var center = new google.maps.LatLng(35.681298, 139.766247);
  
  var mapOptions = {
    zoom: 12,
    center: center
  };

  var map = new google.maps.Map(document.getElementById('map'), mapOptions);
      
  var marker = new google.maps.Marker({
    position: map.getCenter(),
    draggable: true,
    map: map
  });

  var geocoder = new google.maps.Geocoder();

  var circle = new google.maps.Circle({
    strokeColor: '#FF0000',
    strokeOpacity: 0.8,
    strokeWeight: 2,
    fillColor: '#FF0000',
    fillOpacity: 0.35,
    map: map,
    center: center,
    radius: 3000
  });
  
  $("#search").click(function(){
    
    var address = $("#address").val();
    
    geocoder.geocode({ 'address': address }, function (results, status) {
      if (status === google.maps.GeocoderStatus.OK) {
      
        var loc = results[0].geometry.location;
        map.setCenter(loc);
        marker.setPosition(loc);
        circle.setCenter(loc);
      
        $("#latitude").val(loc.lat());
        $("#longitude").val(loc.lng());
      }
    });
  });

});<commit_msg>Set circle to follow the marker<commit_after>$(document).ready(function () {

  var center = new google.maps.LatLng(35.681298, 139.766247);

  var mapOptions = {
    zoom: 12,
    center: center
  };

  var map = new google.maps.Map(document.getElementById('map'), mapOptions);

  var marker = new google.maps.Marker({
    position: map.getCenter(),
    draggable: true,
    map: map
  });
  marker.addListener("drag", function() {
    circle.setCenter(marker.getPosition());
  });

  var geocoder = new google.maps.Geocoder();

  var circle = new google.maps.Circle({
    strokeColor: '#FF0000',
    strokeOpacity: 0.8,
    strokeWeight: 2,
    fillColor: '#FF0000',
    fillOpacity: 0.35,
    map: map,
    center: center,
    radius: 3000
  });

  $("#search").click(function(){

    var address = $("#address").val();

    geocoder.geocode({ 'address': address }, function (results, status) {
      if (status === google.maps.GeocoderStatus.OK) {

        var loc = results[0].geometry.location;
        map.setCenter(loc);
        marker.setPosition(loc);
        circle.setCenter(loc);

        $("#latitude").val(loc.lat());
        $("#longitude").val(loc.lng());
      }
    });
  });

});
{'fraction_non_alphanumeric': 0.17098445595854922, 'fraction_numerical': 0.03281519861830743, 'mean_word_length': 2.749190938511327, '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': '6236332', 'n_tokens_mistral': 816, 'n_tokens_neox': 754, 'n_words': 152}