<commit_before>import React, {Component, PropTypes} from 'react'
import {Link} from 'react-router'
import classnames from 'classnames'
import OnClickOutside from 'shared/components/OnClickOutside'
import FancyScrollbar from 'shared/components/FancyScrollbar'
import {
  DROPDOWN_MENU_MAX_HEIGHT,
  DROPDOWN_MENU_ITEM_THRESHOLD,
} from 'shared/constants/index'

// State for index of highlighted item
// If there are filtered items, set highlighted item index to 0, otherwise set to null
// Arrow keys will increment or decrement the highlighted item index (without going out of bounds)
// Hitting enter will pass the highlighted item to this.props.onChoose
// Hitting escape will reset highlightedItemIndex to null

class Dropdown extends Component {
  constructor(props) {
    super(props)<commit_msg>Remove comments<commit_after>import React, {Component, PropTypes} from 'react'
import {Link} from 'react-router'
import classnames from 'classnames'
import OnClickOutside from 'shared/components/OnClickOutside'
import FancyScrollbar from 'shared/components/FancyScrollbar'
import {
  DROPDOWN_MENU_MAX_HEIGHT,
  DROPDOWN_MENU_ITEM_THRESHOLD,
} from 'shared/constants/index'

class Dropdown extends Component {
  constructor(props) {
    super(props)
{'fraction_non_alphanumeric': 0.07354116706634692, 'fraction_numerical': 0.0007993605115907274, 'mean_word_length': 5.955555555555556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5200008', 'n_tokens_mistral': 362, 'n_tokens_neox': 353, 'n_words': 118}