<commit_before>import React, { ChangeEvent, useState } from 'react';
import {
    Button,
    Chip,
    TextField,
    Typography,
    styled,
    TextFieldProps,
} from '@mui/material';
import { Add } from '@mui/icons-material';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { ADD_TO_STRATEGY_INPUT_LIST, STRATEGY_INPUT_LIST } from 'utils/testIds';
import StringTruncator from 'component/common/StringTruncator/StringTruncator';
import { IFormErrors } from 'hooks/useFormErrors';

interface IStrategyInputList {
    name: string;
    list: string[];
    setConfig: (field: string, value: string) => void;
    disabled: boolean;
    errors: IFormErrors;
}

const Container = styled('div')(({ theme }) => ({
    display: 'grid',
    gap: theme.spacing(1),
}));

const ChipsList = styled('div')(({ theme }) => ({
    display: 'flex',
    gap: theme.spacing(1),<commit_msg>fix: wrap chips in feature strategy lists (#1221)<commit_after>import React, { ChangeEvent, useState } from 'react';
import {
    Button,
    Chip,
    TextField,
    Typography,
    styled,
    TextFieldProps,
} from '@mui/material';
import { Add } from '@mui/icons-material';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { ADD_TO_STRATEGY_INPUT_LIST, STRATEGY_INPUT_LIST } from 'utils/testIds';
import StringTruncator from 'component/common/StringTruncator/StringTruncator';
import { IFormErrors } from 'hooks/useFormErrors';

interface IStrategyInputList {
    name: string;
    list: string[];
    setConfig: (field: string, value: string) => void;
    disabled: boolean;
    errors: IFormErrors;
}

const Container = styled('div')(({ theme }) => ({
    display: 'grid',
    gap: theme.spacing(1),
}));

const ChipsList = styled('div')(({ theme }) => ({
    display: 'flex',
    gap: theme.spacing(1),
    flexWrap: 'wrap',
{'fraction_non_alphanumeric': 0.13912133891213388, 'fraction_numerical': 0.0041841004184100415, 'mean_word_length': 4.497126436781609, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2563922', 'n_tokens_mistral': 605, 'n_tokens_neox': 592, 'n_words': 144}