<commit_before>import React from 'react';
import MenuItem from 'material-ui/MenuItem';
import heroes from 'dotaconstants/build/heroes.json';
import items from 'dotaconstants/build/items.json';
import strings from '../../lang';
import { getTimeRange } from './ScenariosColumns';

export default function getFormFieldData(metadata) {
  const {
    teamScenariosQueryParams, itemCost, gameDurationBucket, timings,
  } = metadata;
  return {
    heroList: Object.keys(heroes).map(id => ({
      text: heroes[id] && heroes[id].localized_name,
      value: (
        <MenuItem
          primaryText={heroes[id] && heroes[id].localized_name}
          leftIcon={<img src={`${process.env.REACT_APP_API_HOST}${heroes[id] && heroes[id].icon}`} alt="" />}
        />
      ),
      altValue: id,
    }))
      .sort((a, b) => a.text.localeCompare(b.text)),

    itemList: Object.keys(items).map(k => [items[k], k]).filter(x => x[0].cost >= itemCost).map(x => ({
      text: x[0].dname,
      value: (
        <MenuItem<commit_msg>remove recipes from item list<commit_after>import React from 'react';
import MenuItem from 'material-ui/MenuItem';
import heroes from 'dotaconstants/build/heroes.json';
import items from 'dotaconstants/build/items.json';
import strings from '../../lang';
import { getTimeRange } from './ScenariosColumns';

export default function getFormFieldData(metadata) {
  const {
    teamScenariosQueryParams, itemCost, gameDurationBucket, timings,
  } = metadata;
  return {
    heroList: Object.keys(heroes).map(id => ({
      text: heroes[id] && heroes[id].localized_name,
      value: (
        <MenuItem
          primaryText={heroes[id] && heroes[id].localized_name}
          leftIcon={<img src={`${process.env.REACT_APP_API_HOST}${heroes[id] && heroes[id].icon}`} alt="" />}
        />
      ),
      altValue: id,
    }))
      .sort((a, b) => a.text.localeCompare(b.text)),

    itemList: Object.keys(items).map(k => [items[k], k]).filter(x => x[0].cost >= itemCost && !x[1].includes('recipe')).map(x => ({
      text: x[0].dname,
      value: (
        <MenuItem
{'fraction_non_alphanumeric': 0.17098943323727187, 'fraction_numerical': 0.0024015369836695487, 'mean_word_length': 3.431914893617021, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, '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': '4141647', 'n_tokens_mistral': 677, 'n_tokens_neox': 677, 'n_words': 130}