<commit_before>import React, {PropTypes} from 'react'
import Group from './Group'

const style = {
  background: '#fff',
  borderTop: 'solid 1px #e5e5e5',
  borderRight: 'solid 1px #e5e5e5',
  borderLeft: 'solid 1px #e5e5e5',
  fontSize: '10px',
  lineHeight: '1.2',
  overflow: 'auto'
}
const styleItem = {
  padding: '0.3em',
  borderBottom: 'solid 1px #e5e5e5'
}

export default React.createClass({

  displayName: 'Demo.Controls.Log',

  propTypes: {
    name: PropTypes.string.isRequired,
    items: PropTypes.arrayOf(PropTypes.string).isRequired
  },

  render() {
    const {name, items} = this.props
    return <Group name={name}>
      <div style={style} className="react-demo__log">
        {items.map((x, i) =>
          <div key={i} style={styleItem} className="react-demo__log-item">
            {x}
          </div>
        )}
      </div>
    </Group>
  }
})<commit_msg>if callback called with no arguments show <no arguments> in the log (fixes #18)<commit_after>import React, {PropTypes} from 'react'
import Group from './Group'

const style = {
  background: '#fff',
  borderTop: 'solid 1px #e5e5e5',
  borderRight: 'solid 1px #e5e5e5',
  borderLeft: 'solid 1px #e5e5e5',
  fontSize: '10px',
  lineHeight: '1.2',
  overflow: 'auto'
}
const styleItem = {
  padding: '0.3em',
  borderBottom: 'solid 1px #e5e5e5'
}

export default React.createClass({

  displayName: 'Demo.Controls.Log',

  propTypes: {
    name: PropTypes.string.isRequired,
    items: PropTypes.arrayOf(PropTypes.string).isRequired
  },

  render() {
    const {name, items} = this.props
    return <Group name={name}>
      <div style={style} className="react-demo__log">
        {items.map((x, i) =>
          <div key={i} style={styleItem} className="react-demo__log-item">
            {x || '<no arguments>'}
          </div>
        )}
      </div>
    </Group>
  }
})
{'fraction_non_alphanumeric': 0.15786637931034483, 'fraction_numerical': 0.02478448275862069, 'mean_word_length': 3.1358574610244987, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '6018526', 'n_tokens_mistral': 676, 'n_tokens_neox': 657, 'n_words': 155}