<commit_before>import React, { Component } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { getPressRelease } from '../DashboardPressReleasePage/actions';
import ContentBlocks from '../ContentBlocks';
import Box from 'grommet/components/Box';
import Headline from 'grommet/components/Headline';

export class PressReleasePage extends Component {
  constructor(props) {
    super(props);
  }

  componentWillMount() {
    this.props.dispatch(getPressRelease(undefined, this.props.params.slug));
  }

  render() {
    const { post } = this.props;
    const title = (post.title)
      ? post.title
      : 'Press Release';

    return (
      <Box className="labs" align="center">
        <Helmet title={title} />
        <Headline size="medium" margin="none" strong={true}>
          {post.title}
        </Headline>
        <ContentBlocks blocks={post.contentBlocks} />
      </Box>
    );
  }
};

function mapStateToProps(state, props) {
  const { post, error, request } = state.pressRelease;
  return {
    post,
    error,
    request
  };
}

export default connect(mapStateToProps)(PressReleasePage);<commit_msg>fix: revert pressrelasepage to master<commit_after>import React, { Component } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { getPressRelease } from '../DashboardPressReleasePage/actions';
import ContentBlocks from '../ContentBlocks';
import Box from 'grommet/components/Box';
import Headline from 'grommet/components/Headline';

export class PressReleasePage extends Component {
  constructor(props) {
    super(props);
  }

  componentWillMount() {
    this.props.dispatch(getPressRelease(undefined, this.props.params.slug));
  }

  render() {
    const { post } = this.props;
    const title = (post.title)
      ? post.title
      : 'Press Release';

    return (
      <Box className="labs" align="center">
        <Helmet title={title} />
        <Headline size="medium" margin="none" strong={true}>
          {post.title}
        </Headline>
        
          <ContentBlocks blocks={post.contentBlocks} />
      </Box>
    );
  }
};

function mapStateToProps(state, props) {
  const { post, error, request } = state.pressRelease;
  return {
    post,
    error,
    request
  };
}

export default connect(mapStateToProps)(PressReleasePage);
{'fraction_non_alphanumeric': 0.13087674714104194, 'fraction_numerical': 0.0, 'mean_word_length': 3.357933579335793, 'pattern_counts': {'":': 0, '<': 15, '<?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': '6949996', 'n_tokens_mistral': 696, 'n_tokens_neox': 692, 'n_words': 161}