<commit_before>import React from 'react';
import SpaceTitle from './SpaceTitle';
import Space from '../../containers/Spaces/SpaceContainer';

const propTypes = {
  queryID: React.PropTypes.string,
  query: React.PropTypes.string,
  queryParams: React.PropTypes.object,
  isSelected: React.PropTypes.bool,
  onClick: React.PropTypes.func,
  sounds: React.PropTypes.array,
  currentPositionInMap: React.PropTypes.object,
  onRemoveClick: React.PropTypes.func,
};

function SpaceThumbnail(props) {
  return (
    <li
      className={`space-thumbnail${(props.isSelected) ? ' active' : ''}`}
      onClick={props.onClick}
    >
      <SpaceTitle
        query={props.query}
        queryParams={props.queryParams}
        sounds={props.sounds}
        currentPositionInMap={props.currentPositionInMap}
        isThumbnail
      />
      <svg><Space queryID={props.queryID} isThumbnail /></svg>
      <i<commit_msg>More precise proptypes<commit_after>import React from 'react';
import SpaceTitle from './SpaceTitle';
import Space from '../../containers/Spaces/SpaceContainer';

const propTypes = {
  queryID: React.PropTypes.string,
  query: React.PropTypes.string,
  queryParams: React.PropTypes.object,
  isSelected: React.PropTypes.bool,
  onClick: React.PropTypes.func,
  sounds: React.PropTypes.array,
  currentPositionInMap: React.PropTypes.shape({
    x: React.PropTypes.number,
    y: React.PropTypes.number,
  }),
  onRemoveClick: React.PropTypes.func,
};

function SpaceThumbnail(props) {
  return (
    <li
      className={`space-thumbnail${(props.isSelected) ? ' active' : ''}`}
      onClick={props.onClick}
    >
      <SpaceTitle
        query={props.query}
        queryParams={props.queryParams}
        sounds={props.sounds}
        currentPositionInMap={props.currentPositionInMap}
        isThumbnail
      />
      <svg><Space queryID={props.queryID} isThumbnail /></svg>
      <i
{'fraction_non_alphanumeric': 0.13073273589878756, 'fraction_numerical': 0.0, 'mean_word_length': 3.519047619047619, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '6606276', 'n_tokens_mistral': 586, 'n_tokens_neox': 596, 'n_words': 101}