<commit_before>import React from 'react';

import { maxZoom } from '../constants';

function flyAndOpen(marker, event) {
  const { map } = marker;
  map.once('moveend zoomend', (_) => marker.openPopup());
  map.flyTo(marker._latlng, maxZoom);
}

function Statistics({ statistics }) {
  return (
    <>
      {Object.keys(statistics).length == 0 && (
        <p>
          No statistics to show. Click on <i>Show nodes</i> to get some
          statistics.
        </p>
      )}
      <table className="table table-striped">
        <tbody>
          {Object.keys(statistics).map((key) => (
            <tr key={key}>
              <th scope="row">{statistics[key].label}</th>
              <td>
                <button
                  className="btn btn-link p-0"<commit_msg>Update 'No statistics to show' message<commit_after>import React from 'react';

import { maxZoom } from '../constants';

function flyAndOpen(marker, event) {
  const { map } = marker;
  map.once('moveend zoomend', (_) => marker.openPopup());
  map.flyTo(marker._latlng, maxZoom);
}

function Statistics({ statistics }) {
  return (
    <>
      {Object.keys(statistics).length == 0 && (
        <p>
          No statistics to show. Zoom in to get some statistics.
        </p>
      )}
      <table className="table table-striped">
        <tbody>
          {Object.keys(statistics).map((key) => (
            <tr key={key}>
              <th scope="row">{statistics[key].label}</th>
              <td>
                <button
                  className="btn btn-link p-0"
{'fraction_non_alphanumeric': 0.1529032258064516, 'fraction_numerical': 0.0025806451612903226, 'mean_word_length': 2.1207243460764587, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 27, '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': '5810192', 'n_tokens_mistral': 469, 'n_tokens_neox': 463, 'n_words': 108}