<commit_before>import React from 'react'
import {storiesOf} from '@storybook/react'
import {withKnobs} from '@storybook/addon-knobs'
import {injectIntl, intlShape} from 'react-intl'

import {ResourceSchedulerApp} from './main'
import Readme from '../README.md'

storiesOf('Apps|Resource Scheduler', module)
  .addDecorator(withKnobs)
  .add(
    'Resource Scheduler',
    () => <A/>,
    {info: {disable: true}, notes: Readme}

  )

class ResourceSchedulerWrapper extends React.Component {
  constructor(props) {
    super(props)
    this.childKey = 0
  }
  render() {
    this.childKey++
    return (
      <div>
        <ResourceSchedulerApp
          key={this.childKey}
          locale={this.props.intl.locale}
        />
      </div>
    )
  }
}

ResourceSchedulerWrapper.propTypes = {
  intl: intlShape
}

const A = injectIntl(ResourceSchedulerWrapper)<commit_msg>refactor: improve app stories<commit_after>import React from 'react'
import {storiesOf} from '@storybook/react'
import {withKnobs} from '@storybook/addon-knobs'
import {injectIntl, intlShape} from 'react-intl'

import {ResourceSchedulerApp} from './main'
import Readme from '../README.md'

storiesOf('Apps|Resource Scheduler', module)
  .addDecorator(withKnobs)
  .add(
    'Resource Scheduler',
    () => <ResourceSchedulerStoryIntl/>,
    {info: {disable: true}, notes: Readme}

  )

class ResourceSchedulerStory extends React.Component {
  constructor(props) {
    super(props)
    this.childKey = 0
  }
  render() {
    this.childKey++
    return (
      <div>
        <ResourceSchedulerApp
          key={this.childKey}
          locale={this.props.intl.locale}
        />
      </div>
    )
  }
}

ResourceSchedulerStory.propTypes = {
  intl: intlShape
}

const ResourceSchedulerStoryIntl = injectIntl(ResourceSchedulerStory)
{'fraction_non_alphanumeric': 0.12597114317425084, 'fraction_numerical': 0.0011098779134295228, 'mean_word_length': 3.4408866995073892, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1691581', 'n_tokens_mistral': 609, 'n_tokens_neox': 594, 'n_words': 122}