<commit_before><div id="event-map" name="<%= @event.lat %>">

</div>

<div class="container">
  <h4>This is <%= @user.username %>'s Event</h4>
  <h5><a href="/direct_conversation">Send <%= @user.username %> a private message</a></h5>
  <div id='event-lng' name="<%= @event.lng %>">


  </div>

  <%= render partial: "event_show", locals: {event: @event} %>


</div>

  <script type="text/javascript">

  var map

 var lat = $("#event-map").attr('name');
 var lng = $("#event-lng").attr('name');
  lat = parseFloat(lat);
  lng = parseFloat(lng);

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

var marker = new google.maps.Marker({
    map: map,
    position: {lat: lat, lng: lng},
  });
}

     </script>
     <script async defer
       src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCxHSsHvEIld84HHYj5nvetfW6cV7gYNAs&callback=initMap">
     </script>
<commit_msg>replace api key in events/show page<commit_after><div id="event-map" name="<%= @event.lat %>">

</div>

<div class="container">
  <h4>This is <%= @user.username %>'s Event</h4>
  <h5><a href="/direct_conversation">Send <%= @user.username %> a private message</a></h5>
  <div id='event-lng' name="<%= @event.lng %>">


  </div>

  <%= render partial: "event_show", locals: {event: @event} %>


</div>

  <script type="text/javascript">

  var map

 var lat = $("#event-map").attr('name');
 var lng = $("#event-lng").attr('name');
  lat = parseFloat(lat);
  lng = parseFloat(lng);

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

var marker = new google.maps.Marker({
    map: map,
    position: {lat: lat, lng: lng},
  });
}

     </script>
     <script async defer
       src="https://maps.googleapis.com/maps/api/js?key=<%= Rails.application.secrets.google_api_key %>&callback=initMap">
     </script>

{'fraction_non_alphanumeric': 0.21414038657171922, 'fraction_numerical': 0.008646998982706003, 'mean_word_length': 3.751207729468599, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 46, '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': '2860741', 'n_tokens_mistral': 771, 'n_tokens_neox': 720, 'n_words': 153}