<commit_before>import React from 'react';
import { storiesOf } from '@storybook/react';
import { select, text, boolean } from '@storybook/addon-knobs';
import OptionsHelper from '../../utils/helpers/options-helper';
import Portrait from './portrait';
import { notes, info } from './documentation';

storiesOf('Portrait', module).add(
  'default',
  () => {
    const alt = text('alt', Portrait.defaultProps.alt);
    const darkBackground = boolean('darkBackground', Portrait.defaultProps.darkBackground);
    const source = select('source', ['src', 'gravatar'], 'src');
    const gravatar = source === 'gravatar' ? text('gravatar') : undefined;
    const src = source === 'src' ? text('src') : undefined;
    const initials = text('initials', 'AZ');
    const shape = select('shape', OptionsHelper.shapesVaried, Portrait.defaultProps.shape);
    const size = select('size', OptionsHelper.sizesFull, Portrait.defaultProps.size);

    return (
      <Portrait
        alt={ alt }
        darkBackground={ darkBackground }
        gravatar={ gravatar }
        initials={ initials }<commit_msg>(FE-1412) portrait.stories.js: update import of portrait.component.js<commit_after>import React from 'react';
import { storiesOf } from '@storybook/react';
import { select, text, boolean } from '@storybook/addon-knobs';
import OptionsHelper from '../../utils/helpers/options-helper';
import Portrait from './portrait.component';
import { notes, info } from './documentation';

storiesOf('Portrait', module).add(
  'default',
  () => {
    const alt = text('alt', Portrait.defaultProps.alt);
    const darkBackground = boolean('darkBackground', Portrait.defaultProps.darkBackground);
    const source = select('source', ['src', 'gravatar'], 'src');
    const gravatar = source === 'gravatar' ? text('gravatar') : undefined;
    const src = source === 'src' ? text('src') : undefined;
    const initials = text('initials', 'AZ');
    const shape = select('shape', OptionsHelper.shapesVaried, Portrait.defaultProps.shape);
    const size = select('size', OptionsHelper.sizesFull, Portrait.defaultProps.size);

    return (
      <Portrait
        alt={ alt }
        darkBackground={ darkBackground }
        gravatar={ gravatar }
        initials={ initials }
{'fraction_non_alphanumeric': 0.1543594306049822, 'fraction_numerical': 0.0017793594306049821, 'mean_word_length': 4.111363636363636, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2001463', 'n_tokens_mistral': 632, 'n_tokens_neox': 629, 'n_words': 165}