<commit_before>import React from 'react';
import { Polygon as LeafletPolygon } from 'react-leaflet';

export default function MultiPolygon({ searchResult, theme }) {
  const polygonsLatLons = searchResult.geojson.coordinates
    .map(polygonCoords => polygonCoords[0].map(lonlat => L.latLng(lonlat[1], lonlat[0])));

  const color = theme === 'selected' ? 'green' : 'grey';
  const leafletOptions = { fillColor: color, color };
  
  return <div>{polygonsLatLons.map(p => <LeafletPolygon positions={p} {...leafletOptions} />)}</div>;
}

MultiPolygon.propTypes = {
  searchResult: React.PropTypes.any,
  theme: React.PropTypes.oneOf([ 'selected', 'highlighted' ])
};<commit_msg>fix bug: add forgotten key to MultiPolygon rendering<commit_after>import React from 'react';
import { Polygon as LeafletPolygon } from 'react-leaflet';

export default function MultiPolygon({ searchResult, theme }) {
  const polygonsLatLons = searchResult.geojson.coordinates
    .map(polygonCoords => polygonCoords[0].map(lonlat => L.latLng(lonlat[1], lonlat[0])));

  const color = theme === 'selected' ? 'green' : 'grey';
  const leafletOptions = { fillColor: color, color };

  return <div>{polygonsLatLons.map((p, i) => <LeafletPolygon key={i} positions={p} {...leafletOptions} />)}</div>;
}

MultiPolygon.propTypes = {
  searchResult: React.PropTypes.any,
  theme: React.PropTypes.oneOf([ 'selected', 'highlighted' ])
};
{'fraction_non_alphanumeric': 0.15763195435092725, 'fraction_numerical': 0.0042796005706134095, 'mean_word_length': 5.435779816513762, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '2548989', 'n_tokens_mistral': 473, 'n_tokens_neox': 459, 'n_words': 103}