<commit_before>{% load i18n sekizai_tags %}

{% addtoblock "js" %}
  <script type="text/javascript" src="https://maps-api-ssl.google.com/maps/api/js?v=3&amp;sensor=true"></script>
{% endaddtoblock %}

{% addtoblock "js" %}
  <script type="text/javascript">
    (function () {
      // save settings form plugin
      var container = 'google-map-{{ object.pk }}';
      var latlng = new google.maps.LatLng(46.94708, 7.445975); // default to switzerland

      var title = "{{ object.get_title }}";
      var address = "{{ object.address }}, {{ object.zipcode }} {{ object.city }}";

      var options = {
        zoom: {{ object.zoom }},
        mapTypeId: google.maps.MapTypeId.ROADMAP, /* ROADMAP, SATELLITE, HYBRID or TERRAIN */
        scrollwheel: {{ object.scrollwheel|lower }},
        disableDoubleClickZoom: {% if object.double_click_zoom %}false{% else %}true{% endif %},
        draggable: {{ object.draggable|lower}},
        keyboardShortcuts: {{ object.keyboard_shortcuts|lower}},
        panControl: {{ object.pan_control|lower}},
        zoomControl: {{ object.zoom_control|lower}},
        streetViewControl: {{ object.street_view_control|lower}},
      };

      {% if object.get_lat_lng %}
        // load latlng from given lat lng settings
        latlng = new google.maps.LatLng({{ object.get_lat_lng|join:", " }});
        initGoogleMaps(latlng);
      {% else %}
        // load latlng from given address
        var geocoder = new google.maps.Geocoder();
          geocoder.geocode({'address': address}, function (results, status) {
            // check if address can be found if not show default (var latlng)
            if(status == google.maps.GeocoderStatus.OK) latlng = results[0].geometry.location;<commit_msg>Fix JS error. Extra comma in option block<commit_after>{% load i18n sekizai_tags %}

{% addtoblock "js" %}
  <script type="text/javascript" src="https://maps-api-ssl.google.com/maps/api/js?v=3&amp;sensor=true"></script>
{% endaddtoblock %}

{% addtoblock "js" %}
  <script type="text/javascript">
    (function () {
      // save settings form plugin
      var container = 'google-map-{{ object.pk }}';
      var latlng = new google.maps.LatLng(46.94708, 7.445975); // default to switzerland

      var title = "{{ object.get_title }}";
      var address = "{{ object.address }}, {{ object.zipcode }} {{ object.city }}";

      var options = {
        zoom: {{ object.zoom }},
        mapTypeId: google.maps.MapTypeId.ROADMAP, /* ROADMAP, SATELLITE, HYBRID or TERRAIN */
        scrollwheel: {{ object.scrollwheel|lower }},
        disableDoubleClickZoom: {% if object.double_click_zoom %}false{% else %}true{% endif %},
        draggable: {{ object.draggable|lower}},
        keyboardShortcuts: {{ object.keyboard_shortcuts|lower}},
        panControl: {{ object.pan_control|lower}},
        zoomControl: {{ object.zoom_control|lower}},
        streetViewControl: {{ object.street_view_control|lower}}
      };

      {% if object.get_lat_lng %}
        // load latlng from given lat lng settings
        latlng = new google.maps.LatLng({{ object.get_lat_lng|join:", " }});
        initGoogleMaps(latlng);
      {% else %}
        // load latlng from given address
        var geocoder = new google.maps.Geocoder();
          geocoder.geocode({'address': address}, function (results, status) {
            // check if address can be found if not show default (var latlng)
            if(status == google.maps.GeocoderStatus.OK) latlng = results[0].geometry.location;
{'fraction_non_alphanumeric': 0.15112631879098945, 'fraction_numerical': 0.010265183917878529, 'mean_word_length': 2.9638418079096045, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '1368291', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1097, 'n_words': 234}