<commit_before>import React, { PropTypes } from 'react';
import { GeoJSON, Popup } from 'react-leaflet';

const setPathOptions = ({ affordableYou, affordableOther }) => ({
  opacity: affordableOther ? '1' : '0',
  fillOpacity: 0.7,
  fillColor: affordableYou ? '#386598' : '#CFE7F9',
  color: 'black',
});

const Neighborhood = ({ data }) => (
  <GeoJSON data={data} {...setPathOptions(data)} >
    <Popup><div>{data.name}</div></Popup>
  </GeoJSON>
);

Neighborhood.propTypes = {<commit_msg>Note about style in neighborhood component<commit_after>import React, { PropTypes } from 'react';
import { GeoJSON, Popup } from 'react-leaflet';

/**
 * This function is where we can style the geoJson based on data.
 * We have available the properties described here: http://leafletjs.com/reference.html#path-options
 */
const setPathOptions = ({ affordableYou, affordableOther }) => ({
  opacity: affordableOther ? '1' : '0',
  fillOpacity: 0.7,
  fillColor: affordableYou ? '#386598' : '#CFE7F9',
  color: 'black',
});

const Neighborhood = ({ data }) => (
  <GeoJSON data={data} {...setPathOptions(data)} >
    <Popup><div>{data.name}</div></Popup>
  </GeoJSON>
);

Neighborhood.propTypes = {
{'fraction_non_alphanumeric': 0.17424242424242425, 'fraction_numerical': 0.020202020202020204, 'mean_word_length': 4.55607476635514, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '7041970', 'n_tokens_mistral': 400, 'n_tokens_neox': 390, 'n_words': 95}