<commit_before><div id="xmap">
</div>

<div id="formControl" class="leaflet-control-layers leaflet-control hide">
  <h1 class="text-center">Comments</h1>
  <p>
    <textarea id="comments" class="form-control" rows="10" readonly="readonly"><%= @map_note.comment %></textarea>
  </p>

  <p class="buttons">
    <button class="pull-left btn btn-default hideComments">Close Comments</button>
  </p>
</div>

<script>
  window.features = <%= raw @map_note.feature.to_json %>;
</script><commit_msg>Add extra parsing step for safety<commit_after><div id="xmap">
</div>

<div id="formControl" class="leaflet-control-layers leaflet-control hide">
  <h1 class="text-center">Comments</h1>
  <p>
    <textarea id="comments" class="form-control" rows="10" readonly="readonly"><%= @map_note.comment %></textarea>
  </p>

  <p class="buttons">
    <button class="pull-left btn btn-default hideComments">Close Comments</button>
  </p>
</div>

<script>
  window.features = JSON.parse(<%= raw @map_note.feature.to_json.to_json %>);
</script>
{'fraction_non_alphanumeric': 0.19569471624266144, 'fraction_numerical': 0.007827788649706457, 'mean_word_length': 5.237804878048781, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '3082755', 'n_tokens_mistral': 369, 'n_tokens_neox': 346, 'n_words': 73}