<commit_before>import React from 'react';
import {Link} from 'react-router';
import {adventures} from '../../../../data/filters';

const Sidebar = props => {
  const {adventure} = props;

  const listAdventures = () =>{
    return (
      adventures.map((a, index) =>
        <li key={index}>
          <Link to={`/adventures/${a.url}/overview`}
                className={`${a.url} ${adventure === a.url && 'active'}`}>
            <span className={`hs-icon icon-${a.url}`}></span>
            <p>{a.name}</p>
          </Link>
        </li>
      )
    )
  };

  return (
      <div className="sidebar">
        <h3 className="filter-header">Adventures</h3>
        <ul className="sidebar-icons">
          {listAdventures()}
        </ul>
      </div>
  );
};

export default Sidebar;<commit_msg>Added proptypes to Adventures sidebar<commit_after>import React from 'react';
import {Link} from 'react-router';
import {adventures} from '../../../../data/filters';

const Sidebar = props => {
  const {adventure} = props;

  const listAdventures = () =>{
    return (
      adventures.map((a, index) =>
        <li key={index}>
          <Link to={`/adventures/${a.url}/overview`}
                className={`${a.url} ${adventure === a.url && 'active'}`}>
            <span className={`hs-icon icon-${a.url}`}></span>
            <p>{a.name}</p>
          </Link>
        </li>
      )
    )
  };

  return (
      <div className="sidebar">
        <h3 className="filter-header">Adventures</h3>
        <ul className="sidebar-icons">
          {listAdventures()}
        </ul>
      </div>
  );
};

Sidebar.propTypes = {
  adventure: React.PropTypes.string
};

export default Sidebar;
{'fraction_non_alphanumeric': 0.19596199524940616, 'fraction_numerical': 0.0023752969121140144, 'mean_word_length': 2.1852551984877127, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 37, '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': '6957940', 'n_tokens_mistral': 552, 'n_tokens_neox': 555, 'n_words': 106}