<commit_before>import React from 'react';
import PresentationViewContainer from 'containers/presentation-view/PresentationViewContainer';

function PresentationPage(props) {
  return (
    <PresentationViewContainer {...props} />
  );
}

export default PresentationPage;<commit_msg>Adds authentication check to presentation page<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';

import PresentationViewContainer from 'containers/presentation-view/PresentationViewContainer';
import SigninPage from './SigninPage';

function PresentationPage(props) {
  const { isAuthenticated } = props;

  if (isAuthenticated) {
    return (
      <PresentationViewContainer {...props} />
    );
  }

  return <SigninPage />;
}

export default connect(
  (state) => {
    return { isAuthenticated: state.app.authentication.isAuthenticated };
  },
)(PresentationPage);

PresentationPage.propTypes = {
  isAuthenticated: PropTypes.bool.isRequired,
};

{'fraction_non_alphanumeric': 0.11011011011011011, 'fraction_numerical': 0.0, 'mean_word_length': 5.134969325153374, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, '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': '6813154', 'n_tokens_mistral': 286, 'n_tokens_neox': 282, 'n_words': 63}