<commit_before>import React from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import TopicSummaryContainer from './TopicSummaryContainer';

const PublicTopicSummaryContainer = () => (
// const { user } = props;
  <div>
    <div>loginbutton</div>
    <TopicSummaryContainer />
    <div>loginbutton</div>
  </div>
);

PublicTopicSummaryContainer.propTypes = {
  // from context
  intl: React.PropTypes.object.isRequired,
  // from state
  user: React.PropTypes.object.isRequired,
};

const mapStateToProps = state => ({
  user: state.user,
});

export default
  injectIntl(
    connect(mapStateToProps)(
      PublicTopicSummaryContainer
    )
  );
<commit_msg>#182 public topic container<commit_after>import React from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import TopicSummaryContainer from './TopicSummaryContainer';
import AppButton from '../../common/AppButton';
import messages from '../../../resources/messages';

const PublicTopicSummaryContainer = (props) => {
  const { formatMessage } = props.intl;
  return (
    <Grid>
      <Row>
        <Col lg={12}>
          <br />
          <AppButton
            type="submit"
            label={formatMessage(messages.userLogin)}
            primary
          />
        </Col>
      </Row>
      <Row>
        <TopicSummaryContainer />
      </Row>
    </Grid>
  );
};

PublicTopicSummaryContainer.propTypes = {
  // from context
  intl: React.PropTypes.object.isRequired,
  // from state
  user: React.PropTypes.object.isRequired,
};

const mapStateToProps = state => ({
  user: state.user,
});

export default
  injectIntl(
    connect(mapStateToProps)(
      PublicTopicSummaryContainer
    )
  );

{'fraction_non_alphanumeric': 0.13462603878116344, 'fraction_numerical': 0.002770083102493075, 'mean_word_length': 3.022271714922049, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, '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': '3748205', 'n_tokens_mistral': 542, 'n_tokens_neox': 540, 'n_words': 119}