<commit_before>import {List} from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';

import Select from '~/react/components/tetheredSelect';
import FormatronPropTypes from '~/react/propTypes';
import EnumType from '~/types/data/enum';
import DropDownType from '~/types/view/data/dropDown';

import {withFormLabel, withStaticLabel} from '../formHelpers';
import ReactRenderer from '../reactRenderer';
import {TableDropDownFilter} from '../tableHelpers';
import {withDataRenderer, withDisplayRenderer} from './';

const DropDownFilter = ({viewType, renderData}) => (
  <TableDropDownFilter
    renderData={renderData}
    filterOptions={viewType.getFilterOptions(renderData.dataType)}
    options={viewType.getOptions(renderData, undefined, renderData.dataType).toJS()}
  />
);

class BaseDropDown extends React.Component {
  createLoadingOptions(value) {
    return [{
      value,<commit_msg>Exported BaseDropDown renderer.<commit_after>import {List} from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';

import Select from '~/react/components/tetheredSelect';
import FormatronPropTypes from '~/react/propTypes';
import EnumType from '~/types/data/enum';
import DropDownType from '~/types/view/data/dropDown';

import {withFormLabel, withStaticLabel} from '../formHelpers';
import ReactRenderer from '../reactRenderer';
import {TableDropDownFilter} from '../tableHelpers';
import {withDataRenderer, withDisplayRenderer} from './';

const DropDownFilter = ({viewType, renderData}) => (
  <TableDropDownFilter
    renderData={renderData}
    filterOptions={viewType.getFilterOptions(renderData.dataType)}
    options={viewType.getOptions(renderData, undefined, renderData.dataType).toJS()}
  />
);

export class BaseDropDown extends React.Component {
  createLoadingOptions(value) {
    return [{
      value,
{'fraction_non_alphanumeric': 0.12560646900269543, 'fraction_numerical': 0.0, 'mean_word_length': 6.003773584905661, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4538739', 'n_tokens_mistral': 522, 'n_tokens_neox': 525, 'n_words': 118}