<commit_before>/**
 * External dependencies
 */
import { storiesOf } from '@storybook/react';
import { set } from 'lodash';

/**
 * Internal dependencies
 */
import UserInputApp from '../assets/js/components/user-input/UserInputApp';
import { WithTestRegistry, createTestRegistry } from '../tests/js/utils';

storiesOf( 'User Input', module )
	.add( 'User Input Page', () => {
		// Set the featureFlag.
		set( global, 'featureFlags.widgets.userInput.enabled', true );
		return (
			<WithTestRegistry callback={ createTestRegistry }>
				<UserInputApp />
			</WithTestRegistry>
		);
	} )
	.add( 'No Access', () => {
		// Set the featureFlag.
		set( global, 'featureFlags.widgets.userInput.enabled', false );
		return (
			<WithTestRegistry callback={ createTestRegistry }>
				<UserInputApp />
			</WithTestRegistry>
		);
	} );<commit_msg>Set the featureFlag without using lodash.<commit_after>/**
 * External dependencies
 */
import { storiesOf } from '@storybook/react';

/**
 * Internal dependencies
 */
import UserInputApp from '../assets/js/components/user-input/UserInputApp';
import { WithTestRegistry, createTestRegistry } from '../tests/js/utils';

storiesOf( 'User Input', module )
	.add( 'UserInputApp', () => {
		// Set the featureFlag.
		global.featureFlags = { widgets: { userInput: { enabled: true } } };
		return (
			<WithTestRegistry callback={ createTestRegistry }>
				<UserInputApp />
			</WithTestRegistry>
		);
	} );
{'fraction_non_alphanumeric': 0.1564673157162726, 'fraction_numerical': 0.0, 'mean_word_length': 3.8614864864864864, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 15, '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': '2242846', 'n_tokens_mistral': 470, 'n_tokens_neox': 431, 'n_words': 102}