<commit_before>import { forwardRef, KeyboardEvent, RefObject, useCallback, useMemo, useRef, useState } from 'react';
import { canonizeEmail } from '@proton/shared/lib/helpers/email';
import { ContactEmail, ContactGroup } from '@proton/shared/lib/interfaces/contacts';
import { Recipient } from '@proton/shared/lib/interfaces';
import { inputToRecipient } from '@proton/shared/lib/mail/recipient';
import { SimpleMap } from '@proton/shared/lib/interfaces/utils';
import { noop } from '@proton/shared/lib/helpers/function';

import InputField, { InputFieldProps } from '../field/InputField';
import Input from '../input/Input';
import { Option } from '../../option';
import { Marks } from '../../text';
import { useAutocomplete, useAutocompleteFilter, AutocompleteList } from '../../autocomplete';
import {
    getRecipientFromAutocompleteItem,
    AddressesAutocompleteItem,
    getContactsAutocompleteItems,
    getContactGroupsAutocompleteItems,
    getNumberOfMembersText,
    GroupsWithContactsMap,
} from '../../addressesAutomplete/helper';
import Icon from '../../icon/Icon';
import { useCombinedRefs } from '../../../hooks';

interface Props extends Omit<InputFieldProps<typeof Input>, 'value' | 'onChange'> {
    id: string;
    onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
    onAddRecipients: (recipients: Recipient[]) => void;
    recipients: Recipient[];
    anchorRef: RefObject<HTMLElement>;
    contactEmails?: ContactEmail[];
    contactGroups?: ContactGroup[];
    contactEmailsMap?: SimpleMap<ContactEmail>;
    groupsWithContactsMap?: GroupsWithContactsMap;
    hasEmailPasting?: boolean;
    hasAddOnBlur?: boolean;<commit_msg>Fix bad import of noop<commit_after>import { forwardRef, KeyboardEvent, RefObject, useCallback, useMemo, useRef, useState } from 'react';
import { canonizeEmail } from '@proton/shared/lib/helpers/email';
import { ContactEmail, ContactGroup } from '@proton/shared/lib/interfaces/contacts';
import { Recipient } from '@proton/shared/lib/interfaces';
import { inputToRecipient } from '@proton/shared/lib/mail/recipient';
import { SimpleMap } from '@proton/shared/lib/interfaces/utils';
import noop from '@proton/util/noop';

import InputField, { InputFieldProps } from '../field/InputField';
import Input from '../input/Input';
import { Option } from '../../option';
import { Marks } from '../../text';
import { useAutocomplete, useAutocompleteFilter, AutocompleteList } from '../../autocomplete';
import {
    getRecipientFromAutocompleteItem,
    AddressesAutocompleteItem,
    getContactsAutocompleteItems,
    getContactGroupsAutocompleteItems,
    getNumberOfMembersText,
    GroupsWithContactsMap,
} from '../../addressesAutomplete/helper';
import Icon from '../../icon/Icon';
import { useCombinedRefs } from '../../../hooks';

interface Props extends Omit<InputFieldProps<typeof Input>, 'value' | 'onChange'> {
    id: string;
    onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
    onAddRecipients: (recipients: Recipient[]) => void;
    recipients: Recipient[];
    anchorRef: RefObject<HTMLElement>;
    contactEmails?: ContactEmail[];
    contactGroups?: ContactGroup[];
    contactEmailsMap?: SimpleMap<ContactEmail>;
    groupsWithContactsMap?: GroupsWithContactsMap;
    hasEmailPasting?: boolean;
    hasAddOnBlur?: boolean;
{'fraction_non_alphanumeric': 0.13918305597579425, 'fraction_numerical': 0.0, 'mean_word_length': 4.914132379248659, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '2146938', 'n_tokens_mistral': 969, 'n_tokens_neox': 961, 'n_words': 219}