<commit_before>/**
* By <NAME>
* @Date:   2016-08-16T19:55:00-04:00
* @Email:  <EMAIL>
* @Last modified time: 2016-08-16T20:00:28-04:00
* @License: All rights reserved.

 This source code is licensed under the MIT license found in the
 LICENSE file in the root directory of this source tree.
*/

import React, { PropTypes, Component } from 'react';
import styles from './index.module.scss';
import cssModules from 'react-css-modules';
import Menu from 'grommet/components/Menu';
import Filter from 'grommet/components/icons/base/Filter';
import Anchor from 'grommet/components/Anchor';
import uuid from 'node-uuid';

const itemsAreEqual = (item, value) =>
  item === value || item === value.split(' ')[0];

const randomId = () => uuid.v1();

const parseLabel = (label) =>
  label.toLowerCase().split(' ').join('-');

class FilterMenu extends Component {
  constructor() {
    super();
    this.setDOMIds = this.setDOMIds.bind(this);
  }
  componentDidMount() {

  }
  setDOMIds() {
    let menuTitles = document.querySelector('#menu-down-id');

  }
  render() {
    const {
      menuItems,
      onSelectItem,
      label,
      selectedItem,
    } = this.props;
    return (
      <Menu
        icon={
          <Filter<commit_msg>Chore: update filtermenu component, removing menu id stuff<commit_after>/**
* By <NAME>
* @Date:   2016-08-16T19:55:00-04:00
* @Email:  <EMAIL>
* @Last modified time: 2016-08-16T20:00:28-04:00
* @License: All rights reserved.

 This source code is licensed under the MIT license found in the
 LICENSE file in the root directory of this source tree.
*/

import React, { PropTypes, Component } from 'react';
import styles from './index.module.scss';
import cssModules from 'react-css-modules';
import Menu from 'grommet/components/Menu';
import Filter from 'grommet/components/icons/base/Filter';
import Anchor from 'grommet/components/Anchor';
import uuid from 'node-uuid';

const itemsAreEqual = (item, value) =>
  item === value || item === value.split(' ')[0];

const randomId = () => uuid.v1();

const parseLabel = (label) =>
  label.toLowerCase().split(' ').join('-');

class FilterMenu extends Component {
  render() {
    const {
      menuItems,
      onSelectItem,
      label,
      selectedItem,
    } = this.props;
    return (
      <Menu
        icon={
          <Filter
{'fraction_non_alphanumeric': 0.14248704663212436, 'fraction_numerical': 0.03281519861830743, 'mean_word_length': 3.464354527938343, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5699649', 'n_tokens_mistral': 770, 'n_tokens_neox': 736, 'n_words': 213}