<commit_before>import React, { Component } from 'react'
import DropdownButton from '../DropdownButton'
import { filters } from '../../settings/options'


class FilterButton extends Component {
  render() {
    var btn = <button className='filter'>Select Map Features</button>
    return (
      <DropdownButton
        options={filters}
        btnElement={btn}
        multiple={true}
        selectedKeys={this.props.enabledFilters}
        onSelectionChange={::this.handleDropdownChanges}
      />
    )
  }
<commit_msg>only allow one map feature type to be selected at a time<commit_after>import React, { Component } from 'react'
import DropdownButton from '../DropdownButton'
import { filters } from '../../settings/options'


class FilterButton extends Component {
  render() {
    var btn = <button className='filter' title='Select Map Features'>{filters.find(filter => filter.id === this.props.enabledFilters[0]).description}&ensp;▾</button>
    return (
      <DropdownButton
        options={filters}
        btnElement={btn}
        multiple={false}
        selectedKeys={this.props.enabledFilters}
        onSelectionChange={::this.handleDropdownChanges}
      />
    )
  }

{'fraction_non_alphanumeric': 0.12478920741989882, 'fraction_numerical': 0.0008431703204047217, 'mean_word_length': 3.300724637681159, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '6976129', 'n_tokens_mistral': 315, 'n_tokens_neox': 316, 'n_words': 76}